summaryrefslogtreecommitdiff
path: root/video.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-28 18:27:30 +1100
committerquou <quou@disroot.org>2024-12-28 18:27:30 +1100
commite31535abfff4c3335dd465e3745a69d3102253a6 (patch)
tree48ff456b34ea295e3ea45c54cb0c97820f0290ec /video.cpp
parent86810460eed75c19beb9f524e75c193edfa9ddfd (diff)
converting, loading and rendering GLTF models
Diffstat (limited to 'video.cpp')
-rw-r--r--video.cpp15
1 files changed, 2 insertions, 13 deletions
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
) {