Fixes up a bunch of lib stuff
This commit is contained in:
@@ -75,9 +75,9 @@
|
||||
AppendFlag("-Wredundant-decls") #Warns about declarations that happen more then once.
|
||||
AppendFlag("-Wctor-dtor-privacy") #Warns if a class appears unusable due to private ctor/dtors
|
||||
AppendFlag("-Wdelete-non-virtual-dtor") #Warns about using `delete` on a class that has virtual functions without a virtual dtor
|
||||
# Disabled because of older GCC compilers being unhappy with it
|
||||
AppendFlag("-Winvalid-constexpr") #Warns that a function marked as constexpr can't possibly produce a constexpr expression
|
||||
AppendFlag("-Wnoexcept") #Warns when a noexcept expression is false due to throwing
|
||||
# Disabled due to spdlog
|
||||
#AppendFlag("-Wnoexcept") #Warns when a noexcept expression is false due to throwing
|
||||
AppendFlag("-Wnoexcept-type")
|
||||
AppendFlag("-Wclass-memaccess") #Warns about accessing memory of a class. Which is likely invalid
|
||||
AppendFlag("-Wregister") #Warns of use for `register` keyword. Which has been depreicated
|
||||
@@ -104,7 +104,7 @@
|
||||
AppendFlag("-fdiagnostics-show-template-tree") # Shows the template diagnostic info as a tree instead.
|
||||
AppendFlag("-fdiagnostics-path-format=inline-events")
|
||||
|
||||
set(FGL_CONFIG "-std=c++23 -fmax-errors=6 -fconcepts-diagnostics-depth=8 -ftree-vectorize")
|
||||
set(FGL_CONFIG "-std=c++23 -fmax-errors=3 -fconcepts-diagnostics-depth=8 -ftree-vectorize")
|
||||
|
||||
if (DEFINED USE_WERROR)
|
||||
set(FGL_CONFIG "${FGL_CONFIG} -Werror")
|
||||
|
||||
2
dependencies/glfw3
vendored
2
dependencies/glfw3
vendored
Submodule dependencies/glfw3 updated: 9959dc69ca...7b6aead9fb
2
dependencies/glm
vendored
2
dependencies/glm
vendored
Submodule dependencies/glm updated: 33b4a621a6...0af55ccecd
2
dependencies/shaderc
vendored
2
dependencies/shaderc
vendored
Submodule dependencies/shaderc updated: 5d0f6ed6e4...ff84893dd5
2
dependencies/spdlog
vendored
2
dependencies/spdlog
vendored
Submodule dependencies/spdlog updated: c3aed4b683...27cb4c7670
2
dependencies/tracy
vendored
2
dependencies/tracy
vendored
Submodule dependencies/tracy updated: 0c6803e5c6...897aec5b06
2
dependencies/vma
vendored
2
dependencies/vma
vendored
Submodule dependencies/vma updated: 5e43c795da...009ecd192c
@@ -8,6 +8,7 @@
|
||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||
#pragma GCC diagnostic ignored "-Weffc++"
|
||||
#pragma GCC diagnostic ignored "-Wnon-virtual-dtor"
|
||||
#pragma GCC diagnostic ignored "-Wnoexcept"
|
||||
#include <spdlog/spdlog.h>
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
#include "BufferVector.hpp"
|
||||
#include "concepts.hpp"
|
||||
#include "engine/assets/transfer/TransferManager.hpp"
|
||||
#include "engine/math/literals/size.hpp"
|
||||
#include "engine/debug/logging/logging.hpp"
|
||||
#include "engine/math/literals/size.hpp"
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
@@ -16,7 +16,7 @@ namespace fgl::engine
|
||||
{
|
||||
class Buffer;
|
||||
}
|
||||
}
|
||||
} // namespace fgl::engine
|
||||
|
||||
namespace fgl::engine
|
||||
{
|
||||
@@ -25,10 +25,11 @@ namespace fgl::engine
|
||||
{
|
||||
public:
|
||||
|
||||
DeviceVector( memory::Buffer& buffer, const std::uint32_t count = 1 ) : BufferVector( buffer, count, sizeof( T ) )
|
||||
DeviceVector( memory::Buffer& buffer, const std::uint32_t count = 1 ) :
|
||||
BufferVector( buffer, count, sizeof( T ) )
|
||||
{
|
||||
log::debug(
|
||||
"Creating DeviceVector of size {}", fgl::literals::size_literals::to_string( count * sizeof( T ) ) );
|
||||
const auto size_str { fgl::literals::size_literals::to_string( count * sizeof( T ) ) };
|
||||
log::debug( "Creating DeviceVector of size {}", size_str );
|
||||
assert( count != 0 && "BufferSuballocationVector::BufferSuballocationVector() called with count == 0" );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user