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 096f9fd commit 7c56902
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,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 7c56902

Please sign in to comment.