API

Interface RenderTargetTextureResult

Eager render-target allocation and sampled attachment facades.

interface RenderTargetTextureResult {
    depthTexture: Texture2D | null;
    rt: RenderTarget;
    texture: Texture2D;
}
Index
depthTexture: Texture2D | null

Sampled depth facade when explicitly requested with withSampledDepthTexture.

texture: Texture2D

Color attachment, or the depth attachment for a depth-only target.