跳转到内容

ShaderWarmupOptions

此内容尚不支持你的语言。

Defined in: sdk/src/render/shaderWarmup.ts:27

optional onProgress?: (pending) => void

Defined in: sdk/src/render/shaderWarmup.ts:33

Called after each frame with how many shaders are still compiling.

number

void


optional settleFrames?: number

Defined in: sdk/src/render/shaderWarmup.ts:31

Consecutive frames in which nothing was compiling before it counts as done: a frame can ask for a shader the one before did not. Default 3.


optional timeoutMs?: number

Defined in: sdk/src/render/shaderWarmup.ts:29

How long to wait for the compiles before giving up and opening anyway. Default 30000.