ini parser completed

This commit is contained in:
2025-08-21 19:05:41 +03:00
parent eff681ca33
commit c4345bd1c2
7 changed files with 73 additions and 38 deletions

View File

@@ -1,6 +1,7 @@
#include "SDL3/SDL_vulkan.h"
#include "materialsystem/materialsystem.h"
#include "tier0/platform.h"
#include "tier1/utlstring.h"
#include "tier1/utlvector.h"
#define VK_NO_PROTOTYPES
#include "vulkan/vulkan_core.h"
@@ -63,6 +64,7 @@ IIndexBuffer *CVkRenderContext::CreateIndexBuffer( uint32_t nSize )
//-----------------------------------------------------------------------------
IBuffer *CreateBuffer( uint32_t nSize, VkBufferUsageFlags2 eUsage )
{
}
//-----------------------------------------------------------------------------
@@ -208,8 +210,16 @@ void CVkRenderContext::Frame( float fDeltaTime )
void CVkRenderContext::CreateSwapchain()
{
CUtlVector<VkSurfaceFormatKHR> surfaceFormats;
gamewindow->CreateVulkanSurface(g_vkInstance);
VkSwapchainCreateInfoKHR stSwapchainCreateInfo = {};
stSwapchainCreateInfo.sType = VK_STRUCTURE_TYPE_SWAPCHAIN_CREATE_INFO_KHR;
stSwapchainCreateInfo.surface = (VkSurfaceKHR)gamewindow->GetVulkanSurface();
vkCreateSwapchainKHR(g_vkDevice, &stSwapchainCreateInfo, NULL, &g_vkSwapchain);
}
void CVkRenderContext::DestroySwapchain()