finished it

This commit is contained in:
2025-12-16 18:41:48 +02:00
parent ccaf7f7b65
commit 5a71b3023a
6 changed files with 31 additions and 7 deletions

View File

@@ -1,3 +1,4 @@
#include "materialsystem/imaterialsystem.h"
#include "vulkan_state.h"
IRenderingObject *VulkanGetObject( VkFrameObject_t stObject, int iIndex )
@@ -60,3 +61,15 @@ VkFormat VulkanGetVertexFormat( EVertexFormat eFormat )
return VK_FORMAT_UNDEFINED;
}
}
VkPrimitiveTopology VulkanGetTopology( ETopologyMode eMode )
{
switch ( eMode )
{
case TOPOLOGY_MODE_POINT_LIST: return VK_PRIMITIVE_TOPOLOGY_POINT_LIST;
case TOPOLOGY_MODE_LINE_LIST: return VK_PRIMITIVE_TOPOLOGY_LINE_LIST;
case TOPOLOGY_MODE_LINE_STRIP: return VK_PRIMITIVE_TOPOLOGY_LINE_STRIP;
case TOPOLOGY_MODE_TRIANGLE_LIST: return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST;
case TOPOLOGY_MODE_TRIANGLE_STRIP: return VK_PRIMITIVE_TOPOLOGY_TRIANGLE_STRIP;
}
}