Interface IRenderBackendContext
Represents an initialized backend context bound to a swap chain / render surface.
public interface IRenderBackendContext : IDisposable
- Inherited Members
Properties
DisplayController
Controls VSync and fullscreen for this context.
IDisplayController DisplayController { get; }
Property Value
RenderSurface
The render surface the frame is drawn on.
IRenderSurface RenderSurface { get; }
Property Value
SurfaceFormat
The pixel format the frame is presented in, as the backend names it -- a Vulkan swapchain's format, for instance -- for diagnostics. "unknown" where the backend cannot say.
string SurfaceFormat { get; }
Property Value
Methods
BeginRenderPass(RenderPassDescriptor)
Begins a render pass that draws into the target descriptor describes. Dispose the returned scope to end the pass.
RenderPassScope BeginRenderPass(RenderPassDescriptor descriptor)
Parameters
descriptorRenderPassDescriptor
Returns
Present()
Shows the finished frame on the window.
void Present()
Resize(int, int)
Resizes the context's buffers to width by height pixels.
void Resize(int width, int height)