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

Method Init

vgpu/renderframe.go:88–98  ·  view source on GitHub ↗

Init initializes the device and all other resources for the renderframe.

(gp *GPU, makeDevice bool)

Source from the content-addressed store, hash-verified

86
87// Init initializes the device and all other resources for the renderframe.
88func (rf *RenderFrame) Init(gp *GPU, makeDevice bool) error {
89 rf.GPU = gp
90 if makeDevice {
91 rf.OwnDevice = true
92 rf.Device.Init(gp, vk.QueueGraphicsBit)
93 } else {
94 rf.OwnDevice = false
95 }
96 rf.Config()
97 return nil
98}
99
100// Config configures the framebuffers etc
101func (rf *RenderFrame) Config() {

Callers 2

NewRenderFrameOwnDeviceFunction · 0.95
NewRenderFrameFunction · 0.95

Calls 2

ConfigMethod · 0.95
InitMethod · 0.65

Tested by

no test coverage detected