Skip to content

Commit

Permalink
Fix maxTextureDimension limits refs (#5027)
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois authored Dec 19, 2024
1 parent 254de56 commit 0bf3070
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4321,6 +4321,7 @@ The {{GPUTextureUsage}} flags determine how a {{GPUTexture}} may be used after i

[=Device timeline=] steps:

1. Let |limits| be |this|.{{device/[[limits]]}}.
1. Return `true` if all of the following requirements are met, and `false` otherwise:

<div class=validusage>
Expand All @@ -4338,7 +4339,7 @@ The {{GPUTextureUsage}} flags determine how a {{GPUTexture}} may be used after i
: {{GPUTextureDimension/"1d"}}
::
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/width=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension1D}}.
|limits|.{{supported limits/maxTextureDimension1D}}.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/height=] must be 1.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/depthOrArrayLayers=] must be 1.
- |descriptor|.{{GPUTextureDescriptor/sampleCount}} must be 1.
Expand All @@ -4347,20 +4348,20 @@ The {{GPUTextureUsage}} flags determine how a {{GPUTexture}} may be used after i
: {{GPUTextureDimension/"2d"}}
::
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/width=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension2D}}.
|limits|.{{supported limits/maxTextureDimension2D}}.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/height=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension2D}}.
|limits|.{{supported limits/maxTextureDimension2D}}.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/depthOrArrayLayers=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureArrayLayers}}.
|limits|.{{supported limits/maxTextureArrayLayers}}.

: {{GPUTextureDimension/"3d"}}
::
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/width=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension3D}}.
|limits|.{{supported limits/maxTextureDimension3D}}.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/height=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension3D}}.
|limits|.{{supported limits/maxTextureDimension3D}}.
- |descriptor|.{{GPUTextureDescriptor/size}}.[=GPUExtent3D/depthOrArrayLayers=] must be &le;
|this|.{{GPUDevice/limits}}.{{GPUSupportedLimits/maxTextureDimension3D}}.
|limits|.{{supported limits/maxTextureDimension3D}}.
- |descriptor|.{{GPUTextureDescriptor/sampleCount}} must be 1.
- |descriptor|.{{GPUTextureDescriptor/format}} must support {{GPUTextureDimension/"3d"}}
textures according to [[#texture-format-caps]].
Expand Down

0 comments on commit 0bf3070

Please sign in to comment.