Vixen
02b45cc4
csharp
public record class GpuFrame

One 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 FrameIndex

    Which frame it was recorded in.

  • public IReadOnlyList<GpuScope> Scopes

    The regions, in the order they were opened.

  • public float Period

    The device's nanoseconds per tick.

  • public static GpuFrame Empty

    The frame with nothing in it.

  • public ulong BeginTicks

    The earliest reading in the frame, which everything else is drawn relative to.

  • public double Milliseconds

    How 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