Table of Contents

Interface IRenderBackendContext

Namespace
BSGameLib.Game.Rendering
Assembly
BSGameLib.Game.dll

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

IDisplayController

RenderSurface

The render surface the frame is drawn on.

IRenderSurface RenderSurface { get; }

Property Value

IRenderSurface

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

string

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

descriptor RenderPassDescriptor

Returns

RenderPassScope

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)

Parameters

width int
height int