linux build pass

This commit is contained in:
2025-05-27 00:21:53 +09:00
parent 9a20f0b3db
commit ab27eb80db
8 changed files with 220 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ void Loader::loadModel(inModel model) {
uv);
}
for (Vertex& const it : model.vertices) {
for (const Vertex& it : model.vertices) {
model.original_offset.x += it.position.x / model.vertices.size();
model.original_offset.y += it.position.y / model.vertices.size();
model.original_offset.z += it.position.z / model.vertices.size();

View File

@@ -1,2 +1,9 @@
#ifndef NDEBUG
#undef __OPTIMIZE__
#endif
#define STB_IMAGE_IMPLEMENTATION
#include "stb/stb_image.h"
#ifndef NDEBUG
#define __OPTIMIZE__ 1
#endif

View File

@@ -140,8 +140,15 @@ void Graphics::CreateLogicalDeviceAndQueues() {
}
VkPhysicalDeviceFeatures required_features = {};
required_features.depthBounds = true;
required_features.depthClamp = true;
VkPhysicalDeviceFeatures supported_features;
vkGetPhysicalDeviceFeatures(physical_device_, &supported_features);
if (supported_features.depthBounds) {
required_features.depthBounds = VK_TRUE;
}
if (supported_features.depthClamp) {
required_features.depthClamp = VK_TRUE;
}
VkDeviceCreateInfo device_info = {};
device_info.sType = VK_STRUCTURE_TYPE_DEVICE_CREATE_INFO;