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

Method ConfigRenderImage

vgpu/framebuffer.go:47–50  ·  view source on GitHub ↗

ConfigRenderImage configures a new image for a standalone framebuffer not associated with an existing surface, for RenderFrame target. In general it is recommended to use vk.SampleCount4Bit to avoid aliasing. Does not yet make the Framebuffer because it still needs the Render (see ConfigRender)

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

Source from the content-addressed store, hash-verified

45// Does not yet make the Framebuffer because it still needs the Render
46// (see ConfigRender)
47func (fb *Framebuffer) ConfigRenderImage(gp *GPU, dev vk.Device, fmt ImageFormat) {
48 fb.Format = fmt
49 fb.Image.ConfigFramebuffer(gp, dev, &fmt)
50}
51
52// ConfigRender configures for Render, assuming image is already set
53// and Configs the Framebuffer based on that.

Callers 2

ConfigMethod · 0.95
ReConfigFramesMethod · 0.80

Calls 1

ConfigFramebufferMethod · 0.80

Tested by

no test coverage detected