Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced

RenderDeviceAllocationCounters.Constructor

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

API: scripting
Project: Inno.Rendering
Scope: Runtime

public InnoEngine.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.