GulkanDescriptorPool

GulkanDescriptorPool

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GulkanDescriptorPool

Includes

#include <gulkan.h>

Description

Functions

GULKAN_DESCRIPTOR_POOL_NEW()

#define             GULKAN_DESCRIPTOR_POOL_NEW(a, b, c, d)

gulkan_descriptor_pool_new_from_layout ()

GulkanDescriptorPool *
gulkan_descriptor_pool_new_from_layout
                               (VkDevice device,
                                VkDescriptorSetLayout layout,
                                const VkDescriptorPoolSize *pool_sizes,
                                uint32_t pool_size_count,
                                uint32_t set_count);

Parameters

device

a VkDevice handle

 

layout

a VkDescriptorSetLayout

 

pool_sizes

an array of VkDescriptorPoolSize.

[array length=pool_size_count][element-type VkDescriptorPoolSize]

pool_size_count

the number of VkDescriptorPoolSize

 

set_count

the maximum number of descriptor sets that can be allocated

 

gulkan_descriptor_pool_new ()

GulkanDescriptorPool *
gulkan_descriptor_pool_new (VkDevice device,
                            const VkDescriptorSetLayoutBinding *bindings,
                            uint32_t binding_count,
                            const VkDescriptorPoolSize *pool_sizes,
                            uint32_t pool_size_count,
                            uint32_t set_count);

Parameters

device

a VkDevice handle

 

bindings

an array of VkDescriptorSetLayoutBinding.

[array length=binding_count][element-type VkDescriptorSetLayoutBinding]

binding_count

the number of VkDescriptorSetLayoutBinding

 

pool_sizes

an array of VkDescriptorPoolSize.

[array length=pool_size_count][element-type VkDescriptorPoolSize]

pool_size_count

the number of VkDescriptorPoolSize

 

set_count

the maximum number of descriptor sets that can be allocated

 

gulkan_descriptor_pool_allocate_sets ()

gboolean
gulkan_descriptor_pool_allocate_sets (GulkanDescriptorPool *self,
                                      uint32_t count,
                                      VkDescriptorSet *sets);

Parameters

self

a VkDevice handle

 

count

the number of VkDescriptorSet

 

sets

an array of VkDescriptorSet.

[array length=count][element-type VkDescriptorSet]

Returns

TRUE if the sets have been allocated


gulkan_descriptor_pool_get_pipeline_layout ()

VkPipelineLayout
gulkan_descriptor_pool_get_pipeline_layout
                               (GulkanDescriptorPool *self);

Parameters

Returns

a VkPipelineLayout.

[transfer none]

Types and Values

GULKAN_TYPE_DESCRIPTOR_POOL

#define GULKAN_TYPE_DESCRIPTOR_POOL gulkan_descriptor_pool_get_type()

GulkanDescriptorPool

typedef struct _GulkanDescriptorPool GulkanDescriptorPool;