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

Method ConfigResettable

vgpu/cmds.go:36–45  ·  view source on GitHub ↗

ConfigResettable configures the pool for persistent, resettable command buffers, used for rendering commands.

(dv *Device)

Source from the content-addressed store, hash-verified

34// ConfigResettable configures the pool for persistent,
35// resettable command buffers, used for rendering commands.
36func (cp *CmdPool) ConfigResettable(dv *Device) {
37 var cmdPool vk.CommandPool
38 ret := vk.CreateCommandPool(dv.Device, &vk.CommandPoolCreateInfo{
39 SType: vk.StructureTypeCommandPoolCreateInfo,
40 QueueFamilyIndex: dv.QueueIndex,
41 Flags: vk.CommandPoolCreateFlags(vk.CommandPoolCreateResetCommandBufferBit),
42 }, nil, &cmdPool)
43 IfPanic(NewError(ret))
44 cp.Pool = cmdPool
45}
46
47// NewBuffer makes a buffer in pool, setting Buff to point to it
48// if Buff == nil, returning the buffer.

Callers 1

InitCmdMethod · 0.80

Calls 2

IfPanicFunction · 0.85
NewErrorFunction · 0.85

Tested by

no test coverage detected