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
Copy file name to clipboardExpand all lines: files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md
+9-3Lines changed: 9 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,9 +70,13 @@ Color attachment objects can have the following properties:
70
70
-`"discard"`: Discards the resulting value of the render pass for this attachment.
71
71
-`"store"`: Stores the resulting value of the render pass for this attachment.
72
72
-`resolveTarget` {{optional_inline}}
73
-
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will receive the resolved output for this color attachment if `view` is multisampled.
73
+
- : 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:
74
+
- {{domxref("GPUTextureView")}}
75
+
- {{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.
74
76
-`view`
75
-
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will be output to for this color attachment.
77
+
- : An object representing the texture subresource that will be output to for this color attachment. This can be one of the following:
78
+
- {{domxref("GPUTextureView")}}
79
+
- {{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.
76
80
77
81
> [!NOTE]
78
82
> 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.
@@ -120,7 +124,9 @@ The `depthStencilAttachment` object can have the following properties:
120
124
-`"discard"`: Discards the resulting value of the render pass for this attachment.
121
125
-`"store"`: Stores the resulting value of the render pass for this attachment.
122
126
-`view`
123
-
- : A {{domxref("GPUTextureView")}} object representing the texture subresource that will be output to and read from for this depth/stencil attachment.
127
+
- : 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:
128
+
- {{domxref("GPUTextureView")}}
129
+
- {{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.
Copy file name to clipboardExpand all lines: files/en-us/web/api/gpudevice/createbindgroup/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ createBindGroup(descriptor)
31
31
- {{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.
32
32
- {{domxref("GPUExternalTexture")}}
33
33
- {{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)).
34
+
- {{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.
34
35
- {{domxref("GPUSampler")}}
35
36
-`label` {{optional_inline}}
36
37
- : A string providing a label that can be used to identify the object, for example in {{domxref("GPUError")}} messages or console warnings.
0 commit comments