这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1553,6 +1553,7 @@ dictionary GPUTextureViewDescriptor : GPUObjectDescriptorBase {
GPUTextureFormat format;
GPUTextureViewDimension dimension;
GPUTextureAspect aspect = "all";
boolean readOnly = false;
GPUIntegerCoordinate baseMipLevel = 0;
GPUIntegerCoordinate mipLevelCount = 0;
GPUIntegerCoordinate baseArrayLayer = 0;
Expand Down Expand Up @@ -4309,6 +4310,8 @@ dictionary GPURenderPassColorAttachmentDescriptor {
1. |this|.{{GPURenderPassColorAttachmentDescriptor/attachment}}.{{GPUTextureView/[[texture]]}}.{{GPUTexture/[[textureUsage]]}}
must contain {{GPUTextureUsage/OUTPUT_ATTACHMENT}}.
1. |this|.{{GPURenderPassColorAttachmentDescriptor/attachment}} must be a view of a single [=subresource=].
1. |this|.{{GPURenderPassColorAttachmentDescriptor/attachment}}.{{GPUTextureView/[[descriptor]]}}.{{GPUTextureViewDescriptor/readOnly}}
must be `false`.
1. If |this|.{{GPURenderPassColorAttachmentDescriptor/resolveTarget}} is not `null`:

1. |this|.{{GPURenderPassColorAttachmentDescriptor/attachment}} must be multisampled.
Expand All @@ -4334,11 +4337,9 @@ dictionary GPURenderPassDepthStencilAttachmentDescriptor {

required (GPULoadOp or float) depthLoadValue;
required GPUStoreOp depthStoreOp;
boolean depthReadOnly = false;

required (GPULoadOp or GPUStencilValue) stencilLoadValue;
required GPUStoreOp stencilStoreOp;
boolean stencilReadOnly = false;
};
</script>

Expand All @@ -4361,11 +4362,6 @@ dictionary GPURenderPassDepthStencilAttachmentDescriptor {
The store operation to perform on {{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}'s
depth component after executing the render pass.

: <dfn>depthReadOnly</dfn>
::
Indicates that the depth component of {{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}
is read only.

: <dfn>stencilLoadValue</dfn>
::
If a {{GPULoadOp}}, indicates the load operation to perform on
Expand All @@ -4380,10 +4376,6 @@ dictionary GPURenderPassDepthStencilAttachmentDescriptor {
The store operation to perform on {{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}'s
stencil component after executing the render pass.

: <dfn>stencilReadOnly</dfn>
::
Indicates that the stencil component of {{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}
is read only.
</dl>

<div class=validusage dfn-for=GPURenderPassDepthStencilAttachmentDescriptor>
Expand All @@ -4398,14 +4390,11 @@ dictionary GPURenderPassDepthStencilAttachmentDescriptor {
single [=subresource=].
1. |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}.{{GPUTexture/[[textureUsage]]}}
must contain {{GPUTextureUsage/OUTPUT_ATTACHMENT}}.
1. |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/depthReadOnly}} is `true`,
|this|.{{GPURenderPassDepthStencilAttachmentDescriptor/depthLoadValue}} must be
{{GPULoadOp/"load"}} and |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/depthStoreOp}}
must be {{GPUStoreOp/"store"}}.
1. |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/stencilReadOnly}} is `true`,
|this|.{{GPURenderPassDepthStencilAttachmentDescriptor/stencilLoadValue}} must be
{{GPULoadOp/"load"}} and |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/stencilStoreOp}}
must be {{GPUStoreOp/"store"}}.
1. if |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/attachment}}.{{GPUTextureView/[[descriptor]]}}.{{GPUTextureViewDescriptor/readOnly}} is `true`:
- |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/depthLoadValue}} must be {{GPULoadOp/"load"}}.
- |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/depthStoreOp}} must be {{GPUStoreOp/"store"}}.
- |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/stencilLoadValue}} must be {{GPULoadOp/"load"}}.
- |this|.{{GPURenderPassDepthStencilAttachmentDescriptor/stencilStoreOp}} must be {{GPUStoreOp/"store"}}.

Issue: Describe the remaining validation rules for this type.
</div>
Expand Down