Skip to content

Commit

Permalink
Fix texture builtin weight reading (#4078)
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 authored Dec 5, 2024
1 parent 79e72c0 commit 4affbef
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 4affbef

Please sign in to comment.