Minor fixes
This commit is contained in:
committed by
Jérôme Leclercq
parent
f45c2c5008
commit
5c7059c8fc
@@ -25,7 +25,7 @@ namespace Nz
|
||||
OpenGLCommandPool(OpenGLCommandPool&&) noexcept = default;
|
||||
~OpenGLCommandPool() = default;
|
||||
|
||||
CommandBufferPtr BuildCommandBuffer(const std::function<void(CommandBufferBuilder& builder)>& callback) override;
|
||||
CommandBufferPtr BuildCommandBuffer(const FunctionRef<void(CommandBufferBuilder& builder)>& callback) override;
|
||||
|
||||
void UpdateDebugName(std::string_view name) override;
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ namespace Nz::GL
|
||||
EnsureContext();
|
||||
|
||||
if (m_context->glObjectLabel)
|
||||
m_context->glObjectLabel(ObjectType, m_objectId, SafeCast<GLsizei>(name.size()), name.data());
|
||||
m_context->glObjectLabel(ObjectType, m_objectId, SafeCaster(name.size()), name.data());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Nz::GL
|
||||
const Context& context = EnsureDeviceContext();
|
||||
|
||||
if (context.glObjectLabel)
|
||||
context.glObjectLabel(ObjectType, m_objectId, SafeCast<GLsizei>(name.size()), name.data());
|
||||
context.glObjectLabel(ObjectType, m_objectId, SafeCaster(name.size()), name.data());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -51,7 +51,7 @@ namespace Nz::GL
|
||||
|
||||
if (activeUniformCount > 0)
|
||||
{
|
||||
uniformIndices.resize(static_cast<std::size_t>(activeUniformCount));
|
||||
uniformIndices.resize(SafeCaster(activeUniformCount));
|
||||
context.glGetActiveUniformBlockiv(m_objectId, uniformBlockIndex, GL_UNIFORM_BLOCK_ACTIVE_UNIFORM_INDICES, uniformIndices.data());
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include <NazaraUtils/Prerequisites.hpp>
|
||||
#include <Nazara/Renderer/CommandBuffer.hpp>
|
||||
#include <Nazara/Renderer/Config.hpp>
|
||||
#include <functional>
|
||||
#include <NazaraUtils/FunctionRef.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
@@ -24,7 +24,7 @@ namespace Nz
|
||||
CommandPool(CommandPool&&) = default;
|
||||
virtual ~CommandPool();
|
||||
|
||||
virtual CommandBufferPtr BuildCommandBuffer(const std::function<void(CommandBufferBuilder& builder)>& callback) = 0;
|
||||
virtual CommandBufferPtr BuildCommandBuffer(const FunctionRef<void(CommandBufferBuilder& builder)>& callback) = 0;
|
||||
|
||||
virtual void UpdateDebugName(std::string_view name) = 0;
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace Nz
|
||||
VulkanCommandPool(VulkanCommandPool&&) noexcept = default;
|
||||
~VulkanCommandPool() = default;
|
||||
|
||||
CommandBufferPtr BuildCommandBuffer(const std::function<void(CommandBufferBuilder& builder)>& callback) override;
|
||||
CommandBufferPtr BuildCommandBuffer(const FunctionRef<void(CommandBufferBuilder& builder)>& callback) override;
|
||||
|
||||
void UpdateDebugName(std::string_view name) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user