diff --git a/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md b/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md index 7cbd9594fc5a777..5b23eb73916bab1 100644 --- a/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md +++ b/files/en-us/web/api/gpucommandencoder/beginrenderpass/index.md @@ -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. @@ -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 diff --git a/files/en-us/web/api/gpudevice/createbindgroup/index.md b/files/en-us/web/api/gpudevice/createbindgroup/index.md index 8595a183b291395..9d3e643120b708a 100644 --- a/files/en-us/web/api/gpudevice/createbindgroup/index.md +++ b/files/en-us/web/api/gpudevice/createbindgroup/index.md @@ -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.