Monado OpenXR Runtime
Loading...
Searching...
No Matches
render_shader_specialization_helpers.h
Go to the documentation of this file.
1// Copyright 2026, NVIDIA CORPORATION.
2// SPDX-License-Identifier: BSL-1.0
3/*!
4 * @file
5 * @brief Build render shader specialization keys from render configuration.
6 * @ingroup aux_render
7 */
8
9#pragma once
10
12
13#include <stdint.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
19static inline struct render_distortion_spec
20render_make_distortion_spec(uint32_t distortion_texel_count, VkBool32 do_timewarp, uint32_t view_count)
21{
22 struct render_distortion_spec spec = {
23 .distortion_texel_count = (int32_t)distortion_texel_count,
24 .do_timewarp = do_timewarp,
25 .view_count = (int32_t)view_count,
26 };
27
28 return spec;
29}
30
31#ifdef __cplusplus
32}
33#endif
Shader specialization structs for render compute shaders.