RenderPass.colorAttachment - multiple declarations
Function RenderPass.colorAttachment
Create a color attachment for a render pass.
static __C .WGPURenderPassColorAttachment colorAttachment
(
const(TextureView) view,
__C .WGPUColor clearColor,
std .typecons .Flag!("store") store = Flag .yes
);
Parameters
Name | Description |
---|---|
view | The view to use as an attachment. |
clearColor | Value with which to fill the given view . |
store | Whether data will be written to through this attachment. Defaults to true . |
Remarks
The render target is cleared its content is loaded, i.e. LoadOp
is used.
SeeAlso
Function RenderPass.colorAttachment
Create a color attachment for a render pass.
static __C .WGPURenderPassColorAttachment colorAttachment
(
const(TextureView) view,
LoadOp loadOp,
__C .WGPUColor clearColor,
std .typecons .Flag!("store") store = Flag .yes
);
Parameters
Name | Description |
---|---|
view | The view to use as an attachment. |
loadOp | How data should be read through this attachment. |
clearColor | Value with which to fill the given view if loadOp equals LoadOp . |
store | Whether data will be written to through this attachment. Defaults to true . |
Remarks
The render target must be cleared at least once before its content is loaded.
SeeAlso
Function RenderPass.colorAttachment
ditto
static __C .WGPURenderPassColorAttachment colorAttachment
(
const(TextureView) view,
TextureView* resolveTarget,
LoadOp loadOp,
__C .WGPUColor clearColor,
std .typecons .Flag!("store") store = Flag .yes
) @trusted;
Parameters
Name | Description |
---|---|
view | The view to use as an attachment. |
resolveTarget | The view that will receive the resolved output if multisampling is used. |
loadOp | How data should be read through this attachment. |
clearColor | Value with which to fill the given view if loadOp equals LoadOp . |
store | Whether data will be written to through this attachment. Defaults to true . |