Synced
ShaderIrStage.Constructor
Section titled “ShaderIrStage.Constructor”
- Validates and freezes a single stage’s interface and ordered body.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public Inno.Rendering.Shaders.ShaderIrStage.ShaderIrStage(Inno.Rendering.ShaderStage stage, Inno.Rendering.Shaders.ShaderIrBlock body, System.Collections.Generic.IEnumerable<Inno.Rendering.Shaders.ShaderIrStageInput> inputs, System.Collections.Generic.IEnumerable<Inno.Rendering.Shaders.ShaderIrStageOutput> outputs, int threadsX = 1, int threadsY = 1, int threadsZ = 1)Parameters
Section titled “Parameters”Parameter stage: Exactly Vertex, Fragment or Compute.
Parameter body: Immutable typed instructions and named outputs.
Parameter inputs: Exactly the input bindings read by the body.
Parameter outputs: Exactly the GPU destinations written by the body.
Parameter threadsX: Compute workgroup X size; one for raster stages.
Parameter threadsY: Compute workgroup Y size; one for raster stages.
Parameter threadsZ: Compute workgroup Z size; one for raster stages.