Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Gets whether the compiled program actively consumes one declared binding.

API: scripting
Project: Inno.Rendering.Runtime
Scope: Runtime

public bool InnoEngine.Rendering.RenderMaterialPass.UsesBinding(InnoEngine.Rendering.RenderBindingId binding, InnoEngine.Rendering.RenderShaderBindingKind kind)

Parameter binding: Stable binding declared by the shader contract.

Parameter kind: Expected command-binding domain.

true when the final compiled pass reflects the binding; otherwise, false when the compiler proved the declared binding unused and removed it.

Exception T:System.ArgumentException: The binding is not declared by the shader, or its declared kind differs from kind.