Method SetComputeTextureParam
SetComputeTextureParam(CommandBuffer, ComputeShaderInstance, int, Texture)
Adds a command to set a texture parameter on a compute shader.
Declaration
public static void SetComputeTextureParam(this CommandBuffer cmd, ComputeShaderInstance shader, int nameID, Texture texture)
Parameters
| Type | Name | Description |
|---|---|---|
| CommandBuffer | cmd | The command buffer. |
| ComputeShaderInstance | shader | The compute shader to set the parameter for. |
| int | nameID | The property name ID. |
| Texture | texture | The texture to set. |