Class ConstantBuffer
Constant Buffer management class.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public class ConstantBuffer
Methods
Name | Description |
---|---|
PushGlobal<CBType>(CommandBuffer, in CBType, int) | Update the GPU data of the constant buffer and bind it globally via a command buffer. |
PushGlobal<CBType>(in CBType, int) | Update the GPU data of the constant buffer and bind it globally. |
Push<CBType>(CommandBuffer, in CBType, ComputeShader, int) | Update the GPU data of the constant buffer and bind it to a compute shader via a command buffer. |
Push<CBType>(CommandBuffer, in CBType, Material, int) | Update the GPU data of the constant buffer and bind it to a material via a command buffer. |
Push<CBType>(in CBType, ComputeShader, int) | Update the GPU data of the constant buffer and bind it to a compute shader. |
Push<CBType>(in CBType, Material, int) | Update the GPU data of the constant buffer and bind it to a material. |
ReleaseAll() | Release all currently allocated singleton constant buffers. This needs to be called before shutting down the application. |
SetGlobal<CBType>(int) | Bind the constant buffer globally. |
SetGlobal<CBType>(CommandBuffer, int) | Bind the constant buffer globally via a command buffer. |
Set<CBType>(ComputeShader, int) | Bind the constant buffer to a compute shader. |
Set<CBType>(Material, int) | Bind the constant buffer to a material. |
Set<CBType>(CommandBuffer, ComputeShader, int) | Bind the constant buffer to a compute shader via a command buffer. |
UpdateData<CBType>(CommandBuffer, in CBType) | Update the GPU data of the constant buffer via a command buffer. |
UpdateData<CBType>(in CBType) | Update the GPU data of the constant buffer. |