Method PushGlobal
PushGlobal<CBType>(CommandBuffer, in CBType, int)
Update the GPU data of the constant buffer and bind it globally via a command buffer.
Declaration
public static void PushGlobal<CBType>(CommandBuffer cmd, in CBType data, int shaderId) 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.  | 
    
| int | shaderId | Shader porperty id to bind the constant buffer to.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| CBType | The type of structure representing the constant buffer data.  | 
    
PushGlobal<CBType>(in CBType, int)
Update the GPU data of the constant buffer and bind it globally.
Declaration
public static void PushGlobal<CBType>(in CBType data, int shaderId) where CBType : struct
Parameters
| Type | Name | Description | 
|---|---|---|
| CBType | data | Input data of the constant buffer.  | 
    
| int | shaderId | Shader porperty id to bind the constant buffer to.  | 
    
Type Parameters
| Name | Description | 
|---|---|
| CBType | The type of structure representing the constant buffer data.  |