GpuDeviceHandle Class

Shared, mutable reference to the GPU device pointer. The renderer creates one instance and passes it to every texture it allocates. When the renderer destroys the device, it calls Brine2D.Rendering.GpuDeviceHandle.Invalidate, and all textures that still reference this handle see System.IntPtr.Zero instead of a dangling pointer.

internal sealed class GpuDeviceHandle

Inheritance System.Object → GpuDeviceHandle