Fixing build for the millionth time
This commit is contained in:
Vendored
+2
-1
@@ -12,7 +12,8 @@
|
|||||||
],
|
],
|
||||||
"windowsSdkVersion": "10.0.18362.0",
|
"windowsSdkVersion": "10.0.18362.0",
|
||||||
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe",
|
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.25.28610/bin/Hostx64/x64/cl.exe",
|
||||||
"intelliSenseMode": "msvc-x64"
|
"intelliSenseMode": "msvc-x64",
|
||||||
|
"configurationProvider": "ms-vscode.cmake-tools"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": 4
|
"version": 4
|
||||||
|
|||||||
Vendored
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"telemetry.enableTelemetry": false,
|
"telemetry.enableTelemetry": false,
|
||||||
"cmake.buildDirectory": "${workspaceFolder}/bin/${buildType}",
|
"cmake.buildDirectory": "${workspaceFolder}/bin/${buildType}",
|
||||||
"git.autofetch": false,
|
"git.enabled": false,
|
||||||
"files.associations": {
|
"files.associations": {
|
||||||
"*.h": "cpp",
|
"*.h": "cpp",
|
||||||
"xstring": "cpp",
|
"xstring": "cpp",
|
||||||
|
|||||||
+17
-17
@@ -67,28 +67,28 @@ target_link_libraries(SeeleEngine ${SLANG_LIBRARY})
|
|||||||
target_link_libraries(SeeleEngine ${ASSIMP_LIBRARIES})
|
target_link_libraries(SeeleEngine ${ASSIMP_LIBRARIES})
|
||||||
target_link_libraries(SeeleEngine ${JSON_LIBRARY})
|
target_link_libraries(SeeleEngine ${JSON_LIBRARY})
|
||||||
|
|
||||||
target_precompile_headers(SeeleEngine
|
#target_precompile_headers(SeeleEngine
|
||||||
PRIVATE
|
# PRIVATE
|
||||||
<assert.h>
|
# <assert.h>
|
||||||
<memory>
|
# <memory>
|
||||||
<atomic>
|
# <atomic>
|
||||||
<cstring>
|
# <cstring>
|
||||||
<iostream>
|
# <iostream>
|
||||||
<string>
|
# <string>
|
||||||
<thread>
|
# <thread>
|
||||||
<functional>
|
# <functional>
|
||||||
<filesystem>
|
# <filesystem>
|
||||||
<fstream>
|
# <fstream>
|
||||||
<mutex>
|
# <mutex>
|
||||||
<condition_variable>
|
# <condition_variable>
|
||||||
<boost/serialization/serialization.hpp>
|
# <boost/serialization/serialization.hpp>
|
||||||
<boost/crc.hpp>)
|
# <boost/crc.hpp>)
|
||||||
|
|
||||||
add_subdirectory(src/)
|
add_subdirectory(src/)
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(_CRT_SECURE_NO_WARNINGS)
|
set(_CRT_SECURE_NO_WARNINGS)
|
||||||
target_compile_options(SeeleEngine PRIVATE /DEBUG:FASTLINK /Zi)
|
# target_compile_options(SeeleEngine PRIVATE /DEBUG:FASTLINK /Zi)
|
||||||
else()
|
else()
|
||||||
target_compile_options(SeeleEngine PRIVATE -Wall -Wextra -pedantic)
|
target_compile_options(SeeleEngine PRIVATE -Wall -Wextra -pedantic)
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
#include "Material/Material.h"
|
#include "Material/Material.h"
|
||||||
#include "Graphics/Graphics.h"
|
#include "Graphics/Graphics.h"
|
||||||
#include "Graphics/WindowManager.h"
|
#include "Graphics/WindowManager.h"
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
using namespace Seele;
|
using namespace Seele;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "Containers/List.h"
|
#include "Containers/List.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
namespace Seele
|
namespace Seele
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "Containers/List.h"
|
#include "Containers/List.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
namespace Seele
|
namespace Seele
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "Containers/List.h"
|
#include "Containers/List.h"
|
||||||
#include <thread>
|
#include <thread>
|
||||||
#include <future>
|
#include <future>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
namespace Seele
|
namespace Seele
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ void DescriptorSet::updateSampler(uint32_t binding, Gfx::PSamplerState samplerSt
|
|||||||
init::DescriptorImageInfo(
|
init::DescriptorImageInfo(
|
||||||
vulkanSampler->sampler,
|
vulkanSampler->sampler,
|
||||||
VK_NULL_HANDLE,
|
VK_NULL_HANDLE,
|
||||||
VK_IMAGE_LAYOUT_BEGIN_RANGE);
|
VK_IMAGE_LAYOUT_UNDEFINED);
|
||||||
imageInfos.add(imageInfo);
|
imageInfos.add(imageInfo);
|
||||||
|
|
||||||
VkWriteDescriptorSet writeDescriptor = init::WriteDescriptorSet(setHandle, VK_DESCRIPTOR_TYPE_SAMPLER, binding, &imageInfos.back());
|
VkWriteDescriptorSet writeDescriptor = init::WriteDescriptorSet(setHandle, VK_DESCRIPTOR_TYPE_SAMPLER, binding, &imageInfos.back());
|
||||||
@@ -162,7 +162,7 @@ void DescriptorSet::writeChanges()
|
|||||||
DescriptorAllocator::DescriptorAllocator(PGraphics graphics, DescriptorLayout &layout)
|
DescriptorAllocator::DescriptorAllocator(PGraphics graphics, DescriptorLayout &layout)
|
||||||
: layout(layout), graphics(graphics)
|
: layout(layout), graphics(graphics)
|
||||||
{
|
{
|
||||||
uint32 perTypeSizes[VK_DESCRIPTOR_TYPE_END_RANGE];
|
uint32 perTypeSizes[VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT]; // TODO: FIX ENUM
|
||||||
std::memset(perTypeSizes, 0, sizeof(perTypeSizes));
|
std::memset(perTypeSizes, 0, sizeof(perTypeSizes));
|
||||||
for (uint32 i = 0; i < layout.getBindings().size(); ++i)
|
for (uint32 i = 0; i < layout.getBindings().size(); ++i)
|
||||||
{
|
{
|
||||||
@@ -171,7 +171,7 @@ DescriptorAllocator::DescriptorAllocator(PGraphics graphics, DescriptorLayout &l
|
|||||||
perTypeSizes[typeIndex] += 256;
|
perTypeSizes[typeIndex] += 256;
|
||||||
}
|
}
|
||||||
Array<VkDescriptorPoolSize> poolSizes;
|
Array<VkDescriptorPoolSize> poolSizes;
|
||||||
for (uint32 i = 0; i < VK_DESCRIPTOR_TYPE_END_RANGE; ++i)
|
for (uint32 i = 0; i < VK_DESCRIPTOR_TYPE_INPUT_ATTACHMENT; ++i)
|
||||||
{
|
{
|
||||||
if (perTypeSizes[i] > 0)
|
if (perTypeSizes[i] > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#include "Graphics/GraphicsResources.h"
|
|
||||||
#include <vulkan/vulkan.h>
|
#include <vulkan/vulkan.h>
|
||||||
|
#include "Graphics/GraphicsResources.h"
|
||||||
|
#include <functional>
|
||||||
|
|
||||||
namespace Seele
|
namespace Seele
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
#include "VulkanRenderPass.h"
|
#include "VulkanRenderPass.h"
|
||||||
#include "VulkanDescriptorSets.h"
|
#include "VulkanDescriptorSets.h"
|
||||||
#include "VulkanShader.h"
|
#include "VulkanShader.h"
|
||||||
|
#include <fstream>
|
||||||
|
|
||||||
using namespace Seele;
|
using namespace Seele;
|
||||||
using namespace Seele::Vulkan;
|
using namespace Seele::Vulkan;
|
||||||
@@ -230,7 +231,7 @@ PGraphicsPipeline PipelineCache::createPipeline(const GraphicsPipelineCreateInfo
|
|||||||
std::memcpy(blendState.blendConstants, gfxInfo.colorBlend.blendConstants, sizeof(float)*4);
|
std::memcpy(blendState.blendConstants, gfxInfo.colorBlend.blendConstants, sizeof(float)*4);
|
||||||
|
|
||||||
uint32 numDynamicEnabled = 0;
|
uint32 numDynamicEnabled = 0;
|
||||||
StaticArray<VkDynamicState, VK_DYNAMIC_STATE_RANGE_SIZE> dynamicEnabled;
|
StaticArray<VkDynamicState, 2> dynamicEnabled;
|
||||||
dynamicEnabled[numDynamicEnabled++] = VK_DYNAMIC_STATE_VIEWPORT;
|
dynamicEnabled[numDynamicEnabled++] = VK_DYNAMIC_STATE_VIEWPORT;
|
||||||
dynamicEnabled[numDynamicEnabled++] = VK_DYNAMIC_STATE_SCISSOR;
|
dynamicEnabled[numDynamicEnabled++] = VK_DYNAMIC_STATE_SCISSOR;
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#include "Graphics/VertexShaderInput.h"
|
#include "Graphics/VertexShaderInput.h"
|
||||||
#include <nlohmann/json.hpp>
|
#include <nlohmann/json.hpp>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
Gfx::ShaderMap Material::shaderMap;
|
Gfx::ShaderMap Material::shaderMap;
|
||||||
std::mutex Material::shaderMapLock;
|
std::mutex Material::shaderMapLock;
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ public:
|
|||||||
inline void removeRef()
|
inline void removeRef()
|
||||||
{
|
{
|
||||||
refCount--;
|
refCount--;
|
||||||
if (refCount.load() == 0)
|
if (refCount == 0)
|
||||||
{
|
{
|
||||||
delete this;
|
delete this;
|
||||||
}
|
}
|
||||||
@@ -105,7 +105,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
T *handle;
|
T *handle;
|
||||||
std::atomic_uint64_t refCount;
|
uint64 refCount;
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
|||||||
Reference in New Issue
Block a user