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

C API for specialized compute pipeline caches. More...

#include "cache/render_shader_specialization.h"
#include "vk/vk_helpers.h"
#include "xrt/xrt_results.h"
#include <stddef.h>
Include dependency graph for render_compute_pipeline_cache.h:

Go to the source code of this file.

Macros

#define RENDER_PIPELINE_CACHE_DECLARE(CACHE, SPEC)
 

Detailed Description

C API for specialized compute pipeline caches.

Macro Definition Documentation

◆ RENDER_PIPELINE_CACHE_DECLARE

#define RENDER_PIPELINE_CACHE_DECLARE (   CACHE,
  SPEC 
)
Value:
\
struct CACHE##_pipeline_cache; \
\
xrt_result_t CACHE##_pipeline_cache_create(const char *debug_name, struct CACHE##_pipeline_cache **out_cache); \
\
xrt_result_t CACHE##_pipeline_cache_init(struct CACHE##_pipeline_cache *cache, VkShaderModule shader, \
VkPipelineLayout layout, VkPipelineCache pipeline_cache); \
\
xrt_result_t CACHE##_pipeline_cache_get(struct CACHE##_pipeline_cache *cache, struct vk_bundle *vk, \
const struct SPEC *key, VkPipeline *out_pipeline); \
\
xrt_result_t CACHE##_pipeline_cache_prewarm(struct CACHE##_pipeline_cache *cache, struct vk_bundle *vk, \
const struct SPEC *keys, size_t key_count); \
\
void CACHE##_pipeline_cache_destroy(struct CACHE##_pipeline_cache **cache, struct vk_bundle *vk);
enum xrt_result xrt_result_t
Result type used across Monado.
A bundle of Vulkan functions and objects, used by both Compositor and Compositor client code.
Definition vk_helpers.h:81