Synced
ShaderIrBuilder
Section titled “ShaderIrBuilder”
Builds typed shader IR instructions for graph compilation.
Builds typed instructions and structured regions. No API accepts an arbitrary backend expression or complete stage source. This builder is transient and belongs to one lowering operation, never to a persisted document or runtime frame.
Builds typed shader IR instructions for graph compilation.
Required contracts
Section titled “Required contracts”API: engine
Inherits: object
Project: Inno.Rendering.Shaders
Declaration
Section titled “Declaration”public sealed class Inno.Rendering.Shaders.ShaderIrBuilderMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | ShaderIrBuilder.Constructor | Creates an independent typed region builder and value identity scope. |
| Methods | ShaderIrBuilder.AtomicAddStorage | Atomically adds to a scalar integer buffer element and returns its previous value. |
| Methods | ShaderIrBuilder.Binary | Applies an explicitly typed binary arithmetic or scalar comparison operation. |
| Methods | ShaderIrBuilder.Branch | Builds a real conditional: only the selected region executes, including its memory and source-call effects. |
| Methods | ShaderIrBuilder.Build | Freezes the current region without pruning unused calls or retaining this mutable builder. |
| Methods | ShaderIrBuilder.Call | Calls a validated source implementation using semantic parameter names, preserving all call side effects. |
| Methods | ShaderIrBuilder.Constant(System.Boolean) | Produces a scalar Boolean constant. |
| Methods | ShaderIrBuilder.Constant(System.Int32) | Produces an exact signed 32-bit integer constant. |
| Methods | ShaderIrBuilder.Constant(System.Single) | Produces a finite, exact 32-bit floating-point constant. |
| Methods | ShaderIrBuilder.Constant(System.UInt32) | Produces an exact unsigned 32-bit integer constant. |
| Methods | ShaderIrBuilder.Construct | Constructs a complete vector, column-major matrix, structure or fixed array from typed members. |
| Methods | ShaderIrBuilder.Discard | Discards a fragment when the Boolean condition is true; other stages reject this instruction. |
| Methods | ShaderIrBuilder.Extract | Extracts one static component, structure member or array element without source-language member syntax. |
| Methods | ShaderIrBuilder.Input | Reads a named input from the enclosing typed function or stage interface. |
| Methods | ShaderIrBuilder.LoadStorage | Loads a storage value at this exact point in the block’s memory-effect sequence. |
| Methods | ShaderIrBuilder.Loop | Builds a counted loop; each iteration receives the preceding iteration’s complete carried state. |
| Methods | ShaderIrBuilder.Sample | Samples a texture using implicit derivatives; the enclosing stage must be Fragment. |
| Methods | ShaderIrBuilder.SampleLevel | Samples a texture at an explicit floating-point mip level without implicit derivatives. |
| Methods | ShaderIrBuilder.Select | Selects between equal typed values without conditionally executing their producers. |
| Methods | ShaderIrBuilder.StoreStorage | Stores a storage value without pruning unused writes or reordering surrounding memory operations. |