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.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)[source]¶
Renders entity IDs to a dedicated framebuffer for mouse picking.
Initialization
- pick(x: int, y: int, view_proj_data: bytes, vertex_buffer: Any, index_buffer: Any, index_count: int, instance_count: int) int[source]¶
Render pick pass and read entity ID at (x, y). Returns entity ID or -1.
vertex_buffermust be a position-stream buffer (tightly packed float3, binding 0 of the D5 stream split), e.g.MeshBuffers.position.