Skip to content

Commit

Permalink
Fix uninitialized WGPUComputePassDescriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
spillerrec committed May 16, 2024
1 parent 0d5ce7b commit ebc2d31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gpu/GpuCommandEncoder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class GpuCommandEncoder {
}

GpuComputePass MakeComputePass() {
WGPUComputePassDescriptor computePassDesc;
WGPUComputePassDescriptor computePassDesc = {};
//computePassDesc.timestampWriteCount = 0;
computePassDesc.timestampWrites = nullptr;
return wgpuCommandEncoderBeginComputePass(encoder, &computePassDesc);
Expand Down

0 comments on commit ebc2d31

Please sign in to comment.