Interface RenderTargetOptions

interface RenderTargetOptions {
    wrapS?: Wrapping;
    wrapT?: Wrapping;
    magFilter?: MagnificationTextureFilter;
    minFilter?: MinificationTextureFilter;
    generateMipmaps?: boolean;
    format?: number;
    type?: TextureDataType;
    anisotropy?: number;
    colorSpace?: ColorSpace;
    internalFormat?: null | PixelFormatGPU;
    depthBuffer?: boolean;
    stencilBuffer?: boolean;
    resolveDepthBuffer?: boolean;
    resolveStencilBuffer?: boolean;
    depthTexture?: null | DepthTexture;
    samples?: number;
    count?: number;
}

Properties

wrapS?: Wrapping
wrapT?: Wrapping
generateMipmaps?: boolean
format?: number
anisotropy?: number
colorSpace?: ColorSpace
internalFormat?: null | PixelFormatGPU
depthBuffer?: boolean
stencilBuffer?: boolean
resolveDepthBuffer?: boolean
resolveStencilBuffer?: boolean
depthTexture?: null | DepthTexture
samples?: number

Defines the count of MSAA samples. Can only be used with WebGL 2. Default is 0.

0
count?: number