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

Shader specialization structs for render compute shaders. More...

#include "xrt/xrt_vulkan_includes.h"
#include <stddef.h>
#include "render_shader_specialization.h.inc"
Include dependency graph for render_shader_specialization.h:

Go to the source code of this file.

Detailed Description

Shader specialization structs 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.h.inc is available on the include path.

Generated file (render_shader_specialization.h.inc)
  • One padding-free struct 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) — X-macro with one X(CacheName) entry per shader (e.g. render_distortion).
  • RENDER_SHADER_SPECIALIZATION_ENTRIES(X) — X-macro with one X(CacheName, KeyStruct) pair per shader (e.g. X(render_distortion, render_distortion_spec)).

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