Go to the source code of this file.
Functions | |
char * | sgets (char *str, int num, char const **input) |
uint32_t | get_memory_type (uint32_t mem_req_type_bits, VkMemoryPropertyFlags mem_prop) |
VkResult | buffer_create (BufferResource_t *buf, VkDeviceSize size, VkBufferUsageFlags usage, VkMemoryPropertyFlags mem_properties) |
VkResult | buffer_destroy (BufferResource_t *buf) |
void * | buffer_map (BufferResource_t *buf) |
void | buffer_unmap (BufferResource_t *buf) |
const char * | qvk_format_to_string (VkFormat format) |
VkResult | allocate_gpu_memory (VkMemoryRequirements mem_req, VkDeviceMemory *pMemory) |
void | set_current_gpu (VkCommandBuffer cmd_buf, int gpu_index) |
const char * | qvk_result_to_string (VkResult result) |
VkResult allocate_gpu_memory | ( | VkMemoryRequirements | mem_req, |
VkDeviceMemory * | pMemory | ||
) |
Definition at line 402 of file vk_util.c.
Referenced by allocate_and_bind_memory_to_blas(), initializeEnvTexture(), load_blue_noise(), vkpt_create_images(), vkpt_pt_create_accel_bottom(), vkpt_pt_create_toplevel(), vkpt_shadow_map_initialize(), and vkpt_textures_upload_envmap().
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 | ) |
Definition at line 426 of file vk_util.c.
Referenced by vkpt_asvgf_create_gradient_samples(), vkpt_create_images(), vkpt_interleave(), vkpt_profiler_query(), vkpt_pt_trace_lighting(), vkpt_pt_trace_primary_rays(), and vkpt_pt_trace_reflections().
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().