Go to the source code of this file.
Macros | |
#define | NUM_CMDBUFFERS 2 |
#define | VK_INPUTBIND_DESC(s) |
#define | VK_INPUTATTR_DESC(l, f, o) |
#define | VK_VERTEXINPUT_CINF(b, a) |
#define | VK_VERTINFO(name, bindSize, ...) |
#define | VK_NULL_VERTEXINPUT_CINF |
#define | VK_LOAD_VERTFRAG_SHADERS(shaders, namevert, namefrag) |
#define | NUM_DYNBUFFERS 2 |
#define | NUM_SWAPBUFFER_SLOTS 4 |
#define | BUFFER_RESIZE_FACTOR 2.f |
#define | UNIFORM_ALLOC_SIZE 1024 |
#define | VERTEX_BUFFER_SIZE (1024 * 1024) |
#define | INDEX_BUFFER_SIZE (2 * 1024) |
#define | UNIFORM_BUFFER_SIZE (2048 * 1024) |
#define | STAGING_BUFFER_MAXSIZE (8192 * 1024) |
#define | TRIANGLE_FAN_INDEX_CNT 200 |
#define | ERRSTR(r) case VK_ ##r: return "VK_"#r |
#define BUFFER_RESIZE_FACTOR 2.f |
Definition at line 247 of file vk_common.c.
#define ERRSTR | ( | r | ) | case VK_ ##r: return "VK_"#r |
#define INDEX_BUFFER_SIZE (2 * 1024) |
Definition at line 252 of file vk_common.c.
#define NUM_CMDBUFFERS 2 |
Definition at line 117 of file vk_common.c.
#define NUM_DYNBUFFERS 2 |
Definition at line 226 of file vk_common.c.
#define NUM_SWAPBUFFER_SLOTS 4 |
Definition at line 240 of file vk_common.c.
#define STAGING_BUFFER_MAXSIZE (8192 * 1024) |
Definition at line 255 of file vk_common.c.
#define TRIANGLE_FAN_INDEX_CNT 200 |
Definition at line 257 of file vk_common.c.
#define UNIFORM_ALLOC_SIZE 1024 |
Definition at line 249 of file vk_common.c.
#define UNIFORM_BUFFER_SIZE (2048 * 1024) |
Definition at line 253 of file vk_common.c.
#define VERTEX_BUFFER_SIZE (1024 * 1024) |
Definition at line 251 of file vk_common.c.
#define VK_INPUTATTR_DESC | ( | l, | |
f, | |||
o | |||
) |
Definition at line 180 of file vk_common.c.
#define VK_INPUTBIND_DESC | ( | s | ) |
Definition at line 174 of file vk_common.c.
#define VK_LOAD_VERTFRAG_SHADERS | ( | shaders, | |
namevert, | |||
namefrag | |||
) |
Definition at line 212 of file vk_common.c.
#define VK_NULL_VERTEXINPUT_CINF |
Definition at line 202 of file vk_common.c.
#define VK_VERTEXINPUT_CINF | ( | b, | |
a | |||
) |
Definition at line 187 of file vk_common.c.
#define VK_VERTINFO | ( | name, | |
bindSize, | |||
... | |||
) |
Definition at line 197 of file vk_common.c.
|
static |
Definition at line 876 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 761 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 708 of file vk_common.c.
Referenced by QVk_Init(), and QVk_RecreateSwapchain().
|
static |
Definition at line 940 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 358 of file vk_common.c.
Referenced by QVk_Init(), and QVk_RecreateSwapchain().
|
static |
Definition at line 318 of file vk_common.c.
Referenced by QVk_Init(), and QVk_RecreateSwapchain().
|
static |
Definition at line 1123 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 428 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 794 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 1037 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 1096 of file vk_common.c.
Referenced by QVk_Init().
|
static |
Definition at line 905 of file vk_common.c.
Referenced by CreateDynamicBuffers(), and QVk_GetUniformBuffer().
|
static |
|
static |
Definition at line 751 of file vk_common.c.
Referenced by QVk_RecreateSwapchain(), and QVk_Shutdown().
|
static |
Definition at line 340 of file vk_common.c.
Referenced by CreateFramebuffers(), QVk_RecreateSwapchain(), and QVk_Shutdown().
|
static |
Definition at line 304 of file vk_common.c.
Referenced by CreateImageViews(), QVk_RecreateSwapchain(), and QVk_Shutdown().
|
static |
|
static |
Definition at line 991 of file vk_common.c.
Referenced by QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), and QVk_GetVertexBuffer().
VkResult QVk_BeginFrame | ( | ) |
Definition at line 1824 of file vk_common.c.
Referenced by R_BeginFrame().
void QVk_BeginRenderpass | ( | qvkrenderpasstype_t | rpType | ) |
Definition at line 1946 of file vk_common.c.
Referenced by R_BeginFrame(), and R_EndWorldRenderpass().
void QVk_BindPipeline | ( | qvkpipeline_t * | pipeline | ) |
Definition at line 2284 of file vk_common.c.
Referenced by DrawVkFlowingPoly(), DrawVkPoly(), EmitWaterPolys(), QVk_DrawColorRect(), QVk_DrawTexRect(), R_DrawBeam(), R_DrawNullModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawSpriteModel(), R_DrawTriangleOutlines(), R_EndWorldRenderpass(), R_RenderDlight(), R_SetVulkan2D(), Vk_DrawAliasFrameLerp(), Vk_DrawAliasShadow(), Vk_DrawParticles(), and Vk_RenderLightmappedPoly().
void QVk_DrawColorRect | ( | float * | ubo, |
VkDeviceSize | uboSize, | ||
qvkrenderpasstype_t | rpType | ||
) |
Definition at line 2253 of file vk_common.c.
Referenced by Draw_FadeScreen(), Draw_Fill(), R_PolyBlend(), and R_SetupFrame().
void QVk_DrawTexRect | ( | float * | ubo, |
VkDeviceSize | uboSize, | ||
qvktexture_t * | texture | ||
) |
Definition at line 2268 of file vk_common.c.
Referenced by Draw_Char(), Draw_StretchPic(), Draw_StretchRaw(), and Draw_TileClear().
VkResult QVk_EndFrame | ( | qboolean | force | ) |
Definition at line 1880 of file vk_common.c.
Referenced by R_BeginFrame(), and R_EndFrame().
VkFormat QVk_FindDepthFormat | ( | ) |
Definition at line 267 of file vk_common.c.
Referenced by CreateRenderpasses(), and QVk_CreateDepthBuffer().
const char* QVk_GetError | ( | VkResult | errorCode | ) |
Definition at line 2293 of file vk_common.c.
Referenced by CreateFramebuffers(), CreateRenderpasses(), QVk_BeginFrame(), QVk_CreateDevice(), QVk_EndFrame(), and QVk_Init().
uint8_t* QVk_GetIndexBuffer | ( | VkDeviceSize | size, |
VkDeviceSize * | dstOffset | ||
) |
Definition at line 2058 of file vk_common.c.
Referenced by RebuildTriangleFanIndexBuffer().
uint8_t* QVk_GetStagingBuffer | ( | VkDeviceSize | size, |
int | alignment, | ||
VkCommandBuffer * | cmdBuffer, | ||
VkBuffer * | buffer, | ||
uint32_t * | dstOffset | ||
) |
Definition at line 2153 of file vk_common.c.
Referenced by createTextureImage(), and QVk_UpdateTextureData().
VkBuffer QVk_GetTriangleFanIbo | ( | VkDeviceSize | indexCount | ) |
Definition at line 2198 of file vk_common.c.
Referenced by DrawVkFlowingPoly(), DrawVkPoly(), EmitWaterPolys(), R_DrawNullModel(), R_RenderDlight(), Vk_DrawAliasFrameLerp(), Vk_DrawAliasShadow(), and Vk_RenderLightmappedPoly().
uint8_t* QVk_GetUniformBuffer | ( | VkDeviceSize | size, |
uint32_t * | dstOffset, | ||
VkDescriptorSet * | dstUboDescriptorSet | ||
) |
Definition at line 2100 of file vk_common.c.
Referenced by DrawVkFlowingPoly(), DrawVkPoly(), EmitWaterPolys(), QVk_DrawColorRect(), QVk_DrawTexRect(), R_DrawBeam(), R_DrawNullModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawTriangleOutlines(), R_RenderDlight(), Vk_DrawAliasFrameLerp(), Vk_DrawAliasShadow(), and Vk_RenderLightmappedPoly().
uint8_t* QVk_GetVertexBuffer | ( | VkDeviceSize | size, |
VkBuffer * | dstBuffer, | ||
VkDeviceSize * | dstOffset | ||
) |
Definition at line 2019 of file vk_common.c.
Referenced by DrawVkFlowingPoly(), DrawVkPoly(), EmitWaterPolys(), R_DrawBeam(), R_DrawNullModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawSpriteModel(), R_DrawTriangleOutlines(), R_RenderDlight(), Vk_DrawAliasFrameLerp(), Vk_DrawAliasShadow(), Vk_DrawParticles(), and Vk_RenderLightmappedPoly().
qboolean QVk_Init | ( | ) |
Definition at line 1510 of file vk_common.c.
Referenced by R_Init().
void QVk_RecreateSwapchain | ( | ) |
Definition at line 2004 of file vk_common.c.
void QVk_SubmitStagingBuffers | ( | ) |
Definition at line 2216 of file vk_common.c.
Referenced by QVk_EndFrame(), and QVk_ReleaseTexture().
VkSampler QVk_UpdateTextureSampler | ( | qvktexture_t * | texture, |
qvksampler_t | samplerType | ||
) |
Definition at line 2225 of file vk_common.c.
Referenced by QVk_CreateTexture(), QVk_Init(), Vk_LmapTextureMode(), and Vk_TextureMode().
|
static |
Definition at line 1004 of file vk_common.c.
Referenced by QVk_GetTriangleFanIbo(), and QVk_Init().
|
static |
Definition at line 965 of file vk_common.c.
Referenced by QVk_BeginFrame().
Definition at line 1066 of file vk_common.c.
Referenced by QVk_GetStagingBuffer(), and QVk_SubmitStagingBuffers().
Definition at line 2356 of file vk_common.c.
Referenced by R_BeginFrame().
PFN_vkCmdBeginDebugUtilsLabelEXT qvkCmdBeginDebugUtilsLabelEXT |
Definition at line 170 of file vk_common.c.
Referenced by QVk_Init().
PFN_vkCmdEndDebugUtilsLabelEXT qvkCmdEndDebugUtilsLabelEXT |
Definition at line 171 of file vk_common.c.
Referenced by QVk_Init().
PFN_vkCreateDebugUtilsMessengerEXT qvkCreateDebugUtilsMessengerEXT |
Definition at line 166 of file vk_common.c.
Referenced by QVk_CreateValidationLayers(), and QVk_Init().
PFN_vkDestroyDebugUtilsMessengerEXT qvkDestroyDebugUtilsMessengerEXT |
Definition at line 167 of file vk_common.c.
Referenced by QVk_DestroyValidationLayers(), and QVk_Init().
PFN_vkCmdInsertDebugUtilsLabelEXT qvkInsertDebugUtilsLabelEXT |
Definition at line 172 of file vk_common.c.
Referenced by QVk_Init().
PFN_vkSetDebugUtilsObjectNameEXT qvkSetDebugUtilsObjectNameEXT |
Definition at line 168 of file vk_common.c.
Referenced by QVk_Init().
PFN_vkSetDebugUtilsObjectTagEXT qvkSetDebugUtilsObjectTagEXT |
Definition at line 169 of file vk_common.c.
Referenced by QVk_Init().
cvar_t* vid_ref |
Definition at line 44 of file vid_dll.c.
Referenced by QVk_EndFrame(), R_BeginFrame(), R_Register(), VID_CheckChanges(), VID_Init(), VID_LoadRefresh(), and VID_Restart_f().
int vk_activeBufferIdx = 0 |
Definition at line 129 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_BeginRenderpass(), QVk_EndFrame(), QVk_Init(), QVk_ReadPixels(), and QVk_Shutdown().
VkCommandBuffer vk_activeCmdbuffer = VK_NULL_HANDLE |
Definition at line 127 of file vk_common.c.
Referenced by DrawVkFlowingPoly(), DrawVkPoly(), EmitWaterPolys(), QVk_BeginFrame(), QVk_BindPipeline(), QVk_DrawColorRect(), QVk_DrawTexRect(), QVk_Init(), QVk_Shutdown(), R_DrawAliasModel(), R_DrawBeam(), R_DrawNullModel(), R_DrawParticles(), R_DrawSkyBox(), R_DrawSpriteModel(), R_DrawTriangleOutlines(), R_EndWorldRenderpass(), R_RenderDlight(), R_RenderView(), R_SetupVulkan(), R_SetVulkan2D(), Vk_DrawAliasFrameLerp(), Vk_DrawAliasShadow(), Vk_DrawParticles(), and Vk_RenderLightmappedPoly().
|
static |
Definition at line 232 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_EndFrame(), QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), QVk_GetVertexBuffer(), and RebuildTriangleFanIndexBuffer().
int vk_activeStagingBuffer = 0 |
Definition at line 133 of file vk_common.c.
Referenced by QVk_GetStagingBuffer(), and SubmitStagingBuffer().
|
static |
Definition at line 233 of file vk_common.c.
Referenced by QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), QVk_GetVertexBuffer(), and ReleaseSwapBuffers().
qvktexture_t vk_colorbuffer = QVVKTEXTURE_INIT |
Definition at line 104 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), DestroyDrawBuffers(), QVk_Init(), and R_EndWorldRenderpass().
qvktexture_t vk_colorbufferWarp = QVVKTEXTURE_INIT |
Definition at line 106 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), DestroyDrawBuffers(), QVk_Init(), and R_SetVulkan2D().
qvkbuffer_t vk_colorRectVbo |
Definition at line 222 of file vk_common.c.
Referenced by CreateStaticBuffers(), QVk_DrawColorRect(), and QVk_Shutdown().
VkCommandBuffer* vk_commandbuffers = NULL |
Definition at line 119 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_BeginRenderpass(), QVk_EndFrame(), QVk_Init(), and QVk_Shutdown().
VkCommandPool vk_commandPool = VK_NULL_HANDLE |
Definition at line 95 of file vk_common.c.
Referenced by QVk_Init(), QVk_ReadPixels(), and QVk_Shutdown().
qvktexture_t vk_depthbuffer = QVVKTEXTURE_INIT |
Definition at line 108 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), and DestroyDrawBuffers().
VkDescriptorPool vk_descriptorPool = VK_NULL_HANDLE |
Definition at line 97 of file vk_common.c.
Referenced by CreateDescriptorPool(), CreateUboDescriptorSet(), QVk_CreateTexture(), QVk_Init(), QVk_ReleaseTexture(), QVk_Shutdown(), and ReleaseSwapBuffers().
qvkdevice_t vk_device |
Definition at line 51 of file vk_common.c.
Referenced by copyBuffer(), CreateDescriptorPool(), CreateDescriptorSetLayouts(), CreateFramebuffers(), createLogicalDevice(), CreatePipelines(), CreateRenderpasses(), CreateSamplers(), CreateStagingBuffers(), createTextureImage(), CreateUboDescriptorSet(), DestroyDrawBuffer(), DestroyFramebuffers(), DestroyImageViews(), DestroySamplers(), getBestPhysicalDevice(), QVk_BeginFrame(), QVk_CreateBuffer(), QVk_CreateCommandBuffer(), QVk_CreateCommandPool(), QVk_CreateDevice(), QVk_CreateImage(), QVk_CreateImageView(), QVk_CreatePipeline(), QVk_CreateShader(), QVk_CreateSwapchain(), QVk_CreateTexture(), QVk_DestroyPipeline(), QVk_EndFrame(), QVk_FindDepthFormat(), QVk_GetStagingBuffer(), QVk_Init(), QVk_ReadPixels(), QVk_RecreateSwapchain(), QVk_ReleaseTexture(), QVk_Shutdown(), QVk_SubmitCommand(), QVk_UpdateTextureData(), QVk_UpdateTextureSampler(), R_RenderView(), R_Shutdown(), ReleaseSwapBuffers(), selectPhysicalDevice(), SubmitStagingBuffer(), transitionImageLayout(), Vk_LmapTextureMode(), Vk_Strings_f(), and Vk_TextureMode().
qvkpipeline_t vk_drawBeamPipeline = QVKPIPELINE_INIT |
Definition at line 153 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawBeam().
qvkpipeline_t vk_drawColorQuadPipeline[2] = { QVKPIPELINE_INIT, QVKPIPELINE_INIT } |
Definition at line 139 of file vk_common.c.
Referenced by CreatePipelines(), QVk_DrawColorRect(), and QVk_Shutdown().
qvkpipeline_t vk_drawDLightPipeline = QVKPIPELINE_INIT |
Definition at line 155 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_RenderDlight().
qvkpipeline_t vk_drawLefthandModelPipelineFan = QVKPIPELINE_INIT |
Definition at line 145 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawLefthandModelPipelineStrip = QVKPIPELINE_INIT |
Definition at line 144 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawModelPipelineFan[2] = { QVKPIPELINE_INIT, QVKPIPELINE_INIT } |
Definition at line 141 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawModelPipelineStrip[2] = { QVKPIPELINE_INIT, QVKPIPELINE_INIT } |
Definition at line 140 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawNoDepthModelPipelineFan = QVKPIPELINE_INIT |
Definition at line 143 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawNoDepthModelPipelineStrip = QVKPIPELINE_INIT |
Definition at line 142 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasFrameLerp().
qvkpipeline_t vk_drawNullModelPipeline = QVKPIPELINE_INIT |
Definition at line 146 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawNullModel().
qvkpipeline_t vk_drawParticlesPipeline = QVKPIPELINE_INIT |
Definition at line 147 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawParticles().
qvkpipeline_t vk_drawPointParticlesPipeline = QVKPIPELINE_INIT |
Definition at line 148 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawParticles().
qvkpipeline_t vk_drawPolyLmapPipeline = QVKPIPELINE_INIT |
Definition at line 151 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_RenderLightmappedPoly().
qvkpipeline_t vk_drawPolyPipeline = QVKPIPELINE_INIT |
Definition at line 150 of file vk_common.c.
Referenced by CreatePipelines(), DrawVkFlowingPoly(), DrawVkPoly(), and QVk_Shutdown().
qvkpipeline_t vk_drawPolyWarpPipeline = QVKPIPELINE_INIT |
Definition at line 152 of file vk_common.c.
Referenced by CreatePipelines(), EmitWaterPolys(), and QVk_Shutdown().
qvkpipeline_t vk_drawSkyboxPipeline = QVKPIPELINE_INIT |
Definition at line 154 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawSkyBox().
qvkpipeline_t vk_drawSpritePipeline = QVKPIPELINE_INIT |
Definition at line 149 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawSpriteModel().
qvkpipeline_t vk_drawTexQuadPipeline = QVKPIPELINE_INIT |
Definition at line 138 of file vk_common.c.
Referenced by CreatePipelines(), QVk_DrawTexRect(), QVk_Shutdown(), R_DrawAliasModel(), and R_SetupVulkan().
|
static |
Definition at line 228 of file vk_common.c.
Referenced by CreateDynamicBuffers(), QVk_BeginFrame(), QVk_EndFrame(), QVk_GetIndexBuffer(), QVk_Shutdown(), and RebuildTriangleFanIndexBuffer().
|
static |
Definition at line 229 of file vk_common.c.
Referenced by CreateDynamicBuffers(), QVk_BeginFrame(), QVk_EndFrame(), QVk_GetUniformBuffer(), and QVk_Shutdown().
|
static |
Definition at line 227 of file vk_common.c.
Referenced by CreateDynamicBuffers(), QVk_BeginFrame(), QVk_EndFrame(), QVk_GetVertexBuffer(), and QVk_Shutdown().
VkFence vk_fences[NUM_CMDBUFFERS] |
Definition at line 121 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_EndFrame(), QVk_Init(), and QVk_Shutdown().
VkFramebuffer* vk_framebuffers[RP_COUNT] |
Definition at line 102 of file vk_common.c.
Referenced by CreateFramebuffers(), DestroyFramebuffers(), and QVk_BeginRenderpass().
Definition at line 135 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_EndFrame(), and R_EndWorldRenderpass().
VkSemaphore vk_imageAvailableSemaphores[NUM_CMDBUFFERS] |
Definition at line 123 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_EndFrame(), QVk_Init(), and QVk_Shutdown().
uint32_t vk_imageIndex = 0 |
Definition at line 131 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_BeginRenderpass(), QVk_EndFrame(), and QVk_Shutdown().
VkImageView* vk_imageviews = NULL |
Definition at line 100 of file vk_common.c.
Referenced by CreateFramebuffers(), CreateImageViews(), and DestroyImageViews().
VkInstance vk_instance = VK_NULL_HANDLE |
Definition at line 46 of file vk_common.c.
Referenced by QVk_CreateValidationLayers(), QVk_DestroyValidationLayers(), QVk_Init(), QVk_Shutdown(), selectPhysicalDevice(), Vk_Strings_f(), and Vkimp_CreateSurface().
FILE* vk_logfp = NULL |
Definition at line 43 of file vk_common.c.
Referenced by Vkimp_EnableLogging().
VmaAllocator vk_malloc = VK_NULL_HANDLE |
Definition at line 48 of file vk_common.c.
Referenced by CreateDynamicBuffers(), createStagedBuffer(), CreateStagingBuffers(), DestroyDrawBuffer(), QVk_BeginFrame(), QVk_CreateBuffer(), QVk_CreateImage(), QVk_EndFrame(), QVk_FreeBuffer(), QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), QVk_GetVertexBuffer(), QVk_Init(), QVk_ReleaseTexture(), QVk_Shutdown(), and RebuildTriangleFanIndexBuffer().
cvar_t* vk_msaa |
Definition at line 113 of file vk_rmain.c.
Referenced by GetSampleCount(), QVk_Init(), R_BeginFrame(), R_Register(), and R_SetMode().
qvktexture_t vk_msaaColorbuffer = QVVKTEXTURE_INIT |
Definition at line 112 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), and DestroyDrawBuffers().
qvkpipeline_t vk_postprocessPipeline = QVKPIPELINE_INIT |
Definition at line 160 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_SetVulkan2D().
qvkbuffer_t vk_rectIbo |
Definition at line 223 of file vk_common.c.
Referenced by CreateStaticBuffers(), QVk_DrawColorRect(), QVk_DrawTexRect(), and QVk_Shutdown().
VkSemaphore vk_renderFinishedSemaphores[NUM_CMDBUFFERS] |
Definition at line 125 of file vk_common.c.
Referenced by QVk_EndFrame(), QVk_Init(), and QVk_Shutdown().
qvkrenderpass_t vk_renderpasses[RP_COUNT] |
Definition at line 73 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), CreatePipelines(), CreateRenderpasses(), QVk_BeginRenderpass(), QVk_Init(), and QVk_Shutdown().
VkDescriptorSetLayout vk_samplerDescSetLayout |
Definition at line 261 of file vk_common.c.
Referenced by CreateDescriptorSetLayouts(), CreatePipelines(), QVk_CreateTexture(), QVk_Init(), and QVk_Shutdown().
VkDescriptorSetLayout vk_samplerLightmapDescSetLayout |
Definition at line 262 of file vk_common.c.
Referenced by CreateDescriptorSetLayouts(), CreatePipelines(), and QVk_Shutdown().
|
static |
Definition at line 163 of file vk_common.c.
Referenced by CreateSamplers(), DestroySamplers(), and QVk_UpdateTextureSampler().
VkRect2D vk_scissor = { { 0, 0 }, { 0, 0 } } |
Definition at line 115 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_Init(), QVk_RecreateSwapchain(), and R_SetVulkan2D().
qvkpipeline_t vk_shadowsPipelineFan = QVKPIPELINE_INIT |
Definition at line 158 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasShadow().
qvkpipeline_t vk_shadowsPipelineStrip = QVKPIPELINE_INIT |
Definition at line 157 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and Vk_DrawAliasShadow().
qvkpipeline_t vk_showTrisPipeline = QVKPIPELINE_INIT |
Definition at line 156 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_DrawTriangleOutlines().
|
static |
Definition at line 231 of file vk_common.c.
Referenced by CreateStagingBuffers(), QVk_GetStagingBuffer(), QVk_Shutdown(), QVk_SubmitStagingBuffers(), and SubmitStagingBuffer().
|
static |
Definition at line 98 of file vk_common.c.
Referenced by CreateStagingBuffers(), and QVk_Shutdown().
VkSurfaceKHR vk_surface = VK_NULL_HANDLE |
Definition at line 47 of file vk_common.c.
Referenced by getBestPhysicalDevice(), QVk_CreateSwapchain(), QVk_Shutdown(), and Vkimp_CreateSurface().
|
static |
Definition at line 243 of file vk_common.c.
Referenced by QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), QVk_GetVertexBuffer(), and ReleaseSwapBuffers().
|
static |
Definition at line 241 of file vk_common.c.
Referenced by QVk_GetIndexBuffer(), QVk_GetUniformBuffer(), QVk_GetVertexBuffer(), and ReleaseSwapBuffers().
qvkswapchain_t vk_swapchain |
Definition at line 63 of file vk_common.c.
Referenced by CreateFramebuffers(), CreateImageViews(), CreateRenderpasses(), DestroyFramebuffers(), DestroyImageViews(), QVk_BeginFrame(), QVk_BeginRenderpass(), QVk_CreateColorBuffer(), QVk_CreateDepthBuffer(), QVk_CreatePipeline(), QVk_CreateSwapchain(), QVk_EndFrame(), QVk_Init(), QVk_ReadPixels(), QVk_RecreateSwapchain(), QVk_Shutdown(), Vk_ScreenShot_f(), and Vk_Strings_f().
|
static |
Definition at line 244 of file vk_common.c.
Referenced by QVk_GetUniformBuffer(), and ReleaseSwapBuffers().
|
static |
Definition at line 242 of file vk_common.c.
Referenced by QVk_GetUniformBuffer(), and ReleaseSwapBuffers().
qvkbuffer_t vk_texRectVbo |
Definition at line 221 of file vk_common.c.
Referenced by CreateStaticBuffers(), QVk_DrawTexRect(), and QVk_Shutdown().
VkCommandPool vk_transferCommandPool = VK_NULL_HANDLE |
Definition at line 96 of file vk_common.c.
Referenced by copyBuffer(), QVk_Init(), and QVk_Shutdown().
|
static |
Definition at line 236 of file vk_common.c.
Referenced by QVk_GetTriangleFanIbo(), and RebuildTriangleFanIndexBuffer().
|
static |
Definition at line 237 of file vk_common.c.
Referenced by QVk_BeginFrame(), and RebuildTriangleFanIndexBuffer().
|
static |
Definition at line 230 of file vk_common.c.
Referenced by CreateDynamicBuffers(), and QVk_GetUniformBuffer().
VkDescriptorSetLayout vk_uboDescSetLayout |
Definition at line 260 of file vk_common.c.
Referenced by CreateDescriptorSetLayouts(), CreatePipelines(), CreateUboDescriptorSet(), and QVk_Shutdown().
qvktexture_t vk_ui_depthbuffer = QVVKTEXTURE_INIT |
Definition at line 110 of file vk_common.c.
Referenced by CreateDrawBuffers(), CreateFramebuffers(), and DestroyDrawBuffers().
VkViewport vk_viewport = { .0f, .0f, .0f, .0f, .0f, .0f } |
Definition at line 114 of file vk_common.c.
Referenced by QVk_BeginFrame(), QVk_Init(), QVk_RecreateSwapchain(), and R_SetVulkan2D().
qvkpipeline_t vk_worldWarpPipeline = QVKPIPELINE_INIT |
Definition at line 159 of file vk_common.c.
Referenced by CreatePipelines(), QVk_Shutdown(), and R_EndWorldRenderpass().