Skip to content

Commit

Permalink
Fix more compat textureBindingViewDimension validation (#3950)
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao authored Sep 17, 2024
1 parent 2f55512 commit 93c2ca0
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Parameters
const texture = t.createTextureTracked({
format,
dimension,
...(t.isCompatibility && { textureBindingViewDimension: viewDimension }),
usage: GPUTextureUsage.TEXTURE_BINDING,
size: {
width,
Expand Down Expand Up @@ -157,6 +158,7 @@ Parameters
const texture = t.createTextureTracked({
format: 'depth32float',
dimension,
...(t.isCompatibility && { textureBindingViewDimension: viewDimension }),
usage: GPUTextureUsage.TEXTURE_BINDING,
size: {
width,
Expand Down

0 comments on commit 93c2ca0

Please sign in to comment.