Vixen
02b45cc4
csharp
public readonly record struct RecordedCommand

One RHI call, as it was made.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Flat and comparable on purpose. An assertion is Assert.Equal(expected, recorded) over a sequence, and the failure message has to be readable by somebody who did not write the test — so the arguments are named in ToString rather than being a tuple of numbers.

The argument slots are shared between kinds, the same trade Vixen.Platform.PlatformEvent makes: one flat type keeps the stream in order and in one array, and the factory methods on CommandRecorder are the only way to build one, so a slot cannot be filled wrongly more than once.

Fields and properties (8)

  • public RecordedCommandKind Kind

    Which call it was.

  • public int Sequence

    Its position in the stream, from 0.

  • public long A

    First argument slot.

  • public long B

    Second argument slot.

  • public long C

    Third argument slot.

  • public long D

    Fourth argument slot.

  • public long E

    Fifth argument slot.

  • public string? Text

    A name, for the debug-group and marker kinds.

Methods (3)

  • public RecordedCommand(RecordedCommandKind Kind, int Sequence, long A = 0, long B = 0, long C = 0, long D = 0, long E = 0, string? Text = null)

    One RHI call, as it was made.

  • public bool Matches(RecordedCommand other)

    Whether this is the same call with the same arguments, ignoring where in the stream it happened.

  • public override string ToString()

    Returns the fully qualified type name of this instance.

Used by (43, showing 40)

  • AccelerationStructureTestsVixen.Graphics.Null.Tests
  • BindlessFrameTestsVixen.Rendering.Tests
  • BufferTransferTestsVixen.Rendering.Tests
  • ClusterResolveTestsVixen.Rendering.Tests
  • ClusteredLightingTestsVixen.Rendering.Tests
  • CommandRecorderVixen.Graphics.Null
  • CommandRecorderTestsVixen.Graphics.Null.Tests
  • DepthPrepassTestsVixen.Rendering.Tests
  • DescriptorBindingTestsVixen.Rendering.Tests
  • DrawCompactionTestsVixen.Rendering.Tests
  • FixtureVixen.Rendering.Tests
  • FoliageCullPassTestsVixen.Rendering.Terrain.Tests
  • ForwardFrameTestsVixen.Rendering.Tests
  • ForwardLightingTestsVixen.Rendering.Tests
  • GeometryBufferTestsVixen.Rendering.Tests
  • GlobalDistanceFieldTextureTestsVixen.Rendering.Tests
  • GpuVisibilityGroupTestsVixen.Rendering.Tests
  • GraphicsCompositorTestsVixen.Rendering.Tests
  • GrassDispatchTestsVixen.Rendering.Terrain.Tests
  • ImpostorBakeTestsVixen.Rendering.Tests
  • IrradianceFieldTextureTestsVixen.Rendering.Tests
  • LodTestsVixen.Rendering.Tests
  • MaterialBindingTestsVixen.Rendering.Tests
  • MaterialRecordBufferTestsVixen.Rendering.Tests
  • MeshInstanceRendererTestsVixen.Rendering.Tests
  • MeshRenderFeatureTestsVixen.Rendering.Tests
  • NullCommandListVixen.Graphics.Null
  • NullDeviceTestsVixen.Graphics.Null.Tests
  • ParticleRenderFeatureTestsVixen.Rendering.Tests
  • PostEffectTestsVixen.Rendering.PostFx.Tests
  • PostProcessTestsVixen.Rendering.Tests
  • PunctualShadowTestsVixen.Rendering.Tests
  • QueryPoolTestsVixen.Graphics.Null.Tests
  • RenderGraphTestsVixen.Graphics.RenderGraph.Tests
  • ShadowCacheTestsVixen.Rendering.Tests
  • ShadowMapRendererTestsVixen.Rendering.Tests
  • SkinningAndInstancingTestsVixen.Rendering.Tests
  • SpriteRenderFeatureTestsVixen.Rendering.Tests
  • TerrainRendererTestsVixen.Rendering.Terrain.Tests
  • TransformRecordTestsVixen.Rendering.Tests