Fixes up a bunch of lib stuff

This commit is contained in:
2024-10-12 08:52:30 -04:00
parent 08eb20f19d
commit eccbd33af8
9 changed files with 16 additions and 14 deletions

View File

@@ -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

View File

@@ -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" );
}