Synced
RenderShaderArtifactCodec.Decode
Section titled “RenderShaderArtifactCodec.Decode”
- Decodes a deployed shader artifact and validates it against the requesting runtime shader and variant.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets
Declaration
Section titled “Declaration”public static Inno.Rendering.Assets.RenderShaderArtifact Inno.Rendering.Assets.RenderShaderArtifactCodec.Decode(System.ReadOnlySpan<byte> bytes, string expectedShaderName, Inno.Rendering.Assets.RenderShaderVariant expectedVariant)Parameters
Section titled “Parameters”Parameter bytes: The complete binary deployment payload.
Parameter expectedShaderName: The shader name declared by the requesting runtime asset.
Parameter expectedVariant: The exact static keyword selection requested by the material.
Returns
Section titled “Returns”A fully validated, source-free artifact ready for GPU resource creation.
Exceptions
Section titled “Exceptions”Exception T:System.IO.InvalidDataException: Thrown when the payload is corrupt, exceeds safety limits, or does not match the request.