Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced

RenderDeviceAllocationCounters.Constructor

Section titled “RenderDeviceAllocationCounters.Constructor”
  • Creates an immutable allocation snapshot scoped to one device generation.

API: engine
Project: Inno.Rendering

public Inno.Rendering.RenderDeviceAllocationCounters.RenderDeviceAllocationCounters(uint deviceGeneration, ulong textureAllocations, ulong bufferAllocations, ulong frameBufferAllocations)

Parameter deviceGeneration: Non-zero generation that owns the measured pools; counters restart for a new generation.

Parameter textureAllocations: Successful native transient texture allocations since device creation.

Parameter bufferAllocations: Successful native transient buffer allocations since device creation.

Parameter frameBufferAllocations: Successful native transient attachment framebuffer allocations since device creation.

Exception T:System.ArgumentOutOfRangeException: The device generation is zero.