MCPcopy Create free account
hub / github.com/cogentcore/core / ConfigFramebuffer

Method ConfigFramebuffer

vgpu/image.go:599–609  ·  view source on GitHub ↗

ConfigFramebuffer configures this image as a framebuffer image using format. Sets multisampling to 1, layers to 1. Only makes a device image -- no host rep.

(gp *GPU, dev vk.Device, imgFmt *ImageFormat)

Source from the content-addressed store, hash-verified

597// using format. Sets multisampling to 1, layers to 1.
598// Only makes a device image -- no host rep.
599func (im *Image) ConfigFramebuffer(gp *GPU, dev vk.Device, imgFmt *ImageFormat) {
600 im.GPU = gp
601 im.Dev = dev
602 im.Format.Format = imgFmt.Format
603 im.Format.SetMultisample(1)
604 im.Format.Layers = 1
605 im.SetFlag(true, ImageOwnsImage, FramebufferImage)
606 if im.SetSize(imgFmt.Size) {
607 im.ConfigStdView()
608 }
609}
610
611// ConfigDepth configures this image as a depth image
612// using given depth image format, and other on format information

Callers 1

ConfigRenderImageMethod · 0.80

Calls 4

SetFlagMethod · 0.95
SetSizeMethod · 0.95
ConfigStdViewMethod · 0.95
SetMultisampleMethod · 0.80

Tested by

no test coverage detected