simvx.graphics.gpu.context¶
GPU context — bundles core Vulkan handles used throughout the renderer.
Module Contents¶
Classes¶
Immutable bag of GPU handles shared across all renderer passes. |
Data¶
API¶
- simvx.graphics.gpu.context.__all__¶
[‘GPUContext’]
- class simvx.graphics.gpu.context.GPUContext(device: Any, physical_device: Any, graphics_queue: Any, present_queue: Any, graphics_qf: int, cmd_ctx: simvx.graphics.gpu.commands.CommandContext)[source]¶
Immutable bag of GPU handles shared across all renderer passes.
Created once during Vulkan init and stored on Engine as
engine.ctx. Renderer passes should accept or store this rather than reaching into engine internals.Initialization
- __slots__¶
(‘device’, ‘physical_device’, ‘graphics_queue’, ‘present_queue’, ‘graphics_qf’, ‘cmd_ctx’)
- property command_pool: Any¶
Shorthand for
cmd_ctx.pool.