Synced
IRenderDevice
Section titled “IRenderDevice”
- Owns one graphics backend generation and its frame submission boundary.
Required contracts
Section titled “Required contracts”API: engine
Implements: System.IDisposable
Project: Inno.Rendering
Declaration
Section titled “Declaration”public interface Inno.Rendering.IRenderDevice : System.IDisposableMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Methods | IRenderDevice.BeginFrame | Begins the sole API-thread frame scope and processes queued resource work. |
| Methods | IRenderDevice.BeginTextureReadback | Begins an asynchronous readback of one complete persistent texture mip. |
| Methods | IRenderDevice.CancelTextureReadback | Stops retaining a readback result that is no longer needed by its caller. |
| Methods | IRenderDevice.CreateBuffer | Creates a persistent vertex, index or storage buffer at a frame safety point. |
| Methods | IRenderDevice.CreateComputePipeline | Creates and reflection-validates a compute pipeline at a frame safety point. |
| Methods | IRenderDevice.CreateGraphicsPipeline | Creates and reflection-validates a graphics pipeline at a frame safety point. |
| Methods | IRenderDevice.CreateTexture(Inno.Rendering.RenderTextureContainer,System.ReadOnlySpan{System.Byte},System.Boolean,System.String) | Creates a persistent sampled texture from a validated portable container. |
| Methods | IRenderDevice.CreateTexture(Inno.Rendering.RenderTextureDescriptor,System.String) | Creates a persistent texture at a frame safety point. |
| Methods | IRenderDevice.DestroyBuffer | Queues a persistent buffer for delayed GPU-safe destruction. |
| Methods | IRenderDevice.DestroyComputePipeline | Queues a compute pipeline for delayed GPU-safe destruction. |
| Methods | IRenderDevice.DestroyGraphicsPipeline | Queues a graphics pipeline for delayed GPU-safe destruction. |
| Methods | IRenderDevice.DestroyTexture | Queues a persistent texture for delayed GPU-safe destruction. |
| Methods | IRenderDevice.EndFrame | Ends all encoders and advances the graphics backend exactly once. |
| Methods | IRenderDevice.Execute | Executes one compiled graph without presenting or advancing another frame. |
| Methods | IRenderDevice.SetPrimaryPresentationSize | Queues primary output availability and its real pixel extent for the next frame safety point. |
| Methods | IRenderDevice.SetVerticalSync | Queues display synchronization policy on the API thread for the next frame boundary. Every backend must implement both policies. Repeated values are idempotent and must not reset an active pass. Windowless devices retain the requested policy without performing presentation. |
| Methods | IRenderDevice.TryGetTextureReadback | Tries to complete one previously requested texture readback. |
| Methods | IRenderDevice.UpdateBuffer | Replaces a contiguous range in a dynamic persistent buffer at a frame safety point. |
| Methods | IRenderDevice.UpdateTexture | Replaces one complete mip and addressable layer, slice, or cubemap face. |
| Methods | IRenderDevice.UpdateTextureRegion | Replaces a tightly packed rectangular region in one persistent texture subresource. |
| Properties | IRenderDevice.allocationCounters | Gets cumulative native transient allocations for this device generation on the API thread. A null snapshot means allocation accounting is unavailable, not that no resources were allocated. |
| Properties | IRenderDevice.capabilities | Gets immutable capabilities for the active device generation. |
| Properties | IRenderDevice.frameCounters | Gets command counts recorded since the latest M:Inno.Rendering.IRenderDevice.BeginFrame call. Backends that cannot provide command accounting return zero counters. |
| Properties | IRenderDevice.generation | Gets the non-zero device generation used to reject stale persistent handles. |
| Properties | IRenderDevice.primaryPresentationEncodesSrgb | Gets whether the primary presentation target encodes linear RGB to sRGB during writes. |
| Properties | IRenderDevice.primaryPresentationSize | Gets the real primary presentation extent in physical pixels, or null while no output is available. |