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/SpritePackerWebGpu
SpritePackerWebGpu
Class SpritePackerWebGpu
Hierarchy
SpritePackerBase
<
GPUTexture
>
SpritePackerWebGpu
Index
Constructors
constructor
Properties
inverse
Texture
Size
size
texture
Accessors
loaded
Sprite
Count
Methods
add
Sprite
delete
insert
Sprite
Into
Texture
load
Constructors
constructor
new
Sprite
Packer
Web
Gpu
(
context
:
WebGpuRendererContext
, size
:
number
, addNullSprite
:
boolean
, packLargeToSmall
?:
boolean
)
:
SpritePackerWebGpu
Parameters
context:
WebGpuRendererContext
size:
number
addNullSprite:
boolean
packLargeToSmall:
boolean
= false
Returns
SpritePackerWebGpu
Properties
Readonly
inverse
Texture
Size
inverse
Texture
Size
:
default
Readonly
size
size
:
number
Readonly
texture
texture
:
GPUTexture
Accessors
loaded
Sprite
Count
get
loadedSpriteCount
(
)
:
number
Returns
number
Methods
add
Sprite
add
Sprite
(
src
:
string
, frontPack
?:
boolean
)
:
Promise
<
ISpriteInfo
>
Parameters
src:
string
Optional
frontPack:
boolean
Returns
Promise
<
ISpriteInfo
>
delete
delete
(
)
:
void
Returns
void
Protected
insert
Sprite
Into
Texture
insert
Sprite
Into
Texture
(
node
:
SpriteAtlasNode
, spriteContainer
:
ISpriteContainer
)
:
void
Parameters
node:
SpriteAtlasNode
spriteContainer:
ISpriteContainer
Returns
void
load
load
(
parallel
:
Parallel
)
:
Promise
<
boolean
>
Parameters
parallel:
Parallel
Returns
Promise
<
boolean
>
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
Sprite
Packer
Web
Gpu
constructor
inverse
Texture
Size
size
texture
loaded
Sprite
Count
add
Sprite
delete
insert
Sprite
Into
Texture
load
Generated using
TypeDoc