Class VrsLut
Variable rate shading lookup table. Use to convert shading rate fragment size and color back and forth.
Inherited Members
Namespace: UnityEngine .Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
[Serializable]
public class VrsLut
Properties
this[ShadingRateFragmentSize]
Indexing data with ShadingRateFragmentSize enum.
Declaration
public Color this[ShadingRateFragmentSize fragmentSize] { get; set; }
Parameters
Type | Name | Description |
---|---|---|
Shading |
fragmentSize | Shading rate fragment size to set/get |
Property Value
Type | Description |
---|---|
Color |
Methods
CreateBuffer(bool)
Create a compute buffer from the lookup table.
Declaration
public GraphicsBuffer CreateBuffer(bool forVisualization = false)
Parameters
Type | Name | Description |
---|---|---|
bool | forVisualization | If true, the buffer will be created with the visualization shader in mind |
Returns
Type | Description |
---|---|
Graphics |
Graphics buffer representing this lookup table |
CreateDefault()
Get a new instance of default VrsLut
Declaration
public static VrsLut CreateDefault()
Returns
Type | Description |
---|---|
Vrs |
New instance of default VrsLut |