You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- |colorState|.{{GPUColorTargetState/writeMask}} must be 0.
7354
+
- [$Validating GPUFragmentState's total color attachment depth$](|device|, |descriptor|.{{GPUFragmentState/targets}}) succeeds.
7355
+
</div>
7356
+
7357
+
<div algorithm>
7358
+
<dfn abstract-op>Validating GPUFragmentState's total color attachment depth</dfn>({{GPUDevice}} |device|, sequence<{{GPUColorTargetState}}?> |targets|)
7359
+
7360
+
1. Let |formats| be an empty sequence<{{GPUTextureFormat}}>
7361
+
1. For each |target| in |targets|:
7362
+
1. If |target| is {{undefined}}, continue.
7363
+
1. Append |target|.{{GPUColorTargetState/format}} to |formats|.
7364
+
1. [$Calculating total color attachment depth$](|formats|) must be ≤ |device|.{{device/[[limits]]}}.{{supported limits/maxTotalColorAttachmentDepth}}.
1. |this|.{{GPURenderPassDescriptor/depthStencilAttachment}} must meet the [$GPURenderPassDepthStencilAttachment/GPURenderPassDepthStencilAttachment Valid Usage$] rules.
10195
10212
10213
+
1. [$Validating GPURenderPassDescriptor's total color attachment depth$](|device|, |this|.{{GPURenderPassDescriptor/colorAttachments}}) succeeds.
10214
+
10196
10215
1. All {{GPURenderPassColorAttachment/view}}s in non-`null` members of |this|.{{GPURenderPassDescriptor/colorAttachments}},
10197
10216
and |this|.{{GPURenderPassDescriptor/depthStencilAttachment}}.{{GPURenderPassDepthStencilAttachment/view}}
10198
10217
if present, must have equal {{GPUTexture/sampleCount}}s.
of the attachments are the same, so we can take any of them, assuming the descriptor is valid.
10234
10253
</div>
10235
10254
10255
+
<div algorithm>
10256
+
<dfn abstract-op>Validating GPURenderPassDescriptor's total color attachment depth</dfn>({{GPUDevice}} |device|, sequence<{{GPURenderPassColorAttachment}}?> |colorAttachments|)
10257
+
10258
+
1. Let |formats| be an empty sequence<{{GPUTextureFormat}}>
10259
+
1. For each |colorAttachment| in |colorAttachments|:
10260
+
1. If |colorAttachment| is {{undefined}}, continue.
10261
+
1. Append |colorAttachment|.{{GPURenderPassColorAttachment/view}}.{{GPUTextureView/[[descriptor]]}}.{{GPUTextureViewDescriptor/format}} to |formats|.
10262
+
1. [$Calculating total color attachment depth$](|formats|) must be ≤ |device|.{{device/[[limits]]}}.{{supported limits/maxTotalColorAttachmentDepth}}.
@@ -11437,6 +11496,7 @@ GPURenderBundleEncoder includes GPURenderCommandsMixin;
11437
11496
- |descriptor|.{{GPURenderPassLayout/depthStencilFormat}} must not be `null`.
11438
11497
- For each |colorFormat| in |descriptor|.{{GPURenderPassLayout/colorFormats}}:
11439
11498
- |colorFormat| is `null`, or it must be a [=color renderable format=].
11499
+
- [$Validating GPURenderBundleEncoderDescriptor's total color attachment depth$](|this|, |descriptor|.{{GPURenderPassLayout/colorFormats}}) succeeds.
11440
11500
- Let |depthStencilFormat| be |descriptor|.{{GPURenderPassLayout/depthStencilFormat}}.
11441
11501
- If |depthStencilFormat| is not `null`:
11442
11502
- |depthStencilFormat| must be a [=depth-or-stencil format=].
@@ -11455,6 +11515,16 @@ GPURenderBundleEncoder includes GPURenderCommandsMixin;
11455
11515
</div>
11456
11516
</dl>
11457
11517
11518
+
<div algorithm>
11519
+
<dfn abstract-op>Validating GPURenderBundleEncoderDescriptor's total color attachment depth</dfn>({{GPUDevice}} |device|, sequence<{{GPUTextureFormat}}?> |colorFormats|)
11520
+
11521
+
1. Let |formats| be an empty sequence<{{GPUTextureFormat}}>
11522
+
1. For each |colorFormat| in |colorFormats|:
11523
+
1. If |colorFormat| is {{undefined}}, continue.
11524
+
1. Append |colorFormat| to |formats|.
11525
+
1. [$Calculating total color attachment depth$](|formats|) must be ≤ |device|.{{device/[[limits]]}}.{{supported limits/maxTotalColorAttachmentDepth}}.
11526
+
</div>
11527
+
11458
11528
### Encoding ### {#render-bundle-encoding}
11459
11529
11460
11530
<script type=idl>
@@ -13886,6 +13956,8 @@ The {{GPUTextureUsage/RENDER_ATTACHMENT}} and {{GPUTextureUsage/STORAGE_BINDING}
13886
13956
specify support for {{GPUTextureUsage/RENDER_ATTACHMENT|GPUTextureUsage.RENDER_ATTACHMENT}}
13887
13957
and {{GPUTextureUsage/STORAGE_BINDING|GPUTextureUsage.STORAGE_BINDING}} usage respectively.
13888
13958
13959
+
In the below table, the <dfn dfn>component width</dfn> of a format is equal to the value in the "X-bits per component" header of the section that format lies within.
13960
+
13889
13961
<table class=data>
13890
13962
<thead class=stickyheader>
13891
13963
<tr>
@@ -14164,7 +14236,7 @@ and {{GPUTextureUsage/STORAGE_BINDING|GPUTextureUsage.STORAGE_BINDING}} usage re
0 commit comments