Skip to content

Commit

Permalink
Fix texture builtin weight reading
Browse files Browse the repository at this point in the history
The code was using the wrong size for compute stages.
  • Loading branch information
greggman committed Dec 5, 2024
1 parent 79e72c0 commit 80d75a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ export async function queryMipLevelMixWeightsForDevice(t: GPUTest, stage: Shader
pass.setBindGroup(0, createBindGroup(pipeline));
pass.dispatchWorkgroups(kMipLevelWeightSteps + 1);
pass.end();
encoder.copyBufferToBuffer(storageBuffer, 0, resultBuffer, 0, resultBuffer.size);
encoder.copyBufferToBuffer(storageBuffer, 0, resultBuffer, 0, storageBuffer.size);
break;
}
case 'fragment': {
Expand Down

0 comments on commit 80d75a9

Please sign in to comment.