Preparing search index...
The search index is not available
Wayward Types Viewer | 2.14.0-beta.dev.20240903.1
Wayward Types Viewer
renderer/platform/webgpu/WebGpuRendererContext
WebGpuRendererContext
Class WebGpuRendererContext
Hierarchy
WebGpuRendererContext
Implements
IRendererContext
Index
Constructors
constructor
Properties
canvas
canvas
Context
device
presentation
Format
renderer
resource
Loader
viewport
Accessors
as
Web
Gl
as
Web
Gpu
maybe
Origin
origin
resource
Container
Methods
create
Field
Of
View
Platform
create
Index
Buffer
create
Particle
Renderer
create
Persistant
Sprite
Batch
create
Sprite
Batch
create
Uniform
Buffer
create
Vertex
Buffer
create
World
Layer
Renderer
create
World
Renderer
prepare
Viewport
Render
render
Constructors
constructor
new
Web
Gpu
Renderer
Context
(
renderer
:
Renderer
, device
:
GPUDevice
, canvasContext
:
GPUCanvasContext
, presentationFormat
:
GPUTextureFormat
)
:
WebGpuRendererContext
Parameters
renderer:
Renderer
device:
GPUDevice
canvasContext:
GPUCanvasContext
presentationFormat:
GPUTextureFormat
Returns
WebGpuRendererContext
Properties
Readonly
canvas
canvas
:
HTMLCanvasElement
Readonly
canvas
Context
canvas
Context
:
GPUCanvasContext
Readonly
device
device
:
GPUDevice
Readonly
presentation
Format
presentation
Format
:
GPUTextureFormat
Readonly
renderer
renderer
:
Renderer
Readonly
resource
Loader
resource
Loader
:
default
= ...
Readonly
viewport
viewport
:
IVector2
= ...
Accessors
as
Web
Gl
get
asWebGl
(
)
:
undefined
Returns
undefined
as
Web
Gpu
get
asWebGpu
(
)
:
WebGpuRendererContext
Returns
WebGpuRendererContext
maybe
Origin
get
maybeOrigin
(
)
:
undefined
|
IRendererOrigin
Returns
undefined
|
IRendererOrigin
origin
get
origin
(
)
:
IRendererOrigin
Returns
IRendererOrigin
set
origin
(
origin
:
IRendererOrigin
)
:
void
Parameters
origin:
IRendererOrigin
Returns
void
resource
Container
get
resourceContainer
(
)
:
undefined
|
IResourceContainer
<
GPUTexture
>
Returns
undefined
|
IResourceContainer
<
GPUTexture
>
Methods
create
Field
Of
View
Platform
create
Field
Of
View
Platform
(
fieldOfView
:
FieldOfView
)
:
IFieldOfViewPlatform
Parameters
fieldOfView:
FieldOfView
Returns
IFieldOfViewPlatform
create
Index
Buffer
create
Index
Buffer
(
data
:
Uint16Array
)
:
GPUBuffer
Parameters
data:
Uint16Array
Returns
GPUBuffer
create
Particle
Renderer
create
Particle
Renderer
(
maxParticles
:
number
, positionSizeData
:
Float32Array
, colorData
:
Uint8Array
)
:
IParticleRendererPlatform
Parameters
maxParticles:
number
positionSizeData:
Float32Array
colorData:
Uint8Array
Returns
IParticleRendererPlatform
create
Persistant
Sprite
Batch
create
Persistant
Sprite
Batch
(
id
:
string
, depthOffset
?:
number
, yOffset
?:
number
, enableAlphaMultiplcation
?:
boolean
)
:
PersistantSpriteBatch
Parameters
id:
string
depthOffset:
number
= 0.0
yOffset:
number
= 0.0
enableAlphaMultiplcation:
boolean
= true
Returns
PersistantSpriteBatch
create
Sprite
Batch
create
Sprite
Batch
(
id
:
string
, capacity
:
number
, depthOffset
?:
number
, yOffset
?:
number
, enableAlphaMultiplcation
?:
boolean
, enforceBeginAndEnd
?:
boolean
)
:
ISpriteBatch
Parameters
id:
string
capacity:
number
depthOffset:
number
= 0.0
yOffset:
number
= 0.0
enableAlphaMultiplcation:
boolean
= true
enforceBeginAndEnd:
boolean
= true
Returns
ISpriteBatch
create
Uniform
Buffer
create
Uniform
Buffer
(
data
:
Float32Array
)
:
GPUBuffer
Parameters
data:
Float32Array
Returns
GPUBuffer
create
Vertex
Buffer
create
Vertex
Buffer
(
data
:
Float32Array
)
:
GPUBuffer
Parameters
data:
Float32Array
Returns
GPUBuffer
create
World
Layer
Renderer
create
World
Layer
Renderer
(
worldLayerRenderer
:
WorldLayerRenderer
)
:
IWorldLayerRendererPlatform
Parameters
worldLayerRenderer:
WorldLayerRenderer
Returns
IWorldLayerRendererPlatform
create
World
Renderer
create
World
Renderer
(
worldRenderer
:
WorldRenderer
)
:
IWorldRendererPlatform
Parameters
worldRenderer:
WorldRenderer
Returns
IWorldRendererPlatform
prepare
Viewport
Render
prepare
Viewport
Render
(
viewportOffsetX
:
number
, rendererWidth
:
number
, canvasHeight
:
number
, post
?:
boolean
)
:
void
Parameters
viewportOffsetX:
number
rendererWidth:
number
canvasHeight:
number
Optional
post:
boolean
Returns
void
render
render
(
timeStamp
:
number
, renderersOrder
:
Set
<
Renderer
>
)
:
void
Called for the primary renderer
Parameters
timeStamp:
number
renderersOrder:
Set
<
Renderer
>
Returns
void
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Navigation
Modding Guide
Module Index
Common Modules
@Register
IDoodadDescription
IItemDescription
ITerrainDescription
ITileEventDescription
ICreatureDescription
In This Module
Web
Gpu
Renderer
Context
constructor
canvas
canvas
Context
device
presentation
Format
renderer
resource
Loader
viewport
as
Web
Gl
as
Web
Gpu
maybe
Origin
origin
resource
Container
create
Field
Of
View
Platform
create
Index
Buffer
create
Particle
Renderer
create
Persistant
Sprite
Batch
create
Sprite
Batch
create
Uniform
Buffer
create
Vertex
Buffer
create
World
Layer
Renderer
create
World
Renderer
prepare
Viewport
Render
render
Generated using
TypeDoc
Called for the primary renderer