Skip to content

Commit e44c5fa

Browse files
authored
Disallow renderable 3D textures (#2603)
1 parent 66d2df8 commit e44c5fa

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

spec/index.bs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2679,11 +2679,12 @@ namespace GPUTextureUsage {
26792679
[$maximum mipLevel count$](|descriptor|.{{GPUTextureDescriptor/dimension}}, |descriptor|.{{GPUTextureDescriptor/size}}).
26802680

26812681
- |descriptor|.{{GPUTextureDescriptor/usage}} must be a combination of {{GPUTextureUsage}} values.
2682-
- If |descriptor|.{{GPUTextureDescriptor/usage}} includes the {{GPUTextureUsage/RENDER_ATTACHMENT}} bit,
2683-
|descriptor|.{{GPUTextureDescriptor/format}} must be a [=renderable format=].
2684-
- If |descriptor|.{{GPUTextureDescriptor/usage}} includes the {{GPUTextureUsage/STORAGE_BINDING}} bit,
2685-
|descriptor|.{{GPUTextureDescriptor/format}} must be listed in [[#plain-color-formats]] table
2686-
with {{GPUTextureUsage/STORAGE_BINDING}} capability.
2682+
- If |descriptor|.{{GPUTextureDescriptor/usage}} includes the {{GPUTextureUsage/RENDER_ATTACHMENT}} bit:
2683+
- |descriptor|.{{GPUTextureDescriptor/format}} must be a [=renderable format=].
2684+
- |descriptor|.{{GPUTextureDescriptor/dimension}} must be {{GPUTextureDimension/"2d"}}.
2685+
- If |descriptor|.{{GPUTextureDescriptor/usage}} includes the {{GPUTextureUsage/STORAGE_BINDING}} bit:
2686+
- |descriptor|.{{GPUTextureDescriptor/format}} must be listed in [[#plain-color-formats]] table
2687+
with {{GPUTextureUsage/STORAGE_BINDING}} capability.
26872688
- For each |viewFormat| in |descriptor|.{{GPUTextureDescriptor/viewFormats}},
26882689
|descriptor|.{{GPUTextureDescriptor/format}} and |viewFormat| must be
26892690
[=texture view format compatible=].

0 commit comments

Comments
 (0)