Constructor
new WebGPURenderer( parameters : WebGPURenderer~Options )
Constructs a new WebGPU renderer.
parameters |
The configuration parameter. |
Properties
.isWebGPURenderer : boolean (readonly)
This flag can be used for type testing.
Default is true.
.library : StandardNodeLibrary
The generic default value is overwritten with the standard node library for type mapping.
- Overrides: Renderer#library
Type Definitions
.Options
WebGPURenderer options.
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
logarithmicDepthBuffer |
boolean |
<optional> |
false | Whether logarithmic depth buffer is enabled or not. |
alpha |
boolean |
<optional> |
true | Whether the default framebuffer (which represents the final contents of the canvas) should be transparent or opaque. |
depth |
boolean |
<optional> |
true | Whether the default framebuffer should have a depth buffer or not. |
stencil |
boolean |
<optional> |
false | Whether the default framebuffer should have a stencil buffer or not. |
antialias |
boolean |
<optional> |
false | Whether MSAA as the default anti-aliasing should be enabled or not. |
samples |
number |
<optional> |
0 | When |
forceWebGL |
boolean |
<optional> |
false | If set to |
multiview |
boolean |
<optional> |
false | If set to |
outputType |
number |
<optional> |
Texture type for output to canvas. By default, device's preferred format is used; other formats may incur overhead. |
|
colorBufferType |
number |
<optional> |
HalfFloatType | Defines the type of color buffers. The default |