Skip to content

RenderDataPoint

StructChartGuruChartGuru
public struct RenderDataPoint

GPU-ready data point for shader upload. Minimal data for rendering. Size: 16 bytes (fits in float4).

public float X

Returns

System.Single

public float Y

Returns

System.Single

public float Value

Returns

System.Single

public uint PackedData

Returns

System.UInt32

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

public int SeriesIndex { readonly get; set; }

Returns

System.Int32