Monado OpenXR Runtime
vk_state_creators.c File Reference

Vulkan state creators helpers. More...

#include "vk/vk_helpers.h"
Include dependency graph for vk_state_creators.c:

Functions

VkResult vk_create_descriptor_pool (struct vk_bundle *vk, const struct vk_descriptor_pool_info *info, VkDescriptorPool *out_descriptor_pool)
 Creates a descriptor pool, made for a single layout. More...
 
VkResult vk_create_descriptor_set (struct vk_bundle *vk, VkDescriptorPool descriptor_pool, VkDescriptorSetLayout descriptor_layout, VkDescriptorSet *out_descriptor_set)
 Creates a descriptor set. More...
 
VkResult vk_create_pipeline_layout (struct vk_bundle *vk, VkDescriptorSetLayout descriptor_set_layout, VkPipelineLayout *out_pipeline_layout)
 Creates a pipeline layout from a single descriptor set layout. More...
 
VkResult vk_create_pipeline_cache (struct vk_bundle *vk, VkPipelineCache *out_pipeline_cache)
 Creates a pipeline cache. More...
 
VkResult vk_create_compute_pipeline (struct vk_bundle *vk, VkPipelineCache pipeline_cache, VkShaderModule shader, VkPipelineLayout pipeline_layout, const VkSpecializationInfo *specialization_info, VkPipeline *out_compute_pipeline)
 Creates a compute pipeline, assumes entry function is called 'main'. More...
 

Detailed Description

Function Documentation

◆ vk_create_compute_pipeline()

VkResult vk_create_compute_pipeline ( struct vk_bundle vk,
VkPipelineCache  pipeline_cache,
VkShaderModule  shader,
VkPipelineLayout  pipeline_layout,
const VkSpecializationInfo *  specialization_info,
VkPipeline *  out_compute_pipeline 
)

Creates a compute pipeline, assumes entry function is called 'main'.

Does error logging.

◆ vk_create_descriptor_pool()

◆ vk_create_descriptor_set()

VkResult vk_create_descriptor_set ( struct vk_bundle vk,
VkDescriptorPool  descriptor_pool,
VkDescriptorSetLayout  descriptor_layout,
VkDescriptorSet *  out_descriptor_set 
)

Creates a descriptor set.

Does error logging.

◆ vk_create_pipeline_cache()

VkResult vk_create_pipeline_cache ( struct vk_bundle vk,
VkPipelineCache *  out_pipeline_cache 
)

Creates a pipeline cache.

Does error logging.

◆ vk_create_pipeline_layout()

VkResult vk_create_pipeline_layout ( struct vk_bundle vk,
VkDescriptorSetLayout  descriptor_set_layout,
VkPipelineLayout *  out_pipeline_layout 
)

Creates a pipeline layout from a single descriptor set layout.

Does error logging.