simvx.graphics.picking.pick_pass¶
Off-screen render pass that outputs entity IDs to an R32_UINT framebuffer.
Module Contents¶
Classes¶
Renders entity IDs to a dedicated framebuffer for mouse picking. |
Data¶
API¶
- simvx.graphics.picking.pick_pass.__all__¶
[‘PickPass’]
- simvx.graphics.picking.pick_pass.log¶
‘getLogger(…)’
- simvx.graphics.picking.pick_pass.SHADER_DIR¶
None
- simvx.graphics.picking.pick_pass.MISS¶
4294967295
- class simvx.graphics.picking.pick_pass.PickPass(device: Any, physical_device: Any, graphics_queue: Any, queue_family_index: int, extent: tuple[int, int], descriptor_layout: Any, descriptor_set: Any)¶
Renders entity IDs to a dedicated framebuffer for mouse picking.
Initialization
- create() None¶
- pick(x: int, y: int, view_proj_data: bytes, vertex_buffer: Any, index_buffer: Any, index_count: int, instance_count: int) int¶
Render pick pass and read entity ID at (x, y). Returns entity ID or -1.
- resize(extent: tuple[int, int]) None¶
Recreate framebuffer resources for new extent.
- destroy() None¶
Clean up all resources.