Name | Type | Attributes | Description |
---|---|---|---|
descriptor |
RenderTargetOptions |
<optional> |
Options for creating a render target. |
Members
defaultOptions RenderTargetOptions static
The default options for a render target
Properties:
Name | Type | Default | Description |
---|---|---|---|
antialias |
boolean |
false
|
should this render target be antialiased? |
colorTextures |
number |
1
|
an array of textures, or a number indicating how many color textures there should be |
depth |
boolean |
false
|
should this render target have a depth buffer? |
height |
number |
0
|
the height of the RenderTarget |
isRoot |
boolean |
false
|
is this a root element, true if this is gl context owners render target |
resolution |
number |
1
|
the resolution of the RenderTarget |
stencil |
boolean |
false
|
should this render target have a stencil buffer? |
width |
number |
0
|
the width of the RenderTarget |
colorTextures TextureSource[]
An array of textures that can be written to by the GPU - mostly this has one texture in Pixi, but you could write to multiple if required! (eg deferred lighting)
if true, will ensure a depth buffer is added. For WebGPU, this will automatically create a depthStencilTexture
depthStencilTexture TextureSource
the stencil and depth buffer will right to this texture in WebGPU
if true, will ensure a stencil buffer is added. For WebGPU, this will automatically create a depthStencilTexture