Skip to main content

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​

ScenegraphGPUAnimationLayout

animationJointCount​

number

morphTargetCount​

number

capacity?​

number = 1

id?​

string = 'scenegraph-animation'

Returns​

ScenegraphGPUAnimationResources

Properties​

animationBlend​

readonly animationBlend: Float32Array

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:28


animationBlendBuffer​

readonly animationBlendBuffer: Buffer

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:29


animationFrames​

readonly animationFrames: Buffer | Texture

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:23


animationFrameStride​

readonly animationFrameStride: number

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:25


animationFrameValues​

readonly animationFrameValues: Float32Array

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:24


animationJointCount​

readonly animationJointCount: number

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:34


animationParameterBuffer​

readonly animationParameterBuffer: Buffer

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:27


animationParameters​

readonly animationParameters: Float32Array

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:26


layout​

readonly layout: ScenegraphGPUAnimationLayout

Defined in: modules/engine/src/api/animation/scenegraph-gpu-animation.ts:33


morphTargetCount​

readonly morphTargetCount: 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