Synced
RenderMaterialPass.UsesBinding
Section titled “RenderMaterialPass.UsesBinding”
- Gets whether the compiled program actively consumes one declared binding.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Rendering.Runtime
Declaration
Section titled “Declaration”public bool Inno.Rendering.Runtime.RenderMaterialPass.UsesBinding(Inno.Rendering.RenderBindingId binding, Inno.Rendering.RenderShaderBindingKind kind)Parameters
Section titled “Parameters”Parameter binding: Stable binding declared by the shader contract.
Parameter kind: Expected command-binding domain.
Returns
Section titled “Returns”true when the final compiled pass reflects the binding; otherwise, false when the compiler proved the declared binding unused and removed it.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentException: The binding is not declared by the shader, or its declared kind differs from kind.