Class: ScenegraphGPUAnimationResources
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:22
Storage and instance attributes for one primitive using the GPU animation shader module.
Constructors
Constructor
new ScenegraphGPUAnimationResources(
device,layout,animationJointCount,morphTargetCount,capacity?,id?):ScenegraphGPUAnimationResources
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:31
Parameters
device
Device
layout
animationJointCount
number
morphTargetCount
number
capacity?
number = 1
id?
string = 'scenegraph-animation'
Returns
ScenegraphGPUAnimationResources
Properties
animationBlend
readonlyanimationBlend:Float32Array
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:28
animationBlendBuffer
readonlyanimationBlendBuffer:Buffer
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:29
animationFrames
readonlyanimationFrames:Buffer|Texture
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:23
animationFrameStride
readonlyanimationFrameStride:number
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:25
animationFrameValues
readonlyanimationFrameValues:Float32Array
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:24
animationJointCount
readonlyanimationJointCount:number
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:34
animationParameterBuffer
readonlyanimationParameterBuffer:Buffer
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:27
animationParameters
readonlyanimationParameters:Float32Array
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:26
layout
readonlylayout:ScenegraphGPUAnimationLayout
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:33
morphTargetCount
readonlymorphTargetCount:number
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:35
Accessors
attributes
Get Signature
get attributes():
Record<string,Buffer>
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:88
Vertex attributes consumed by the GPU animation shader module.
Returns
Record<string, Buffer>
bindings
Get Signature
get bindings():
object
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:83
Returns
object
gpuAnimationFrames
gpuAnimationFrames:
Buffer|Texture
bufferLayout
Get Signature
get bufferLayout():
BufferLayout[]
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:95
Returns
BufferLayout[]
defines
Get Signature
get defines():
Record<string,boolean|number>
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:76
Shader options for the shared GPU animation module.
Returns
Record<string, boolean | number>
Methods
destroy()
destroy():
void
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:114
Returns
void
upload()
upload():
void
Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:103
Uploads the baked atlas after sampling has finished.
Returns
void