Class ConstantBuffer<CBType>
An instance of a constant buffer.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class ConstantBuffer<CBType> : ConstantBufferBase where CBType : struct
Type Parameters
Name | Description |
---|---|
CBType | The type of structure representing the constant buffer data. |
Constructors
Name | Description |
---|---|
Constant |
Constant Buffer constructor. |
Methods
Name | Description |
---|---|
Push |
Update the GPU data of the constant buffer and bind it globally via a command buffer. |
Push |
Update the GPU data of the constant buffer and bind it globally. |
Release() | Release the constant buffers. |
Set(Compute |
Bind the constant buffer to a compute shader. |
Set(Material, int) | Bind the constant buffer to a material. |
Set(Command |
Bind the constant buffer to a compute shader via a command buffer. |
Set |
Bind the constant buffer globally. |
Set |
Bind the constant buffer globally via a command buffer. |
Update |
Update the GPU data of the constant buffer via a command buffer. |
Update |
Update the GPU data of the constant buffer. |