From e31535abfff4c3335dd465e3745a69d3102253a6 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 28 Dec 2024 18:27:30 +1100 Subject: converting, loading and rendering GLTF models --- video.cpp | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'video.cpp') diff --git a/video.cpp b/video.cpp index 7bb420d..10680d8 100644 --- a/video.cpp +++ b/video.cpp @@ -16,6 +16,7 @@ extern "C" { #include "pack.h" #include "plat.h" #include "sc/sh_enums.h" +#include "sc/sh_helpers.h" #include "str.h" } @@ -442,7 +443,6 @@ struct Shader_Vk : public Shader, public Late_Terminated { return (VkShaderStageFlagBits)0; } } - static int svariable_type_size(SVariable_Type type); }; struct Renderpass_Vk; @@ -888,10 +888,10 @@ static VkBool32 debug_callback( break; case VK_DEBUG_UTILS_MESSAGE_SEVERITY_ERROR_BIT_EXT: print_err("%s\n", data->pMessage); + pbreak((int)type); break; default: break; } - pbreak((int)type); return 0; } @@ -2580,17 +2580,6 @@ void Descriptor_Set_Vk::destroy(Device_Vk* dev) { vkDestroyDescriptorPool(dev->dev, dp, &dev->ac); } -int Shader_Vk::svariable_type_size(SVariable_Type type) { - switch (type) { - case svariable_type_float: return 4; - case svariable_type_vec2: return 8; - case svariable_type_vec3: return 12; - case svariable_type_vec4: return 16; - default: assert(0); /* todo */ - } - return 0; -} - VkFormat Vertex_Format_Vk::format_from_svar_type( SVariable_Type type ) { -- cgit v1.2.3-54-g00ecf