跳转到内容

PostProcessAPI

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

Defined in: postprocess/PostProcessAPI.ts:181

new PostProcessAPI(): PostProcessAPI

PostProcessAPI

readonly state: PostProcessState

Defined in: postprocess/PostProcessAPI.ts:182


readonly volumeShaders: Map<string, number>

Defined in: postprocess/PostProcessAPI.ts:186


readonly volumeStacks: Map<number, PostProcessStack>

Defined in: postprocess/PostProcessAPI.ts:185

Volume-system bookkeeping (per-App): camera → the stack it created, and shared effect shaders.

get screenStack(): PostProcessStack | null

Defined in: postprocess/PostProcessAPI.ts:198

PostProcessStack | null

_applyForCamera(camera): void

Defined in: postprocess/PostProcessAPI.ts:391

number

void


_applyScreenStack(): void

Defined in: postprocess/PostProcessAPI.ts:433

void


_beginScreenCapture(): void

Defined in: postprocess/PostProcessAPI.ts:417

void


_endScreenCapture(): void

Defined in: postprocess/PostProcessAPI.ts:425

void


_executeScreenPasses(): void

Defined in: postprocess/PostProcessAPI.ts:472

void


_resetAfterCamera(): void

Defined in: postprocess/PostProcessAPI.ts:407

void


begin(): void

Defined in: postprocess/PostProcessAPI.ts:355

void


bind(camera, stack): void

Defined in: postprocess/PostProcessAPI.ts:210

number

PostProcessStack

void


createStack(): PostProcessStack

Defined in: postprocess/PostProcessAPI.ts:206

PostProcessStack


end(): void

Defined in: postprocess/PostProcessAPI.ts:363

void


getStack(camera): PostProcessStack | null

Defined in: postprocess/PostProcessAPI.ts:221

number

PostProcessStack | null


hdrFormat(): HdrFormat | null

Defined in: postprocess/PostProcessAPI.ts:332

The format decision the last frame COMMITTED to.

The frame’s own answer, not the device asked again. linear false is a project that never asked for HDR, which is not a fallback. The names come from the engine — a second spelling of the enum’s order is drift.

HdrFormat | null


init(width, height): boolean

Defined in: postprocess/PostProcessAPI.ts:227

number

number

boolean


isInitialized(): boolean

Defined in: postprocess/PostProcessAPI.ts:252

boolean


msaaCapability(): object

Defined in: postprocess/PostProcessAPI.ts:306

What the scene target is ACTUALLY multisampled at, and the most this device can do.

Two numbers because a request and a capability are different facts: asking for 8 where the backend allows 1 is not a typo, and only saying both tells those apart. 0 means nothing here can answer.

object

effective: number

max: number


resize(width, height): void

Defined in: postprocess/PostProcessAPI.ts:244

number

number

void


setBypass(bypass): void

Defined in: postprocess/PostProcessAPI.ts:262

boolean

void


setMsaaSamples(samples): void

Defined in: postprocess/PostProcessAPI.ts:290

Multisampling the scene target should rasterise with; 1 turns it off. The device clamps it, so this is the project’s ASK, not what it gets — a backend with no MSAA answers 1 whatever is set here.

number

void


setOutputTransform(transform): void

Defined in: postprocess/PostProcessAPI.ts:277

The curve the frame applies on its way to the display.

Applied to whatever the chain produced, so it also engages the capture: a project that asks for a curve gets one with an empty stack. See OutputTransform for which to want.

OutputTransform

void


setOutputViewport(x, y, w, h): void

Defined in: postprocess/PostProcessAPI.ts:381

number

number

number

number

void


setPresentRequired(required): void

Defined in: postprocess/PostProcessAPI.ts:373

Say the frame needs a present when the rects alone cannot: a 1x letterbox and a split-screen viewport are the same geometry and differ only in intent.

boolean

void


setScreenStack(stack): void

Defined in: postprocess/PostProcessAPI.ts:202

PostProcessStack | null

void


shutdown(): void

Defined in: postprocess/PostProcessAPI.ts:236

void


unbind(camera): void

Defined in: postprocess/PostProcessAPI.ts:217

number

void