SetGlobalConstantBuffer
Add a command to bind a global constant buffer.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetGlobalConstantBuffer(ComputeBuffer, int, int, int)
Add a command to bind a global constant buffer.
public void SetGlobalConstantBuffer(ComputeBuffer buffer, int nameID, int offset, int size)
Parameters
The buffer to bind.
The name ID of the constant buffer retrieved by Shader.PropertyToID.
Offset from the start of the buffer in bytes.
Size in bytes of the area to bind.
Remarks
See Shader.SetGlobalConstantBuffer for usage.
SetGlobalConstantBuffer(ComputeBuffer, string, int, int)
Add a command to bind a global constant buffer.
public void SetGlobalConstantBuffer(ComputeBuffer buffer, string name, int offset, int size)
Parameters
The buffer to bind.
The name of the constant buffer to override.
Offset from the start of the buffer in bytes.
Size in bytes of the area to bind.
Remarks
See Shader.SetGlobalConstantBuffer for usage.
SetGlobalConstantBuffer(GraphicsBuffer, int, int, int)
Add a command to bind a global constant buffer.
public void SetGlobalConstantBuffer(GraphicsBuffer buffer, int nameID, int offset, int size)
Parameters
The buffer to bind.
The name ID of the constant buffer retrieved by Shader.PropertyToID.
Offset from the start of the buffer in bytes.
Size in bytes of the area to bind.
Remarks
See Shader.SetGlobalConstantBuffer for usage.
SetGlobalConstantBuffer(GraphicsBuffer, string, int, int)
Add a command to bind a global constant buffer.
public void SetGlobalConstantBuffer(GraphicsBuffer buffer, string name, int offset, int size)
Parameters
The buffer to bind.
The name of the constant buffer to override.
Offset from the start of the buffer in bytes.
Size in bytes of the area to bind.
Remarks
See Shader.SetGlobalConstantBuffer for usage.