Interface ComputeRenderTargetConfig

The render target to render into when using a GPUComputePipeline to render the sky / atmosphere.

interface ComputeRenderTargetConfig {
    texture: GPUTexture;
    view?: GPUTextureView;
}

Properties

Properties

texture: GPUTexture

Must support the STORAGE_BINDING usage. Its format must support "write-only" access. Its format should have at least 16 bit precision per channel.

Must not be the same texture as the back or depth buffer.

view?: GPUTextureView

A texture view to use for the render target. If this is not present, a new view is created from the given texture.