#include <vulkan/vulkan.h>
Go to the source code of this file.
Classes | |
struct | BufferResource_s |
Macros | |
#define | VKPT_MAX_GPUS 1 |
#define | IMAGE_BARRIER(cmd_buf, ...) |
#define | BUFFER_BARRIER(cmd_buf, ...) |
#define | CREATE_PIPELINE_LAYOUT(dev, layout, ...) |
#define | ATTACH_LABEL_VARIABLE(a, type) do{}while(0) |
#define | ATTACH_LABEL_VARIABLE_NAME(a, type, name) do{}while(0) |
#define | BEGIN_CMD_LABEL(cmd_buf, label) do{}while(0) |
#define | END_CMD_LABEL(cmd_buf) do{}while(0) |
Typedefs | |
typedef struct BufferResource_s | BufferResource_t |
Functions | |
char * | sgets (char *str, int num, char const **input) |
VkResult | buffer_create (BufferResource_t *buf, VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags mem_properties) |
VkResult | buffer_destroy (BufferResource_t *buf) |
void | buffer_unmap (BufferResource_t *buf) |
void * | buffer_map (BufferResource_t *buf) |
uint32_t | get_memory_type (uint32_t mem_req_type_bits, VkMemoryPropertyFlags mem_prop) |
const char * | qvk_format_to_string (VkFormat format) |
const char * | qvk_result_to_string (VkResult result) |
static size_t | align (size_t x, size_t alignment) |
#define ATTACH_LABEL_VARIABLE_NAME | ( | a, | |
type, | |||
name | |||
) | do{}while(0) |
#define BUFFER_BARRIER | ( | cmd_buf, | |
... | |||
) |
#define CREATE_PIPELINE_LAYOUT | ( | dev, | |
layout, | |||
... | |||
) |
#define IMAGE_BARRIER | ( | cmd_buf, | |
... | |||
) |
typedef struct BufferResource_s BufferResource_t |
|
inlinestatic |
Definition at line 143 of file vk_util.h.
Referenced by allocate_and_bind_memory_to_blas(), allocate_and_bind_memory_to_buffers(), FillVertexAndIndexBuffers(), IMG_ReadPixels_GL(), vkpt_create_images(), vkpt_uniform_buffer_create(), and vkpt_uniform_buffer_update().
VkResult buffer_create | ( | BufferResource_t * | buf, |
VkDeviceSize | size, | ||
VkBufferUsageFlags | usage, | ||
VkMemoryPropertyFlags | mem_properties | ||
) |
Definition at line 57 of file vk_util.c.
Referenced by FillVertexAndIndexBuffers(), load_blue_noise(), UploadImage(), vkpt_draw_initialize(), vkpt_light_stats_create(), vkpt_pt_create_pipelines(), vkpt_pt_init(), vkpt_textures_end_registration(), vkpt_textures_upload_envmap(), vkpt_uniform_buffer_create(), vkpt_uniform_precomputed_buffer_create(), and vkpt_vertex_buffer_create().
VkResult buffer_destroy | ( | BufferResource_t * | buf | ) |
Definition at line 132 of file vk_util.c.
Referenced by FillVertexAndIndexBuffers(), load_blue_noise(), ReleaseShadowmapResources(), UploadImage(), vkpt_draw_destroy(), vkpt_light_stats_destroy(), vkpt_pt_destroy(), vkpt_pt_destroy_pipelines(), vkpt_textures_upload_envmap(), vkpt_uniform_buffer_destroy(), vkpt_uniform_precomputed_buffer_destroy(), and vkpt_vertex_buffer_destroy().
void* buffer_map | ( | BufferResource_t * | buf | ) |
Definition at line 147 of file vk_util.c.
Referenced by FillVertexAndIndexBuffers(), load_blue_noise(), UploadImage(), vkpt_draw_submit_stretch_pics(), vkpt_light_buffer_upload_to_staging(), vkpt_pt_create_pipelines(), vkpt_pt_create_toplevel(), vkpt_readback(), vkpt_textures_end_registration(), vkpt_textures_upload_envmap(), vkpt_uniform_buffer_update(), vkpt_uniform_precomputed_buffer_update(), vkpt_vertex_buffer_upload_bsp_mesh_to_staging(), and vkpt_vertex_buffer_upload_models_to_staging().
void buffer_unmap | ( | BufferResource_t * | buf | ) |
Definition at line 159 of file vk_util.c.
Referenced by FillVertexAndIndexBuffers(), load_blue_noise(), UploadImage(), vkpt_draw_submit_stretch_pics(), vkpt_light_buffer_upload_to_staging(), vkpt_pt_create_pipelines(), vkpt_pt_create_toplevel(), vkpt_readback(), vkpt_textures_end_registration(), vkpt_textures_upload_envmap(), vkpt_uniform_buffer_update(), vkpt_uniform_precomputed_buffer_update(), vkpt_vertex_buffer_upload_bsp_mesh_to_staging(), and vkpt_vertex_buffer_upload_models_to_staging().
uint32_t get_memory_type | ( | uint32_t | mem_req_type_bits, |
VkMemoryPropertyFlags | mem_prop | ||
) |
Definition at line 45 of file vk_util.c.
Referenced by allocate_and_bind_memory_to_buffers(), allocate_gpu_memory(), buffer_create(), create_invalid_texture(), create_readback_image(), CreateShadowMap(), UploadImage(), and vkpt_textures_end_registration().
const char* qvk_result_to_string | ( | VkResult | result | ) |
char* sgets | ( | char * | str, |
int | num, | ||
char const ** | input | ||
) |
Definition at line 26 of file vk_util.c.
Referenced by load_cameras(), load_sky_and_lava_clusters(), parseMaterialsTable(), and vkpt_textures_prefetch().