Monado OpenXR Runtime
|
Vulkan state creators helpers. More...
#include "vk/vk_helpers.h"
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... | |
Vulkan state creators helpers.
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.
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.
Does error logging.
References ARRAY_SIZE, vk_descriptor_pool_info::descriptor_count, vk_descriptor_pool_info::freeable, vk_descriptor_pool_info::sampler_per_descriptor_count, vk_descriptor_pool_info::storage_buffer_per_descriptor_count, vk_descriptor_pool_info::storage_image_per_descriptor_count, and vk_descriptor_pool_info::uniform_per_descriptor_count.
VkResult vk_create_descriptor_set | ( | struct vk_bundle * | vk, |
VkDescriptorPool | descriptor_pool, | ||
VkDescriptorSetLayout | descriptor_layout, | ||
VkDescriptorSet * | out_descriptor_set | ||
) |
VkResult vk_create_pipeline_cache | ( | struct vk_bundle * | vk, |
VkPipelineCache * | out_pipeline_cache | ||
) |
Creates a pipeline cache.
Does error logging.
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.