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

API: scripting
Project: Inno.Rendering.Shaders
Scope: Editor

public static InnoEditor.Rendering.Shaders.ShaderSourceType InnoEditor.Rendering.Shaders.ShaderSourceType.Structure(string id, System.Collections.Generic.IEnumerable<InnoEditor.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.