update some stuff so i dont get a ton of useless warnings
This commit is contained in:
parent
2735eb5807
commit
134b43c1d4
|
@ -35,14 +35,15 @@ foreach file : source_file_names
|
|||
endforeach
|
||||
|
||||
deps = [
|
||||
dependency('fmt', static: true),
|
||||
dependency('glfw3'),
|
||||
dependency('glm'),
|
||||
dependency('vulkan'),
|
||||
dependency('fmt', include_type: 'system'),
|
||||
dependency('glfw3', include_type: 'system'),
|
||||
dependency('glm', include_type: 'system'),
|
||||
dependency('vulkan', include_type: 'system'),
|
||||
]
|
||||
|
||||
executable(
|
||||
'graphics-test',
|
||||
sources,
|
||||
include_directories: include_directories('include', is_system: true),
|
||||
dependencies: deps,
|
||||
)
|
10
src/main.cpp
10
src/main.cpp
|
@ -11,14 +11,14 @@
|
|||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
#include "util/types.h"
|
||||
#include "util/vkfw.hpp"
|
||||
#include "vkfw.hpp"
|
||||
|
||||
namespace vk {
|
||||
using DebugUtilsMessengerUnique = vk::UniqueHandle<vk::DebugUtilsMessengerEXT, vk::DispatchLoaderDynamic>;
|
||||
}
|
||||
|
||||
constexpr int WIDTH = 800;
|
||||
constexpr int HEIGHT = 600;
|
||||
constexpr i32 WIDTH = 800;
|
||||
constexpr i32 HEIGHT = 600;
|
||||
|
||||
constexpr std::array<const char*, 1> validationLayers = { "VK_LAYER_KHRONOS_validation" };
|
||||
|
||||
|
@ -103,9 +103,9 @@ class VulkanApp {
|
|||
vk::InstanceCreateInfo createInfo {
|
||||
.flags = vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR,
|
||||
.pApplicationInfo = &appInfo,
|
||||
.enabledLayerCount = enableValidationLayers ? static_cast<uint32_t>(validationLayers.size()) : 0,
|
||||
.enabledLayerCount = enableValidationLayers ? static_cast<u32>(validationLayers.size()) : 0,
|
||||
.ppEnabledLayerNames = enableValidationLayers ? validationLayers.data() : nullptr,
|
||||
.enabledExtensionCount = static_cast<uint32_t>(extensions.size()),
|
||||
.enabledExtensionCount = static_cast<u32>(extensions.size()),
|
||||
.ppEnabledExtensionNames = extensions.data()
|
||||
};
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue