introduces ios support? still needs metal

This commit is contained in:
2025-06-29 01:21:55 +03:00
parent af4f0c3cad
commit cdeaac7c0c
79 changed files with 2176 additions and 1349 deletions

View File

@@ -14,8 +14,7 @@
#include "vk_external_functions.cpp"
#undef VK_DEVICE_FUNCTION
class CVertexBuffer: public IVertexBuffer
class CVkBuffer: public IBuffer
{
public:
void *Map() override;
@@ -24,17 +23,14 @@ public:
void *m_pAllocated = NULL;
};
class CIndexBuffer: public IIndexBuffer
class CVkImage: public IImage
{
public:
void *Map() override;
void Unmap() override;
vk_buffer_t m_buffer;
void *m_pAllocated;
vk_image2d_t m_image;
};
class CTexture: public ITexture
class CVkTexture: public ITexture
{
public:
vk_image2d_t image;
@@ -65,8 +61,6 @@ extern uint32_t g_nWindowWidth;
extern uint32_t g_nWindowHeight;
extern VkSampler g_invalidTextureSampler;
extern IMaterial *g_pDefaultMaterial;
extern IMaterial *g_pCurrentMaterial;
extern CUtlVector<ITexture*> g_textures;
@@ -77,7 +71,7 @@ struct CameraProjection {
extern vk_buffer_t g_cameraProperties;
extern CameraProjection *g_cameraDataMap;
extern vk_image2d_t g_meshDepth;
extern vk_image2d_t g_meshDepthMSAA;
extern vk_image2d_t g_meshColor;
extern vk_image2d_t g_meshColorMSAA;
extern IImage *g_meshDepth;
extern IImage *g_meshDepthMSAA;
extern IImage *g_meshColor;
extern IImage *g_meshColorMSAA;