RenderDataPoint
public struct RenderDataPointGPU-ready data point for shader upload. Minimal data for rendering. Size: 16 bytes (fits in float4).
Fields
Section titled “Fields”
public float XReturns
System.Single
public float YReturns
System.Single
public float ValueReturns
System.Single
PackedData
Section titled “PackedData”public uint PackedDataReturns
System.UInt32
Methods
Section titled “Methods”
FromDataPoint(DataPoint, float2)
Section titled “FromDataPoint(DataPoint, float2)”public static RenderDataPoint FromDataPoint(DataPoint dp, float2 normalizedPos)Creates the compact GPU upload record for a point at the supplied rendered position.
Parameters
| Name | Type |
|---|---|
dp |
ChartGuru.DataPoint |
normalizedPos |
Unity.Mathematics.float2 |
Returns
ChartGuru.RenderDataPoint
Properties
Section titled “Properties”
SeriesIndex
Section titled “SeriesIndex”public int SeriesIndex { readonly get; set; }Returns
System.Int32