Interface RenderTargetCreationOptions
colorAttachment?: InternalTexture;
comparisonFunction?: number;
createMipMaps?: boolean;
createMSAATexture?: boolean;
creationFlags?: number;
format?: number;
generateDepthBuffer?: boolean;
generateMipMaps?: boolean;
generateStencilBuffer?: boolean;
isCube?: boolean;
label?: string;
noColorAttachment?: boolean;
samples?: number;
samplingMode?: number;
type?: number;
useSRGBBuffer?: boolean;
}
Hierarchy (View Summary)
- InternalTextureCreationOptions
- RenderTargetCreationOptions
Properties
Optionalcolor Attachment
Specifies the internal texture to use directly instead of creating one (ignores noColorAttachment flag when set) *
Optionalcomparison Function
Comparison function. Used only for depth textures (default: 0)
Optionalcreate Mip Maps
Specifies if mipmaps must be created. If undefined, the value from generateMipMaps is taken instead
Optionalcreate MSAA Texture
If the MSAA texture must be created right away (default: false)
Optionalcreation Flags
Texture creation flags
Optionalformat
Defines format (RGBA by default)
Optionalgenerate Depth Buffer
Specifies whether or not a depth should be allocated in the texture (true by default)
Optionalgenerate Mip Maps
Specifies if mipmaps must be generated
Optionalgenerate Stencil Buffer
Specifies whether or not a stencil should be allocated in the texture (false by default)
Optionalis Cube
If the created texture is a cube texture
Optionallabel
Label of the texture (used for debugging only)
Optionalno Color Attachment
Specifies that no color target should be bound to the render target (useful if you only want to write to the depth buffer, for eg)
Optionalsamples
Defines sample count (1 by default)
Optionalsampling Mode
Defines sampling mode (trilinear by default)
Optionaltype
Defines texture type (unsigned byte by default)
Optionaluse SRGB Buffer
Creates the RTT in sRGB space
Define options used to create a render target texture