SetRandomWriteTarget
Set random write target for Shader Model 4.5 level pixel shaders.
Read time 2 minutesLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Rendering
- Assembly: UnityEngine.CoreModule
SetRandomWriteTarget(int, RenderTargetIdentifier)
Set random write target for Shader Model 4.5 level pixel shaders.
public void SetRandomWriteTarget(int index, RenderTargetIdentifier rt)
Parameters
Index of the random write target in the shader.
RenderTargetIdentifier to set as the write target.
Remarks
This is the CommandBuffer equivalent of Graphics.SetRandomWriteTarget. The same limitations and exceptions apply to this call as to Graphics.SetRandomWriteTarget.
SetRandomWriteTarget(int, ComputeBuffer, bool)
Set random write target for Shader Model 4.5 level pixel shaders.
public void SetRandomWriteTarget(int index, ComputeBuffer buffer, bool preserveCounterValue)
Parameters
Index of the random write target in the shader.
Buffer to set as the write target.
Whether to leave the append/consume counter value unchanged.
Remarks
This is the CommandBuffer equivalent of Graphics.SetRandomWriteTarget. The same limitations and exceptions apply to this call as to Graphics.SetRandomWriteTarget.
SetRandomWriteTarget(int, ComputeBuffer)
Set random write target for Shader Model 4.5 level pixel shaders.
public void SetRandomWriteTarget(int index, ComputeBuffer buffer)
Parameters
Index of the random write target in the shader.
Buffer to set as the write target.
Remarks
This is the CommandBuffer equivalent of Graphics.SetRandomWriteTarget. The same limitations and exceptions apply to this call as to Graphics.SetRandomWriteTarget.
SetRandomWriteTarget(int, GraphicsBuffer, bool)
Set random write target for Shader Model 4.5 level pixel shaders.
public void SetRandomWriteTarget(int index, GraphicsBuffer buffer, bool preserveCounterValue)
Parameters
Index of the random write target in the shader.
Buffer to set as the write target.
Whether to leave the append/consume counter value unchanged.
Remarks
This is the CommandBuffer equivalent of Graphics.SetRandomWriteTarget. The same limitations and exceptions apply to this call as to Graphics.SetRandomWriteTarget.
SetRandomWriteTarget(int, GraphicsBuffer)
Set random write target for Shader Model 4.5 level pixel shaders.
public void SetRandomWriteTarget(int index, GraphicsBuffer buffer)
Parameters
Index of the random write target in the shader.
Buffer to set as the write target.
Remarks
This is the CommandBuffer equivalent of Graphics.SetRandomWriteTarget. The same limitations and exceptions apply to this call as to Graphics.SetRandomWriteTarget.