Synced
RenderDeviceAllocationCounters.Constructor
Section titled “RenderDeviceAllocationCounters.Constructor”
- Creates an immutable allocation snapshot scoped to one device generation.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Rendering
Scope: Runtime
Declaration
Section titled “Declaration”public InnoEngine.Rendering.RenderDeviceAllocationCounters.RenderDeviceAllocationCounters(uint deviceGeneration, ulong textureAllocations, ulong bufferAllocations, ulong frameBufferAllocations)Parameters
Section titled “Parameters”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.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentOutOfRangeException: The device generation is zero.