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

Method SetVkImage

vgpu/image.go:589–594  ·  view source on GitHub ↗

SetVkImage sets a Vk Image and configures a default 2D view based on existing format information (which must be set properly). Any exiting view is destroyed first. Must pass the relevant device.

(gp *GPU, dev vk.Device, img vk.Image)

Source from the content-addressed store, hash-verified

587// based on existing format information (which must be set properly).
588// Any exiting view is destroyed first. Must pass the relevant device.
589func (im *Image) SetVkImage(gp *GPU, dev vk.Device, img vk.Image) {
590 im.GPU = gp
591 im.Image = img
592 im.Dev = dev
593 im.ConfigStdView()
594}
595
596// ConfigFramebuffer configures this image as a framebuffer image
597// using format. Sets multisampling to 1, layers to 1.

Callers 1

ConfigSurfaceImageMethod · 0.80

Calls 1

ConfigStdViewMethod · 0.95

Tested by

no test coverage detected