Quake II RTX doxygen  1.0 dev
QVK_s Struct Reference

#include <vkpt.h>

Public Attributes

VkInstance instance
 
VkPhysicalDevice physical_device
 
VkPhysicalDeviceMemoryProperties mem_properties
 
int device_count
 
VkDevice device
 
VkQueue queue_graphics
 
VkQueue queue_compute
 
VkQueue queue_transfer
 
int32_t queue_idx_graphics
 
int32_t queue_idx_compute
 
int32_t queue_idx_transfer
 
VkSurfaceKHR surface
 
VkSwapchainKHR swap_chain
 
VkSurfaceFormatKHR surf_format
 
VkPresentModeKHR present_mode
 
VkExtent2D extent_screen_images
 
VkExtent2D extent_render
 
VkExtent2D extent_render_prev
 
VkExtent2D extent_unscaled
 
uint32_t gpu_slice_width
 
uint32_t gpu_slice_width_prev
 
uint32_t num_swap_chain_images
 
VkImage swap_chain_images [MAX_SWAPCHAIN_IMAGES]
 
VkImageView swap_chain_image_views [MAX_SWAPCHAIN_IMAGES]
 
cmd_buf_group_t cmd_buffers_graphics
 
cmd_buf_group_t cmd_buffers_compute
 
cmd_buf_group_t cmd_buffers_transfer
 
semaphore_group_t semaphores [MAX_FRAMES_IN_FLIGHT][VKPT_MAX_GPUS]
 
uint32_t num_extensions
 
VkExtensionProperties * extensions
 
uint32_t num_layers
 
VkLayerProperties * layers
 
VkDebugUtilsMessengerEXT dbg_messenger
 
VkFence fences_frame_sync [MAX_FRAMES_IN_FLIGHT]
 
VkFence fence_vertex_sync
 
int win_width
 
int win_height
 
uint64_t frame_counter
 
SDL_Window * window
 
uint32_t num_sdl2_extensions
 
const char ** sdl2_extensions
 
uint32_t current_swap_chain_image_index
 
uint32_t current_frame_index
 
uint32_t wait_for_idle_frames
 
VkShaderModule shader_modules [NUM_QVK_SHADER_MODULES]
 
VkDescriptorSetLayout desc_set_layout_ubo
 
VkDescriptorSet desc_set_ubo
 
VkDescriptorSetLayout desc_set_layout_textures
 
VkDescriptorSet desc_set_textures_even
 
VkDescriptorSet desc_set_textures_odd
 
VkImage images [NUM_VKPT_IMAGES]
 
VkImageView images_views [NUM_VKPT_IMAGES]
 
VkDescriptorSetLayout desc_set_layout_vertex_buffer
 
VkDescriptorSet desc_set_vertex_buffer
 
BufferResource_t buf_vertex
 
BufferResource_t buf_vertex_staging
 
BufferResource_t buf_light
 
BufferResource_t buf_light_staging [MAX_FRAMES_IN_FLIGHT]
 
BufferResource_t buf_light_stats [NUM_LIGHT_STATS_BUFFERS]
 
BufferResource_t buf_readback
 
BufferResource_t buf_readback_staging [MAX_FRAMES_IN_FLIGHT]
 
BufferResource_t buf_tonemap
 
BufferResource_t buf_sun_color
 
VkSampler tex_sampler
 
VkSampler tex_sampler_nearest
 
VkSampler tex_sampler_linear_clamp
 
float sintab [256]
 
VkImage screenshot_image
 
VkDeviceMemory screenshot_image_memory
 
VkDeviceSize screenshot_image_memory_size
 

Detailed Description

Definition at line 161 of file vkpt.h.

Member Data Documentation

◆ buf_light

◆ buf_light_staging

◆ buf_light_stats

◆ buf_readback

◆ buf_readback_staging

◆ buf_sun_color

◆ buf_tonemap

◆ buf_vertex

◆ buf_vertex_staging

◆ cmd_buffers_compute

cmd_buf_group_t QVK_s::cmd_buffers_compute

◆ cmd_buffers_graphics

◆ cmd_buffers_transfer

◆ current_frame_index

◆ current_swap_chain_image_index

uint32_t QVK_s::current_swap_chain_image_index

◆ dbg_messenger

VkDebugUtilsMessengerEXT QVK_s::dbg_messenger

Definition at line 204 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ desc_set_layout_textures

◆ desc_set_layout_ubo

◆ desc_set_layout_vertex_buffer

◆ desc_set_textures_even

◆ desc_set_textures_odd

◆ desc_set_ubo

◆ desc_set_vertex_buffer

◆ device

VkDevice QVK_s::device

Definition at line 172 of file vkpt.h.

Referenced by allocate_and_bind_memory_to_blas(), allocate_and_bind_memory_to_buffers(), allocate_gpu_memory(), append_blas(), buffer_create(), buffer_destroy(), buffer_map(), buffer_unmap(), calculate_scratch_buffer_size(), create_blas(), create_buffer_views(), create_buffers(), create_command_pool_and_fences(), create_descriptor_set(), create_image_views(), create_invalid_texture(), create_pipeline_layout(), create_pipelines(), create_readback_image(), create_render_pass(), create_shader_module_from_file(), create_swapchain(), CreateShadowMap(), destroy_invalid_texture(), destroy_readback_image(), destroy_swapchain(), destroy_tex_images(), destroy_transparency(), destroy_vulkan(), destroyEnvTexture(), get_scratch_buffer_size(), IMG_ReadPixels_RTX(), IMG_ReloadAll(), init_vulkan(), initializeEnvTexture(), load_blue_noise(), R_BeginFrame_RTX(), R_BeginRegistration_RTX(), R_EndFrame_RTX(), R_Shutdown_RTX(), recreate_swapchain(), ReleaseInfo(), ReleaseShadowmap(), textures_destroy_unused_set(), update_descriptor_set(), UploadImage(), vkpt_asvgf_create_pipelines(), vkpt_asvgf_destroy(), vkpt_asvgf_destroy_pipelines(), vkpt_asvgf_initialize(), vkpt_begin_command_buffer(), vkpt_bloom_create_pipelines(), vkpt_bloom_destroy(), vkpt_bloom_destroy_pipelines(), vkpt_bloom_initialize(), vkpt_create_images(), vkpt_destroy_all(), vkpt_destroy_god_rays(), vkpt_destroy_images(), vkpt_draw_create_pipelines(), vkpt_draw_destroy(), vkpt_draw_destroy_pipelines(), vkpt_draw_initialize(), vkpt_free_command_buffers(), vkpt_god_rays_destroy_pipelines(), vkpt_initialize_all(), vkpt_light_stats_create(), vkpt_physical_sky_create_pipelines(), vkpt_physical_sky_destroy(), vkpt_physical_sky_destroy_pipelines(), vkpt_physical_sky_initialize(), vkpt_profiler_destroy(), vkpt_profiler_initialize(), vkpt_profiler_next_frame(), vkpt_pt_create_accel_bottom(), vkpt_pt_create_pipelines(), vkpt_pt_create_toplevel(), vkpt_pt_destroy(), vkpt_pt_destroy_dynamic(), vkpt_pt_destroy_explosions(), vkpt_pt_destroy_pipelines(), vkpt_pt_destroy_static(), vkpt_pt_destroy_toplevel(), vkpt_pt_destroy_transparent_models(), vkpt_pt_destroy_viewer_models(), vkpt_pt_destroy_viewer_weapon(), vkpt_pt_init(), vkpt_pt_update_descripter_set_bindings(), vkpt_shadow_map_create_pipelines(), vkpt_shadow_map_destroy(), vkpt_shadow_map_destroy_pipelines(), vkpt_shadow_map_initialize(), vkpt_textures_destroy(), vkpt_textures_end_registration(), vkpt_textures_initialize(), vkpt_textures_update_descriptor_set(), vkpt_textures_upload_envmap(), vkpt_tone_mapping_create_pipelines(), vkpt_tone_mapping_destroy(), vkpt_tone_mapping_destroy_pipelines(), vkpt_tone_mapping_initialize(), vkpt_uniform_buffer_create(), vkpt_uniform_buffer_destroy(), vkpt_uniform_precomputed_buffer_create(), vkpt_uniform_precomputed_buffer_destroy(), vkpt_vertex_buffer_create(), vkpt_vertex_buffer_create_pipelines(), vkpt_vertex_buffer_destroy(), vkpt_vertex_buffer_destroy_pipelines(), and vkpt_vertex_buffer_upload_staging().

◆ device_count

◆ extensions

VkExtensionProperties* QVK_s::extensions

Definition at line 199 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ extent_render

◆ extent_render_prev

VkExtent2D QVK_s::extent_render_prev

Definition at line 185 of file vkpt.h.

Referenced by prepare_ubo(), and vkpt_asvgf_create_gradient_samples().

◆ extent_screen_images

VkExtent2D QVK_s::extent_screen_images

◆ extent_unscaled

◆ fence_vertex_sync

VkFence QVK_s::fence_vertex_sync

◆ fences_frame_sync

VkFence QVK_s::fences_frame_sync[MAX_FRAMES_IN_FLIGHT]

◆ frame_counter

◆ gpu_slice_width

uint32_t QVK_s::gpu_slice_width

◆ gpu_slice_width_prev

uint32_t QVK_s::gpu_slice_width_prev

Definition at line 188 of file vkpt.h.

Referenced by prepare_ubo(), and vkpt_asvgf_create_gradient_samples().

◆ images

◆ images_views

VkImageView QVK_s::images_views[NUM_VKPT_IMAGES]

Definition at line 232 of file vkpt.h.

Referenced by vkpt_create_images(), and vkpt_destroy_images().

◆ instance

VkInstance QVK_s::instance

Definition at line 162 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ layers

VkLayerProperties* QVK_s::layers

Definition at line 202 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ mem_properties

VkPhysicalDeviceMemoryProperties QVK_s::mem_properties

Definition at line 164 of file vkpt.h.

Referenced by get_memory_type(), and init_vulkan().

◆ num_extensions

uint32_t QVK_s::num_extensions

Definition at line 198 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ num_layers

uint32_t QVK_s::num_layers

Definition at line 201 of file vkpt.h.

Referenced by destroy_vulkan(), and init_vulkan().

◆ num_sdl2_extensions

uint32_t QVK_s::num_sdl2_extensions

Definition at line 215 of file vkpt.h.

Referenced by init_vulkan().

◆ num_swap_chain_images

uint32_t QVK_s::num_swap_chain_images

◆ physical_device

VkPhysicalDevice QVK_s::physical_device

◆ present_mode

VkPresentModeKHR QVK_s::present_mode

Definition at line 182 of file vkpt.h.

Referenced by create_swapchain().

◆ queue_compute

VkQueue QVK_s::queue_compute

Definition at line 174 of file vkpt.h.

Referenced by init_vulkan().

◆ queue_graphics

◆ queue_idx_compute

int32_t QVK_s::queue_idx_compute

Definition at line 177 of file vkpt.h.

Referenced by create_command_pool_and_fences(), and init_vulkan().

◆ queue_idx_graphics

◆ queue_idx_transfer

int32_t QVK_s::queue_idx_transfer

Definition at line 178 of file vkpt.h.

Referenced by create_command_pool_and_fences(), and init_vulkan().

◆ queue_transfer

VkQueue QVK_s::queue_transfer

◆ screenshot_image

VkImage QVK_s::screenshot_image

Definition at line 261 of file vkpt.h.

Referenced by IMG_ReadPixels_RTX(), vkpt_create_images(), and vkpt_destroy_images().

◆ screenshot_image_memory

VkDeviceMemory QVK_s::screenshot_image_memory

Definition at line 262 of file vkpt.h.

Referenced by IMG_ReadPixels_RTX(), vkpt_create_images(), and vkpt_destroy_images().

◆ screenshot_image_memory_size

VkDeviceSize QVK_s::screenshot_image_memory_size

Definition at line 263 of file vkpt.h.

Referenced by IMG_ReadPixels_RTX(), vkpt_create_images(), and vkpt_destroy_images().

◆ sdl2_extensions

const char** QVK_s::sdl2_extensions

Definition at line 216 of file vkpt.h.

Referenced by init_vulkan().

◆ semaphores

◆ shader_modules

VkShaderModule QVK_s::shader_modules[NUM_QVK_SHADER_MODULES]

Definition at line 223 of file vkpt.h.

Referenced by create_pipelines().

◆ sintab

float QVK_s::sintab[256]

Definition at line 259 of file vkpt.h.

Referenced by R_Init_RTX().

◆ surf_format

VkSurfaceFormatKHR QVK_s::surf_format

◆ surface

VkSurfaceKHR QVK_s::surface

Definition at line 179 of file vkpt.h.

Referenced by create_swapchain(), destroy_vulkan(), and init_vulkan().

◆ swap_chain

VkSwapchainKHR QVK_s::swap_chain

Definition at line 180 of file vkpt.h.

Referenced by create_swapchain(), destroy_swapchain(), R_BeginFrame_RTX(), and R_EndFrame_RTX().

◆ swap_chain_image_views

VkImageView QVK_s::swap_chain_image_views[MAX_SWAPCHAIN_IMAGES]

Definition at line 191 of file vkpt.h.

Referenced by create_swapchain(), destroy_swapchain(), and vkpt_draw_create_pipelines().

◆ swap_chain_images

VkImage QVK_s::swap_chain_images[MAX_SWAPCHAIN_IMAGES]

Definition at line 190 of file vkpt.h.

Referenced by create_swapchain(), IMG_ReadPixels_RTX(), and vkpt_final_blit_simple().

◆ tex_sampler

◆ tex_sampler_linear_clamp

VkSampler QVK_s::tex_sampler_linear_clamp

◆ tex_sampler_nearest

VkSampler QVK_s::tex_sampler_nearest

◆ wait_for_idle_frames

uint32_t QVK_s::wait_for_idle_frames

Definition at line 221 of file vkpt.h.

Referenced by R_BeginFrame_RTX(), R_ModeChanged_RTX(), and recreate_swapchain().

◆ win_height

int QVK_s::win_height

Definition at line 211 of file vkpt.h.

Referenced by create_swapchain(), R_Init_RTX(), and recreate_swapchain().

◆ win_width

int QVK_s::win_width

Definition at line 210 of file vkpt.h.

Referenced by create_swapchain(), R_Init_RTX(), and recreate_swapchain().

◆ window

SDL_Window* QVK_s::window

Definition at line 214 of file vkpt.h.

Referenced by init_vulkan(), R_Init_RTX(), and recreate_swapchain().