Class HDComputeThickness
Class handling the generation of fullscreen thickness
Inherited Members
Namespace: UnityEngine.Rendering.HighDefinition
Assembly: Unity.RenderPipelines.HighDefinition.Runtime.dll
Syntax
public sealed class HDComputeThickness
Fields
computeThicknessMaxLayer
Max RT of Thickness we can computed in a single frame
Declaration
public static uint computeThicknessMaxLayer
Field Value
Type | Description |
---|---|
uint |
Properties
Instance
Current unique instance
Declaration
public static HDComputeThickness Instance { get; }
Property Value
Type | Description |
---|---|
HDComputeThickness |
Methods
GetReindexMap()
Get a GraphicsBuffer To reindex from LayerIndex to SliceIndex of the TextureArray of Thicknesses.
Declaration
public GraphicsBuffer GetReindexMap()
Returns
Type | Description |
---|---|
GraphicsBuffer | The GraphicsBuffer (StructuredArray<uint>[computeThicknessMaxLayer] |
GetThicknessTextureArray()
Return a TextureArrayHandle of thicknesses computed, the slices count are the layer needed.
Declaration
public TextureHandle GetThicknessTextureArray()
Returns
Type | Description |
---|---|
TextureHandle | TextureArray of thicknesses computed. |
SetReindexMap(GraphicsBuffer)
Set a ComputeBuffer To reindex from LayerIndex to SliceIndex of the TextureArray of Thicknesses.
Declaration
public void SetReindexMap(GraphicsBuffer cb)
Parameters
Type | Name | Description |
---|---|---|
GraphicsBuffer | cb | The ComputeBuffer (StructuredArray<uint>[computeThicknessMaxLayer] |
SetTextureArray(TextureHandle)
TextureArray of thicknesses computed.
Declaration
public void SetTextureArray(TextureHandle rt)
Parameters
Type | Name | Description |
---|---|---|
TextureHandle | rt | TextureArray of thicknesses computed. |