Synced
ShaderPropertyDefinition.Constructor
Section titled “ShaderPropertyDefinition.Constructor”
- Creates a shader property definition.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Assets
Declaration
Section titled “Declaration”public Inno.Rendering.Assets.ShaderPropertyDefinition.ShaderPropertyDefinition(Inno.Rendering.ShaderPropertyId id, string displayName, Inno.Rendering.ShaderPropertyType type, Inno.Rendering.ShaderStage stages, Inno.Rendering.Assets.MaterialValue defaultValue, Inno.Rendering.ShaderPropertyBindingKind? bindingKind = null, Inno.Rendering.RenderStorageAccess storageAccess = Inno.Rendering.RenderStorageAccess.Read, Inno.Rendering.Assets.ShaderPropertyBindingOwner bindingOwner = Inno.Rendering.Assets.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.