Skip to content

Commit

Permalink
Allow 3D renderable texture in validation. (#3137)
Browse files Browse the repository at this point in the history
Note that we still need to test that rendering to depth slices is valid,
that validation or depth slices not overlapping in beginRenderPass is
correct, etc.
  • Loading branch information
Kangz authored Nov 8, 2023
1 parent f413d34 commit 5a69832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webgpu/api/validation/createTexture.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ g.test('texture_usage')
// if (!info.copyDst && (usage & GPUTextureUsage.COPY_DST) !== 0) success = false;
if (!info.color?.storage && (usage & GPUTextureUsage.STORAGE_BINDING) !== 0) success = false;
if (
(!info.renderable || appliedDimension !== '2d') &&
(!info.renderable || (appliedDimension !== '2d' && appliedDimension !== '3d')) &&
(usage & GPUTextureUsage.RENDER_ATTACHMENT) !== 0
)
success = false;
Expand Down

0 comments on commit 5a69832

Please sign in to comment.