Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


supportsSetConstantBuffer

Does the current renderer support binding constant buffers directly? (Read Only)
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool supportsSetConstantBuffer { get; }

Remarks

Methods such as SetConstantBuffer and Material.SetConstantBuffer allow overriding all shader parameters that reside in a given constant buffer with a custom GfxBuffer. This property returns true if the currently active renderer supports binding constant buffers. It returns false if the render does not support such bindings.