linux build pass
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -1,2 +1,9 @@
|
||||
#ifndef NDEBUG
|
||||
#undef __OPTIMIZE__
|
||||
#endif
|
||||
#define STB_IMAGE_IMPLEMENTATION
|
||||
#include "stb/stb_image.h"
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define __OPTIMIZE__ 1
|
||||
#endif
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user