Skip to content
Merged
Show file tree
Hide file tree
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
12 changes: 9 additions & 3 deletions files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ Color attachment objects can have the following properties:
- `"discard"`: Discards the resulting value of the render pass for this attachment.
- `"store"`: Stores the resulting value of the render pass for this attachment.
- `resolveTarget` {{optional_inline}}
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will receive the resolved output for this color attachment if `view` is multisampled.
- : An object representing the texture subresource that will receive the resolved output for this color attachment if `view` is multisampled. This can be one of the following:
- {{domxref("GPUTextureView")}}
- {{domxref("GPUTexture")}}: Can be used in place of a `GPUTextureView`, provided a default view is desired. When used in this context, `GPUTexture` is equivalent to a `GPUTextureView` object created using a {{domxref("GPUTexture.createView()")}} call with no argument specified.
- `view`
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will be output to for this color attachment.
- : An object representing the texture subresource that will be output to for this color attachment. This can be one of the following:
- {{domxref("GPUTextureView")}}
- {{domxref("GPUTexture")}}: Can be used in place of a `GPUTextureView`, provided a default view is desired. When used in this context, `GPUTexture` is equivalent to a `GPUTextureView` object created using a {{domxref("GPUTexture.createView()")}} call with no argument specified.

> [!NOTE]
> Each color or depth/stencil attachment must be a unique texture subresource, and texture subresources used as attachments cannot be used inside the render pass.
Expand Down Expand Up @@ -120,7 +124,9 @@ The `depthStencilAttachment` object can have the following properties:
- `"discard"`: Discards the resulting value of the render pass for this attachment.
- `"store"`: Stores the resulting value of the render pass for this attachment.
- `view`
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will be output to and read from for this depth/stencil attachment.
- : An object representing the texture subresource that will be output to and read from for this depth/stencil attachment. This can be one of the following:
- {{domxref("GPUTextureView")}}
- {{domxref("GPUTexture")}}: Can be used in place of a `GPUTextureView`, provided a default view is desired. When used in this context, `GPUTexture` is equivalent to a `GPUTextureView` object created using a {{domxref("GPUTexture.createView()")}} call with no argument specified.

### Return value

Expand Down
1 change: 1 addition & 0 deletions files/en-us/web/api/gpudevice/createbindgroup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ createBindGroup(descriptor)
- {{domxref("GPUBuffer")}}: Can be used directly rather than being wrapped in a `GPUBufferBinding`, provided the default [`offset`](#offset) and [`size`](#size) values are being used.
- {{domxref("GPUExternalTexture")}}
- {{domxref("GPUTextureView")}}: Can be used in place of a `GPUExternalTexture` provided it is compatible (a 2D format with a single subresource, that is, [`dimension: "2d"`](/en-US/docs/Web/API/GPUTexture/createView#dimension)).
- {{domxref("GPUTexture")}}: Can be used in place of a `GPUTextureView`, provided a default view is desired. When used in this context, `GPUTexture` is equivalent to a `GPUTextureView` object created using a {{domxref("GPUTexture.createView()")}} call with no argument specified.
- {{domxref("GPUSampler")}}
- `label` {{optional_inline}}
- : A string providing a label that can be used to identify the object, for example in {{domxref("GPUError")}} messages or console warnings.
Expand Down
Loading