Synced
ShaderPropertyDefinition.Constructor
Section titled “ShaderPropertyDefinition.Constructor”
- Creates a shader property definition.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Rendering.ShaderPropertyDefinition.ShaderPropertyDefinition(InnoEngine.Rendering.ShaderPropertyId id, string displayName, InnoEngine.Rendering.ShaderPropertyType type, InnoEngine.Rendering.ShaderStage stages, InnoEngine.Rendering.MaterialValue defaultValue, InnoEngine.Rendering.ShaderPropertyBindingKind? bindingKind = null, InnoEngine.Rendering.RenderStorageAccess storageAccess = InnoEngine.Rendering.RenderStorageAccess.Read, InnoEngine.Rendering.ShaderPropertyBindingOwner bindingOwner = InnoEngine.Rendering.ShaderPropertyBindingOwner.Material)Parameters
Section titled “Parameters”Parameter id: Stable property identifier.
Parameter displayName: Artist-facing property name.
Parameter type: Property type.
Parameter stages: Stages that access the property.
Parameter defaultValue: Native serializable default value.
Parameter bindingKind: Optional explicit binding domain. When omitted, numeric values become uniforms, textures become sampled textures, and buffers become storage buffers.
Parameter storageAccess: Required access for storage texture or buffer bindings.
Parameter bindingOwner: Layer responsible for supplying the binding value at execution time.