Skip to content

Engine → Renderer

gpu_ids.h

Handles to GPU mirrors of assets and to render targets. Each id is a distinct core::slot_map key type with the compact 32-bit index + 16-bit generation layout, so a slot retires after 65535 reuses. A stale id resolves to the fallback object (unit cube, white texture, magenta material, grey environment) and logs a WARN once.

Structs

File Description
detail::gpu_id Common body of every gpu id: the slot index and the generation the id was issued with. Generation 0 is never issued, so a default id is invalid.
gpu_environment_tag
gpu_material_tag
gpu_mesh_tag
gpu_texture_tag
render_target_tag
std::hash<conjure::renderer::detail::gpu_id<Tag>>

Type Aliases

gpu_environment_id

using gpu_environment_id = detail::gpu_id<gpu_environment_tag>;

gpu_material_id

using gpu_material_id = detail::gpu_id<gpu_material_tag>;

gpu_mesh_id

using gpu_mesh_id = detail::gpu_id<gpu_mesh_tag>;

gpu_texture_id

using gpu_texture_id = detail::gpu_id<gpu_texture_tag>;

render_target_id

using render_target_id = detail::gpu_id<render_target_tag>;