Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Creates a nominal structure with a validated immutable field layout.

API: engine
Project: Inno.Rendering.Shaders

public static Inno.Rendering.Shaders.ShaderSourceType Inno.Rendering.Shaders.ShaderSourceType.Structure(string id, System.Collections.Generic.IEnumerable<Inno.Rendering.Shaders.ShaderSourceField> fields)

Parameter id: Public structure identity shared by alternative implementations.

Parameter fields: Unique named fields in declaration order.

An immutable structure type.

Exception T:System.ArgumentException: The identity is reserved, or fields are empty, null, or duplicated.