MCPcopy Create free account
hub / github.com/defold/defold / WebGPUSubmitCommandEncoder

Function WebGPUSubmitCommandEncoder

engine/graphics/src/webgpu/graphics_webgpu.cpp:1612–1627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1610}
1611
1612static void WebGPUSubmitCommandEncoder(WebGPUContext* context)
1613{
1614 TRACE_CALL;
1615 if (context->m_CommandEncoder)
1616 {
1617 WebGPUEndComputePass(context);
1618 WebGPUEndRenderPass(context);
1619
1620 const WGPUCommandBuffer buffer = wgpuCommandEncoderFinish(context->m_CommandEncoder, NULL);
1621 wgpuQueueSubmit(context->m_Queue, 1, &buffer);
1622 wgpuCommandBufferRelease(buffer);
1623 wgpuCommandEncoderRelease(context->m_CommandEncoder);
1624 context->m_CommandEncoder = NULL;
1625 context->m_LastSubmittedRenderPass = context->m_RenderPasses;
1626 }
1627}
1628
1629static void WebGPUBeginComputePass(WebGPUContext* context)
1630{

Callers 2

WebGPUFlipFunction · 0.85
WebGPUWriteBufferFunction · 0.85

Calls 2

WebGPUEndComputePassFunction · 0.85
WebGPUEndRenderPassFunction · 0.85

Tested by

no test coverage detected