Monado OpenXR Runtime
Loading...
Searching...
No Matches
render_shader_specialization.hpp File Reference

C++ shader specialization map entries for render compute shaders. More...

#include "xrt/xrt_vulkan_includes.h"
#include <array>
#include <cstddef>
#include "cache/render_shader_specialization.h"
#include "render_shader_specialization.hpp.inc"
Include dependency graph for render_shader_specialization.hpp:

Go to the source code of this file.

Detailed Description

C++ shader specialization map entries for render compute shaders.

Entry point for build-generated specialization metadata. Include after the render_shader_specialization custom target (or aux_shaders) has been built so render_shader_specialization.hpp.inc is available on the include path.

Declared here
  • ShaderSpecializationMap<Key> primary template (specializations are generated below).
Generated file (render_shader_specialization.hpp.inc)
  • One ShaderSpecializationMap specialization per shader listed in shader_specializations().
  • RENDER_SHADER_SPECIALIZATION_KEYS(X) — X-macro with one X(KeyStruct) entry per generated spec struct (e.g. render_distortion_spec).
  • RENDER_SHADER_SPECIALIZATION_CACHE_NAMES(X) and RENDER_SHADER_SPECIALIZATION_ENTRIES(X) — same cache-name macros as in render_shader_specialization.h.

Struct definitions live in render_shader_specialization.h.

Produced by cmake/generate_shader_specialization.py via cmake/ShaderSpecialization.cmake.