Texture.asRenderTarget - multiple declarations

Function Texture.asRenderTarget

Make a ColorTargetState given this texture's TextureFormat and a constant blending mode.

ColorTargetState asRenderTarget (
  const(BlendMode) blend,
  uint writeMask = 15u
) const;

Parameters

NameDescription
blend A constant blending mode.
writeMask Mask which enables/disables writes to different color/alpha channel. See ColorWriteMask.

Returns

A result suitable for use as a pipeline's fragment stage. See RenderPipeline.fragmentState.

Function Texture.asRenderTarget

Make a ColorTargetState given this texture's TextureFormat and a custom blending mode.

ColorTargetState asRenderTarget (
  const(__C.WGPUBlendState) blend,
  uint writeMask = 15u
) const;

Parameters

NameDescription
blend A custom blending mode.
writeMask Mask which enables/disables writes to different color/alpha channel. See ColorWriteMask.

Returns

A result suitable for use as a pipeline's fragment stage. See RenderPipeline.fragmentState.