Synced
GraphicsProgramArtifactCodec.Decode
Section titled “GraphicsProgramArtifactCodec.Decode”
- Validates a complete device program artifact before constructing an owned pipeline descriptor.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering
Declaration
Section titled “Declaration”public static Inno.Rendering.GraphicsPipelineDescriptor Inno.Rendering.GraphicsProgramArtifactCodec.Decode(System.ReadOnlySpan<byte> bytes, Inno.Rendering.RenderVertexLayout? vertexLayout = null)Parameters
Section titled “Parameters”Parameter bytes: The complete current artifact, including its strict magic header.
Parameter vertexLayout: The caller’s vertex layout, or null for a procedural pipeline.
Returns
Section titled “Returns”A detached descriptor containing the validated binaries, bindings, and raster state.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: The input is truncated, oversized, malformed, or contains trailing data.