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

Method ConfigDepth

vgpu/image.go:614–624  ·  view source on GitHub ↗

ConfigDepth configures this image as a depth image using given depth image format, and other on format information from the render image format.

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

Source from the content-addressed store, hash-verified

612// using given depth image format, and other on format information
613// from the render image format.
614func (im *Image) ConfigDepth(gp *GPU, dev vk.Device, depthType Types, imgFmt *ImageFormat) {
615 im.GPU = gp
616 im.Dev = dev
617 im.Format.Format = depthType.VkFormat()
618 im.Format.Samples = imgFmt.Samples
619 im.Format.Layers = 1
620 im.SetFlag(true, DepthImage)
621 if im.SetSize(imgFmt.Size) {
622 im.ConfigDepthView()
623 }
624}
625
626// ConfigMulti configures this image as a mutisampling image
627// using format. Only makes a device image -- no host rep.

Callers 1

ConfigImplMethod · 0.80

Calls 4

SetFlagMethod · 0.95
SetSizeMethod · 0.95
ConfigDepthViewMethod · 0.95
VkFormatMethod · 0.80

Tested by

no test coverage detected