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

Method ConfigMulti

vgpu/image.go:628–638  ·  view source on GitHub ↗

ConfigMulti configures this image as a mutisampling image using format. Only makes a device image -- no host rep.

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

Source from the content-addressed store, hash-verified

626// ConfigMulti configures this image as a mutisampling image
627// using format. Only makes a device image -- no host rep.
628func (im *Image) ConfigMulti(gp *GPU, dev vk.Device, imgFmt *ImageFormat) {
629 im.GPU = gp
630 im.Dev = dev
631 im.Format.Format = imgFmt.Format
632 im.Format.Samples = imgFmt.Samples
633 im.Format.Layers = 1
634 im.SetFlag(true, ImageOwnsImage, FramebufferImage)
635 if im.SetSize(imgFmt.Size) {
636 im.ConfigStdView()
637 }
638}
639
640// ConfigStdView configures a standard 2D image view, for current image,
641// format, and device.

Callers 1

ConfigImplMethod · 0.80

Calls 3

SetFlagMethod · 0.95
SetSizeMethod · 0.95
ConfigStdViewMethod · 0.95

Tested by

no test coverage detected