GulkanDevice

GulkanDevice

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GulkanDevice

Includes

#include <gulkan.h>

Description

Functions

gulkan_device_new ()

GulkanDevice *
gulkan_device_new (void);

gulkan_device_create ()

bool
gulkan_device_create (GulkanDevice *self,
                      GulkanInstance *instance,
                      VkPhysicalDevice device,
                      GSList *extensions);

gulkan_device_create_buffer ()

bool
gulkan_device_create_buffer (GulkanDevice *self,
                             VkDeviceSize size,
                             VkBufferUsageFlags usage,
                             VkMemoryPropertyFlags properties,
                             VkBuffer *buffer,
                             VkDeviceMemory *memory);

gulkan_device_create_buffer_from_data ()

bool
gulkan_device_create_buffer_from_data (GulkanDevice *self,
                                       const void *data,
                                       VkDeviceSize size,
                                       VkBufferUsageFlags usage,
                                       VkMemoryPropertyFlags properties,
                                       VkBuffer *buffer,
                                       VkDeviceMemory *memory);

gulkan_device_map_memory ()

bool
gulkan_device_map_memory (GulkanDevice *self,
                          const void *data,
                          VkDeviceSize size,
                          VkDeviceMemory memory);

gulkan_device_memory_type_from_properties ()

bool
gulkan_device_memory_type_from_properties
                               (GulkanDevice *self,
                                uint32_t memory_type_bits,
                                VkMemoryPropertyFlags memory_property_flags,
                                uint32_t *type_index_out);

gulkan_device_queue_supports_surface ()

bool
gulkan_device_queue_supports_surface (GulkanDevice *self,
                                      VkSurfaceKHR surface);

gulkan_device_get_handle ()

VkDevice
gulkan_device_get_handle (GulkanDevice *self);

gulkan_device_get_physical_handle ()

VkPhysicalDevice
gulkan_device_get_physical_handle (GulkanDevice *self);

gulkan_device_get_queue_family_index ()

uint32_t
gulkan_device_get_queue_family_index (GulkanDevice *self);

gulkan_device_get_queue_handle ()

VkQueue
gulkan_device_get_queue_handle (GulkanDevice *self);

gulkan_device_gulkan_device_get_memory_fd ()

gboolean
gulkan_device_gulkan_device_get_memory_fd
                               (GulkanDevice *self,
                                VkDeviceMemory image_memory,
                                int *fd);

gulkan_device_wait_idle ()

void
gulkan_device_wait_idle (GulkanDevice *self);

Types and Values

GulkanDevice

typedef struct _GulkanDevice GulkanDevice;

GULKAN_TYPE_DEVICE

#define GULKAN_TYPE_DEVICE gulkan_device_get_type()