Fixed some warnings and premake files now include hpp files
This commit is contained in:
parent
cce1d24374
commit
bed017e539
|
@ -14,6 +14,7 @@ project "SHADE_Application"
|
|||
files
|
||||
{
|
||||
"%{prj.location}/src/**.h",
|
||||
"%{prj.location}/src/**.hpp",
|
||||
"%{prj.location}/src/**.c",
|
||||
"%{prj.location}/src/**.cpp",
|
||||
"%{prj.location}/src/**.glsl",
|
||||
|
|
|
@ -173,8 +173,11 @@
|
|||
<ClInclude Include="src\Graphics\Windowing\Surface\SHVkSurface.h" />
|
||||
<ClInclude Include="src\Meta\SHIsDetected.h" />
|
||||
<ClInclude Include="src\Resource\Handle.h" />
|
||||
<ClInclude Include="src\Resource\Handle.hpp" />
|
||||
<ClInclude Include="src\Resource\ResourceLibrary.h" />
|
||||
<ClInclude Include="src\Resource\ResourceLibrary.hpp" />
|
||||
<ClInclude Include="src\Resource\SparseSet.h" />
|
||||
<ClInclude Include="src\Resource\SparseSet.hpp" />
|
||||
<ClInclude Include="src\SHpch.h" />
|
||||
<ClInclude Include="src\Scene\SHScene.h" />
|
||||
<ClInclude Include="src\Scene\SHSceneManager.h" />
|
||||
|
|
|
@ -321,12 +321,21 @@
|
|||
<ClInclude Include="src\Resource\Handle.h">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\Resource\Handle.hpp">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\Resource\ResourceLibrary.h">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\Resource\ResourceLibrary.hpp">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\Resource\SparseSet.h">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\Resource\SparseSet.hpp">
|
||||
<Filter>Resource</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="src\SHpch.h" />
|
||||
<ClInclude Include="src\Scene\SHScene.h">
|
||||
<Filter>Scene</Filter>
|
||||
|
|
|
@ -12,10 +12,10 @@ project "SHADE_Engine"
|
|||
files
|
||||
{
|
||||
"%{prj.location}/src/**.h",
|
||||
"%{prj.location}/src/**.hpp",
|
||||
"%{prj.location}/src/**.c",
|
||||
"%{prj.location}/src/**.cpp",
|
||||
"%{prj.location}/src/**.glsl",
|
||||
"%{wks.location}/Dependencies/stb_image/**.cpp"
|
||||
"%{prj.location}/src/**.glsl"
|
||||
}
|
||||
|
||||
includedirs
|
||||
|
|
|
@ -180,10 +180,10 @@ namespace SHADE
|
|||
return;
|
||||
}
|
||||
|
||||
SHLOG_ERROR("Successfully queried Physical Devices:");
|
||||
SHLOG_TRACE("Successfully queried Physical Devices:");
|
||||
for (auto const& device : physicalDevices)
|
||||
{
|
||||
SHLOG_ERROR(std::string_view (std::string("\t-") + GetDeviceTypeName(device.getProperties().deviceType) + device.getProperties().deviceName.operator std::string()));
|
||||
SHLOG_TRACE(std::string_view (std::string("\t-") + GetDeviceTypeName(device.getProperties().deviceType) + device.getProperties().deviceName.operator std::string()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,11 +19,15 @@ namespace SHADE
|
|||
vkPresentModes = physicalDeviceHdl->GetVkPhysicalDevice().getSurfacePresentModesKHR(surfaceHdl->GetVkSurface());
|
||||
|
||||
if (vkSurfaceFormats.size() == 0)
|
||||
{
|
||||
SHLOG_ERROR("Failed to get surface formats from the physical device. ");
|
||||
}
|
||||
|
||||
if (vkPresentModes.size() == 0)
|
||||
{
|
||||
SHLOG_ERROR("Failed to get present modes from the physical device. ");
|
||||
}
|
||||
}
|
||||
|
||||
vk::SurfaceFormatKHR SHVkSwapchain::ChooseSwapSurfaceFormat(std::vector<vk::SurfaceFormatKHR> const& surfaceFormats) const noexcept
|
||||
{
|
||||
|
|
|
@ -123,7 +123,7 @@ namespace SHADE
|
|||
auto& insertedElem = denseArray.emplace_back(std::forward<Args>(args) ...);
|
||||
|
||||
// Update sparse and inverse sparse arrays
|
||||
const auto DENSE_IDX = denseArray.size() - 1;
|
||||
const auto DENSE_IDX = static_cast<index_type>(denseArray.size()) - 1;
|
||||
sparseArray[idx] = DENSE_IDX;
|
||||
inverseSparseArray[DENSE_IDX] = idx;
|
||||
|
||||
|
|
Loading…
Reference in New Issue