Interface IWebGPURenderPipelineAsyncCreationOptions
alphaMode?: number;
colorFormat?: GPUTextureFormat;
cullEnabled?: boolean;
cullFace?: number;
depthCompare?: number;
depthStencilFormat?: GPUTextureFormat;
depthTest?: boolean;
depthWrite?: boolean;
effect: Effect;
fillMode?: number;
frontFace?: number;
mesh: AbstractMesh;
sampleCount?: number;
stencilEnabled?: boolean;
writeMask?: number;
}
Properties
Optionalalpha Mode
The alpha blending mode (e.g. Constants.ALPHA_DISABLE, Constants.ALPHA_COMBINE). Defaults to Constants.ALPHA_DISABLE.
Optionalcolor Format
The color render target format. Defaults to the engine's current canvas color format.
Optionalcull Enabled
Whether back-face culling is enabled. Defaults to true.
Optionalcull Face
Which face to cull (1 = back, 2 = front). Defaults to 1 (back).
Optionaldepth Compare
The depth comparison function (e.g. Constants.LEQUAL). Defaults to Constants.LEQUAL.
Optionaldepth Stencil Format
The depth-stencil render target format. Defaults to the engine's current depth format.
Optionaldepth Test
Whether depth testing is enabled. Defaults to true.
Optionaldepth Write
Whether depth writing is enabled. Defaults to true.
effect
The compiled effect (shader stages) for the pipeline.
Optionalfill Mode
The fill mode / primitive topology. Defaults to Constants.MATERIAL_TriangleFillMode.
Optionalfront Face
Front face winding order (1 = CCW, 2 = CW). Defaults to 2 (CW).
mesh
The mesh whose vertex buffer layout to use.
Optionalsample Count
The MSAA sample count. Defaults to the engine's current sample count.
Optionalstencil Enabled
Whether stencil testing is enabled. Defaults to false.
Optionalwrite Mask
Color channel write mask (bitmask of RGBA channels). Defaults to 0xF (all channels).
Options for pre-warming a render pipeline asynchronously. All render state properties are optional and default to the most common opaque rendering state.