Extends
Implements
- WebGPUSystems
Members
bindGroup BindGroupSystem
BindGroupSystem instance.
buffer GpuBufferSystem
BufferSystem instance.
colorMask GpuColorMaskSystem
ColorMaskSystem instance.
device GpuDeviceSystem
DeviceSystem instance.
encoder GpuEncoderSystem
EncoderSystem instance.
gpu GPU
The WebGPU Device.
pipeline PipelineSystem
PipelineSystem instance.
renderTarget GpuRenderTargetSystem
RenderTargetSystem instance.
shader GpuShaderSystem
ShaderSystem instance.
state GpuStateSystem
StateSystem instance.
stencil GpuStencilSystem
StencilSystem instance.
texture GpuTextureSystem overrides
TextureSystem instance.
ubo GpuUboSystem
UboSystem instance.
Inherited Properties
From class AbstractRenderer
accessibility rendering.AccessibilitySystem inherited
AccessibilitySystem instance. Requires import 'pixi.js/accessibility'
.
background BackgroundSystem inherited
The background system manages the background color and alpha of the main view.
The canvas element that everything is drawn to.
events rendering.EventSystem inherited
EventSystem instance.
extract ExtractSystem inherited
ExtractSystem instance. Requires import 'pixi.js/extract'
.
filter FilterSystem inherited
FilterSystem instance.
globalUniforms GlobalUniformSystem inherited
GlobalUniformSystem instance.
height number inherited
Same as view.height, actual number of pixels in the canvas by vertical.
- Default Value:
- 600
hello HelloSystem inherited
HelloSystem instance.
the last object rendered by the renderer. Useful for other plugins like interaction managers
name string readonly inherited
The name of the renderer.
prepare PrepareSystem inherited
PrepareSystem instance. Requires import 'pixi.js/prepare'
.
renderGroup RenderGroupSystem inherited
RenderGroupSystem instance.
renderingToScreen boolean readonly inherited
Flag if we are rendering to the screen vs renderTexture
- Default Value:
- true
resolution number inherited
The resolution / device pixel ratio of the renderer.
roundPixels boolean inherited
Whether the renderer will round coordinates to whole pixels when rendering. Can be overridden on a per scene item basis.
Measurements of the screen. (0, 0, screenWidth, screenHeight).
Its safe to use as filterArea or hitArea for the whole stage.
textureGC TextureGCSystem inherited
TextureGCSystem instance.
textureGenerator GenerateTextureSystem inherited
System that manages the generation of textures from the renderer
view ViewSystem inherited
The view system manages the main canvas that is attached to the DOM
width number readonly inherited
Same as view.width, actual number of pixels in the canvas by horizontal.
- Default Value:
- 800
Inherited Methods
From class AbstractRenderer
Generate a texture from a container.
Name | Type | Description |
---|---|---|
options |
GenerateTextureOptions | Container |
options or container target to use when generating the texture |
Returns:
Type | Description |
---|---|
Texture | a texture |
Initialize the renderer.
Name | Type | Description |
---|---|---|
options |
Partial<OPTIONS> |
The options to use to create the renderer. |
Renders the object to its view.
Name | Type | Attributes | Description |
---|---|---|---|
options |
RenderOptions | Container |
The options to render with. |
|
options.container |
The container to render. |
||
options.target |
<optional> |
The target to render to. |
Name | Type | Description |
---|---|---|
container |
Container | |
options |
{ renderTexture: any } |
Resizes the WebGL view to the specified width and height.
Name | Type | Attributes | Description |
---|---|---|---|
desiredScreenWidth |
number |
The desired width of the screen. |
|
desiredScreenHeight |
number |
The desired height of the screen. |
|
resolution |
number |
<optional> |
The resolution / device pixel ratio of the renderer. |