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

API: engine
Project: Inno.Rendering.Runtime

public bool Inno.Rendering.Runtime.RenderMaterialPass.UsesBinding(Inno.Rendering.RenderBindingId binding, Inno.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.