Refactor xmake.lua and make some warnings as errors
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include <Nazara/Graphics/FrameGraph.hpp>
|
||||
#include <Nazara/Core/Algorithm.hpp>
|
||||
#include <Nazara/Graphics/Graphics.hpp>
|
||||
#include <NazaraUtils/Bitset.hpp>
|
||||
#include <NazaraUtils/StackArray.hpp>
|
||||
#include <stdexcept>
|
||||
#include <unordered_set>
|
||||
@@ -1099,7 +1100,7 @@ namespace Nz
|
||||
void FrameGraph::RemoveDuplicatePasses()
|
||||
{
|
||||
// A way to remove duplicates from a std::vector without sorting it
|
||||
std::vector<bool> seen(m_framePasses.size());
|
||||
Bitset<> seen(m_framePasses.size());
|
||||
|
||||
auto itRead = m_pending.passList.begin();
|
||||
auto itWrite = m_pending.passList.begin();
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace Nz
|
||||
Light::Light(UInt8 lightType) :
|
||||
m_boundingVolume(BoundingVolumef::Null()),
|
||||
m_shadowMapFormat(Graphics::Instance()->GetPreferredDepthFormat()),
|
||||
m_shadowMapSize(512),
|
||||
m_lightType(lightType),
|
||||
m_shadowMapSize(512),
|
||||
m_isShadowCaster(false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -50,8 +50,6 @@ namespace Nz
|
||||
{
|
||||
constexpr MaterialPropertyType PropertyType = TypeToMaterialPropertyType_v<T>;
|
||||
|
||||
using BufferType = typename MaterialPropertyTypeInfo<PropertyType>::BufferType;
|
||||
|
||||
materialInstance.UpdateOptionValue(m_optionHash, MaterialPropertyTypeInfo<PropertyType>::EncodeToOption(arg));
|
||||
}
|
||||
else
|
||||
|
||||
@@ -23,11 +23,11 @@ namespace Nz
|
||||
* \remark The default material is used for every material requested
|
||||
*/
|
||||
Tilemap::Tilemap(const Vector2ui& mapSize, const Vector2f& tileSize, std::size_t materialCount) :
|
||||
m_tiles(mapSize.x* mapSize.y),
|
||||
m_layers(materialCount),
|
||||
m_mapSize(mapSize),
|
||||
m_tileSize(tileSize),
|
||||
m_tiles(mapSize.x* mapSize.y),
|
||||
m_origin(0.f, 0.f),
|
||||
m_tileSize(tileSize),
|
||||
m_mapSize(mapSize),
|
||||
m_isometricModeEnabled(false),
|
||||
m_shouldRebuildVertices(false)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user