Synced
RenderMaterialPass.UsesBinding
Section titled “RenderMaterialPass.UsesBinding”
- Gets whether the compiled program actively consumes one declared binding.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering.Runtime
Scope: Runtime
Declaration
Section titled “Declaration”public bool InnoEngine.Rendering.RenderMaterialPass.UsesBinding(InnoEngine.Rendering.RenderBindingId binding, InnoEngine.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.