Interface SkyAtmosphereComputeRendererResizeConfig

interface SkyAtmosphereComputeRendererResizeConfig {
    backBuffer: GPUTexture | GPUTextureView;
    depthBuffer: GPUTexture | GPUTextureView;
    renderTarget: GPUTexture | GPUTextureView;
    size?: [number, number];
}

Properties

backBuffer: GPUTexture | GPUTextureView

The back buffer texture to use as back ground when rendering the sky / atmosphere using a GPUComputePipeline.

If this is a texture, a texture view will be created.

Should have the same size as the other textures.

depthBuffer: GPUTexture | GPUTextureView

The depth buffer to limit the ray marching distance when rendering the sky / atmosphere.

If this is a textue, a texture view will be created.

If this is a texture view, it must be allowed to be bound as a texture<f32>. I.e., if the texture has a depth-stencil format, the texture view must be a "depth-only" view.

Should have the same size as the other textures.

renderTarget: GPUTexture | GPUTextureView

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

If this is a texture, a texture view will be created.

Should have the same size as the other textures.

size?: [number, number]

The new size of the textures.

If this is undefined, the new size is determined from the given resources, i.e., at least one of backBuffer, depthBuffer, and renderTarget must be a GPUTexture.