csharp
public record class GpuFrameOne frame's GPU work, resolved and converted to a readable unit.
No guide page documents this yet — the page shows what the code says about itself.
Fields and properties (6)
public int FrameIndexWhich frame it was recorded in.
public IReadOnlyList<GpuScope> ScopesThe regions, in the order they were opened.
public float PeriodThe device's nanoseconds per tick.
public static GpuFrame EmptyThe frame with nothing in it.
public ulong BeginTicksThe earliest reading in the frame, which everything else is drawn relative to.
public double MillisecondsHow long the whole frame took on the GPU, in milliseconds.
Methods (3)
public GpuFrame(int FrameIndex, IReadOnlyList<GpuScope> Scopes, float Period)One frame's GPU work, resolved and converted to a readable unit.
public double MillisecondsOf(GpuScope scope)How long one scope took, in milliseconds.
public float Fraction(ulong ticks)Where a reading falls in the frame's window.
Used by (5)
- DiagnosticsModuleVixen.Editor.Diagnostics
- EditorApplicationVixen.Editor.App
- GpuProfilerVixen.Editor.Profiler
- GpuProfilerTestsVixen.Editor.Profiler.Tests
- GpuTimelineViewVixen.Editor.Profiler