GpuRenderPassDesc¶
Import: import system.gpu;
This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation. Shader-only declarations can be used only inside @compute, @vertex, @fragment, inferred helpers and ray tracing shader functions; using them elsewhere is a compile error.
GpuRenderPassDesc¶
The color and depth targets of a render pass, and how each starts. Start from GpuRenderPassDesc.color and add a depth buffer with with_depth.
color¶
A pass that draws into target, which starts as load says.
with_depth¶
Adds depth as the pass's depth buffer, which starts as load says, and returns this description. The texture needs a depth format and must be a render target.