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

Function CmdBeginOneTime

vgpu/cmds.go:137–143  ·  view source on GitHub ↗

CmdBeginOneTime does BeginCommandBuffer with OneTimeSubmit set on buffer

(cmd vk.CommandBuffer)

Source from the content-addressed store, hash-verified

135
136// CmdBeginOneTime does BeginCommandBuffer with OneTimeSubmit set on buffer
137func CmdBeginOneTime(cmd vk.CommandBuffer) {
138 ret := vk.BeginCommandBuffer(cmd, &vk.CommandBufferBeginInfo{
139 SType: vk.StructureTypeCommandBufferBeginInfo,
140 Flags: vk.CommandBufferUsageFlags(vk.CommandBufferUsageOneTimeSubmitBit),
141 })
142 IfPanic(NewError(ret))
143}
144
145// CmdSubmit submits commands in buffer to given device queue, without
146// any semaphore logic -- suitable for a WaitIdle logic.

Callers 5

BeginCmdOneTimeMethod · 0.85
TransferTexturesToGPUMethod · 0.85
TransferImagesFromGPUMethod · 0.85
MemCmdStartMethod · 0.85

Calls 2

IfPanicFunction · 0.85
NewErrorFunction · 0.85

Tested by

no test coverage detected