| 1610 | } |
| 1611 | |
| 1612 | static 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 | |
| 1629 | static void WebGPUBeginComputePass(WebGPUContext* context) |
| 1630 | { |
no test coverage detected