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

Function CmdSubmit

vgpu/cmds.go:147–154  ·  view source on GitHub ↗

CmdSubmit submits commands in buffer to given device queue, without any semaphore logic -- suitable for a WaitIdle logic.

(cmd vk.CommandBuffer, dev *Device)

Source from the content-addressed store, hash-verified

145// CmdSubmit submits commands in buffer to given device queue, without
146// any semaphore logic -- suitable for a WaitIdle logic.
147func CmdSubmit(cmd vk.CommandBuffer, dev *Device) {
148 ret := vk.QueueSubmit(dev.Queue, 1, []vk.SubmitInfo{{
149 SType: vk.StructureTypeSubmitInfo,
150 CommandBufferCount: 1,
151 PCommandBuffers: []vk.CommandBuffer{cmd},
152 }}, vk.NullFence)
153 IfPanic(NewError(ret))
154}
155
156// CmdSubmitFence submits commands in buffer to given device queue
157// using given fence.

Callers 3

SubmitMethod · 0.85
CmdSubmitWaitFunction · 0.85
CmdEndSubmitWaitFunction · 0.85

Calls 2

IfPanicFunction · 0.85
NewErrorFunction · 0.85

Tested by

no test coverage detected