Skip to content

Commit

Permalink
Update src/webgpu/api/operation/sampling/sampler_texture.spec.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
greggman committed Nov 28, 2024
1 parent a41f4cc commit f4b0460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/api/operation/sampling/sampler_texture.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ The result should be a texture that has a value in each texel unique to a partic
return samplerId;
}

// Note: We are storing textureId, samplerId in th texture. That suggests we could use rgba32uint
// Note: We are storing textureId, samplerId in the texture. That suggests we could use rgba32uint
// texture but we can't do that because we want to be able to set the samplers to linear.
// Similarly we can't use rgba32float since they're not filterable by default.
// So, we encode via rgba8unorm where rg is a 16bit textureId and ba is a 16bit samplerId
Expand Down

0 comments on commit f4b0460

Please sign in to comment.