Synced
GraphicsProgramArtifactCodec.Encode
Section titled “GraphicsProgramArtifactCodec.Encode”
- Encodes owned program binaries, reflected bindings, and raster state for device distribution. Vertex layout belongs to the eventual caller and is not part of this artifact.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering
Declaration
Section titled “Declaration”public static byte[] Inno.Rendering.GraphicsProgramArtifactCodec.Encode(Inno.Rendering.GraphicsPipelineDescriptor descriptor)Parameters
Section titled “Parameters”Parameter descriptor: The compiled graphics program to distribute without any asset or material metadata.
Returns
Section titled “Returns”Deterministic binary bytes owned by the caller.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: The descriptor is null.
Exception T:System.IO.InvalidDataException: A stage, binding, or reflected name exceeds the distribution limits.