This commit is contained in:
2025-02-26 17:48:24 +01:00
parent bb7b6e716a
commit 39794a27d9
3 changed files with 16 additions and 2 deletions

View File

@@ -57,9 +57,12 @@ void WebGPUReleaseCommandList(PulseDevice device, PulseCommandList cmd)
PULSE_CHECK_HANDLE(device);
WebGPUCommandList* webgpu_cmd = WEBGPU_RETRIEVE_DRIVER_DATA_AS(cmd, WebGPUCommandList*);
WebGPUComputePass* webgpu_pass = WEBGPU_RETRIEVE_DRIVER_DATA_AS(cmd->pass, WebGPUComputePass*);
wgpuCommandEncoderRelease(webgpu_cmd->encoder);
free(webgpu_pass);
free(cmd->pass);
free(webgpu_cmd);
free(cmd);
}

View File

@@ -43,6 +43,7 @@ void WebGPUEndComputePass(PulseComputePass pass)
{
WebGPUComputePass* webgpu_pass = WEBGPU_RETRIEVE_DRIVER_DATA_AS(pass, WebGPUComputePass*);
wgpuComputePassEncoderEnd(webgpu_pass->encoder);
wgpuComputePassEncoderRelease(webgpu_pass->encoder);
}
void WebGPUBindStorageBuffers(PulseComputePass pass, const PulseBuffer* buffers, uint32_t num_buffers)