Method SetGlobal
SetGlobal<CBType>(CommandBuffer, int)
Bind the constant buffer globally via a command buffer.
Declaration
public static void SetGlobal<CBType>(CommandBuffer cmd, int shaderId) where CBType : struct
Parameters
| Type | Name | Description | 
|---|---|---|
| CommandBuffer | cmd | Command Buffer used to execute the graphic commands.  | 
    
| 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.  | 
    
SetGlobal<CBType>(int)
Bind the constant buffer globally.
Declaration
public static void SetGlobal<CBType>(int shaderId) where CBType : struct
Parameters
| Type | Name | Description | 
|---|---|---|
| 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.  |