RenderPass constructor
Renderer object or GPUCurtains class object used to create this RenderPass
parameters used to create this RenderPass
Renderer used by this RenderPass
The type of the RenderPass
Readonly
uuidThe universal unique id of this RenderPass
Options used to create this RenderPass
Depth Texture to use with this RenderPass if it should handle depth
Array of Texture used for this RenderPass color attachments view textures
Array of Texture used for this RenderPass color attachments resolve textures
The RenderPass GPURenderPassDescriptor | descriptor
Get the textures outputted by this RenderPass, which means the viewTextures if not multisampled, or their resolveTargets else (beware that the first resolve target might be null
if this RenderPass should render to the swap chain).
Create and set our depth texture
Create and set our view textures
Create and set our resolve targets in case the viewTextures are multisampled.
Note that if this RenderPass should render to the swap chain, the first resolve target will be set to null
as the current swap chain texture will be used anyway in the render loop (see updateView).
Set our render pass descriptor
Resize our RenderPass: reset its Texture
Set the descriptor GPULoadOp | load operation
new GPULoadOp | load operation to use
index of the color attachment for which to use this load operation
Set the descriptor GPULoadOp | depth load operation
new GPULoadOp | depth load operation to use
Set our GPUColor | clear colors value.
Beware that if the renderer is using premultiplied alpha mode, your R, G and B channels should be premultiplied by your alpha channel.
new GPUColor | clear colors value to use
index of the color attachment for which to use this clear value
Set the current descriptor texture GPURenderPassColorAttachment#view | view and GPURenderPassColorAttachment#resolveTarget | resolveTarget (depending on whether we're using multisampling)
GPUTexture to use, or the context GPUTexture | current texture if null.
Destroy our RenderPass
Used by RenderTarget and the Renderer to render to one or multiple view textures (and optionally a depth texture), using a specific GPURenderPassDescriptor | render pass descriptor.