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

Function WebGPUBeginComputePass

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

Source from the content-addressed store, hash-verified

1627}
1628
1629static void WebGPUBeginComputePass(WebGPUContext* context)
1630{
1631 TRACE_CALL;
1632 if (!context->m_CurrentComputePass.m_Encoder)
1633 {
1634 WebGPUEndRenderPass(context);
1635 WebGPUCreateCommandEncoder(context);
1636#if defined(DM_GRAPHICS_WEBGPU2)
1637 WGPUComputePassDescriptor desc = WGPU_COMPUTE_PASS_DESCRIPTOR_INIT;
1638#else
1639 WGPUComputePassDescriptor desc = {};
1640#endif
1641 context->m_CurrentComputePass.m_Encoder = wgpuCommandEncoderBeginComputePass(context->m_CommandEncoder, &desc);
1642 }
1643}
1644
1645static void RenderPassEnd(WebGPUContext* context)
1646{

Callers 1

Calls 2

WebGPUEndRenderPassFunction · 0.85

Tested by

no test coverage detected