Skip to content

PostPass beta ​

Interface of @v12-engine/render

ts
export interface PostPass

A game's own pass, once added (Renderer.post.addPass)

Members ​

drawn ​

ts
readonly drawn: boolean;

Whether the last frame drew it

enabled ​

ts
enabled: boolean;

Off leaves it out of the chain, kept made, so that it is on again at once

error ​

ts
readonly error: string | undefined;

What the card said is wrong with its WGSL: never drawn

name ​

ts
readonly name: string;

What it is called: in the frame's passes (pass <name>)

order ​

ts
readonly order: number;

Its order among the passes at its place: the lower first, then as added

place ​

ts
readonly place: PostPlace;

Where among the picture's passes it is drawn

ready ​

ts
readonly ready: boolean;

Its WGSL made into a shader with nothing wrong: drawn from then, while enabled

remove ​

ts
remove(): void;

Takes it out of the chain for good, its shader and its uniforms let go of

removed ​

ts
readonly removed: boolean;

Whether it was taken out for good (remove)

values ​

ts
readonly values: Float32Array;

What its WGSL reads as game.values (four vec4f), as written here: read every frame

wgsl ​

ts
readonly wgsl: string;

Its WGSL as given: fn shade(uv: vec2f, colour: vec4f) -> vec4f and what it needs