Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Decodes a deployed shader artifact and validates it against the requesting runtime shader and variant.

API: engine
Project: Inno.Rendering.Assets

public static Inno.Rendering.Assets.RenderShaderArtifact Inno.Rendering.Assets.RenderShaderArtifactCodec.Decode(System.ReadOnlySpan<byte> bytes, string expectedShaderName, Inno.Rendering.Assets.RenderShaderVariant expectedVariant)

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.

A fully validated, source-free artifact ready for GPU resource creation.

Exception T:System.IO.InvalidDataException: Thrown when the payload is corrupt, exceeds safety limits, or does not match the request.