Method SetRayTracingBufferParam
SetRayTracingBufferParam<T>(CommandBuffer, RayTracingShader, int, StructuredBuffer<T>)
Adds a command to set a compute buffer parameter on a RayTracingShader.
Declaration
public static void SetRayTracingBufferParam<T>(this CommandBuffer cmd, RayTracingShader rayTracingShader, int nameID, StructuredBuffer<T> buffer) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer. |
RayTracingShader | rayTracingShader | The RayTracingShader to set the parameter for. |
int | nameID | The property name ID. |
StructuredBuffer<T> | buffer | The compute buffer to set. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the GPU buffer. |
SetRayTracingBufferParam<T>(CommandBuffer, RayTracingShader, int, ExchangeBuffer<T>)
Adds a command to set a compute buffer parameter on a RayTracingShader.
Declaration
public static void SetRayTracingBufferParam<T>(this CommandBuffer cmd, RayTracingShader rayTracingShader, int nameID, ExchangeBuffer<T> buffer) where T : unmanaged
Parameters
Type | Name | Description |
---|---|---|
CommandBuffer | cmd | The command buffer. |
RayTracingShader | rayTracingShader | The RayTracingShader to set the parameter for. |
int | nameID | The property name ID. |
ExchangeBuffer<T> | buffer | The compute buffer to set. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in the GPU buffer. |