Method UpdateData
UpdateData<CBType>(CommandBuffer, in CBType)
Update the GPU data of the constant buffer via a command buffer.
Declaration
public static void UpdateData<CBType>(CommandBuffer cmd, in CBType data) where CBType : struct
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | Command Buffer used to execute the graphic commands. |
| CBType | data | Input data of the constant buffer. |
Type Parameters
| Name | Description |
|---|---|
| CBType | The type of structure representing the constant buffer data. |
UpdateData<CBType>(in CBType)
Update the GPU data of the constant buffer.
Declaration
public static void UpdateData<CBType>(in CBType data) where CBType : struct
Parameters
| Type | Name | Description |
|---|---|---|
| CBType | data | Input data of the constant buffer. |
Type Parameters
| Name | Description |
|---|---|
| CBType | The type of structure representing the constant buffer data. |