Misc renderer improvements:

- Use VK_KHR_multiview
- Compute bounding boxes, use them to sort primitives
- Add shader reflection
- Add debug drawer
This commit is contained in:
Guillaume Meunier
2025-10-25 10:25:53 +02:00
parent 17ac7ab7d9
commit 7963efc034
23 changed files with 1679 additions and 615 deletions
+4 -2
View File
@@ -155,7 +155,8 @@ void scene::render_world(
bool keep_depth_buffer,
uint32_t layer_mask,
XrColor4f clear_color,
const std::optional<xr::foveation_profile> & foveation)
const std::optional<xr::foveation_profile> & foveation,
bool render_debug_draws)
{
std::vector<scene_renderer::frame_info> frames;
frames.reserve(views.size());
@@ -245,7 +246,8 @@ void scene::render_world(
color_image,
depth_image,
foveation_image,
frames);
frames,
render_debug_draws);
add_projection_layer(
XR_COMPOSITION_LAYER_BLEND_TEXTURE_SOURCE_ALPHA_BIT,