SetGlobalBuffer
Add a "set global shader buffer property" command.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetGlobalBuffer(string, ComputeBuffer)
Add a "set global shader buffer property" command.
public void SetGlobalBuffer(string name, ComputeBuffer value)
Parameters
Remarks
When the command buffer will be executed, a global shader buffer property will be set at this point. The effect is as if Shader.SetGlobalBuffer was called.
SetGlobalBuffer(int, ComputeBuffer)
Add a "set global shader buffer property" command.
public void SetGlobalBuffer(int nameID, ComputeBuffer value)
Parameters
Remarks
When the command buffer will be executed, a global shader buffer property will be set at this point. The effect is as if Shader.SetGlobalBuffer was called.
SetGlobalBuffer(string, GraphicsBuffer)
Add a "set global shader buffer property" command.
public void SetGlobalBuffer(string name, GraphicsBuffer value)
Parameters
Remarks
When the command buffer will be executed, a global shader buffer property will be set at this point. The effect is as if Shader.SetGlobalBuffer was called.
SetGlobalBuffer(int, GraphicsBuffer)
Add a "set global shader buffer property" command.
public void SetGlobalBuffer(int nameID, GraphicsBuffer value)
Parameters
Remarks
When the command buffer will be executed, a global shader buffer property will be set at this point. The effect is as if Shader.SetGlobalBuffer was called.