Class RendererContext

Class Documentation

class RendererContext

Shared rendering context accessible during frame rendering.

Provides access to Vulkan context, and attachment properties. Passed to systems/modules that need GPU resources during rendering.

Public Functions

RendererContext(renderer::vulkan::VulkanContext &gpu_context)

Constructs renderer context.

Parameters:

gpu_context – Vulkan context

const renderer::vulkan::VulkanContext &get_gpu_context() const

Gets Vulkan context (const)

renderer::vulkan::VulkanContext &get_gpu_context()

Gets Vulkan context (mutable)

Public Members

size_t frames_in_flight = 0

Protected Attributes

renderer::vulkan::VulkanContext &gpu_context