Interface IComputeEffectCreationOptions
interface IComputeEffectCreationOptions {
defines: any;
entryPoint?: string;
onCompiled: Nullable<(effect: ComputeEffect) => void>;
onError: Nullable<(effect: ComputeEffect, errors: string) => void>;
processFinalCode?: Nullable<(code: string) => string>;
useExplicitComputePipelineLayout?: boolean;
}
defines: any;
entryPoint?: string;
onCompiled: Nullable<(effect: ComputeEffect) => void>;
onError: Nullable<(effect: ComputeEffect, errors: string) => void>;
processFinalCode?: Nullable<(code: string) => string>;
useExplicitComputePipelineLayout?: boolean;
}
Index
Properties
defines
defines: any
Define statements that will be set in the shader.
Optionalentry Point
entryPoint?: string
The name of the entry point in the shader source (default: "main")
on Compiled
Callback that will be called when the shader is compiled.
on Error
Callback that will be called if an error occurs during shader compilation.
Optionalprocess Final Code
If provided, will be called with the shader code so that this code can be updated before it is compiled by the GPU
Optionaluse Explicit Compute Pipeline Layout
useExplicitComputePipelineLayout?: boolean
If true, the engine should create an explicit pipeline layout for the compute effect instead of using an automatic layout.
Options to be used when creating a compute effect.