Files
NazaraEngine/include/Nazara/VulkanRenderer/VulkanCommandBuffer.inl
SirLynix 5130a2ff84 Remove Config.hpp options and refactor headers
- Rename Config.hpp to Export.hpp
- Remove Debug.hpp and DebugOff.hpp (not used anymore)
2024-02-19 15:11:34 +01:00

44 lines
1.1 KiB
C++

// Copyright (C) 2024 Jérôme "SirLynix" Leclercq (lynix680@gmail.com)
// This file is part of the "Nazara Engine - Vulkan renderer"
// For conditions of distribution and use, see copyright notice in Export.hpp
namespace Nz
{
inline VulkanCommandBuffer::VulkanCommandBuffer(VulkanCommandPool& owner, std::size_t poolIndex, std::size_t bindingIndex, Vk::AutoCommandBuffer commandBuffer) :
m_bindingIndex(bindingIndex),
m_poolIndex(poolIndex),
m_commandBuffer(std::move(commandBuffer)),
m_owner(owner)
{
}
inline VulkanCommandBuffer::VulkanCommandBuffer(VulkanCommandPool& owner, std::size_t poolIndex, std::size_t bindingIndex) :
m_bindingIndex(bindingIndex),
m_poolIndex(poolIndex),
m_owner(owner)
{
}
inline std::size_t VulkanCommandBuffer::GetBindingIndex() const
{
return m_bindingIndex;
}
inline const Vk::CommandBuffer& VulkanCommandBuffer::GetCommandBuffer() const
{
return m_commandBuffer;
}
inline std::size_t VulkanCommandBuffer::GetPoolIndex() const
{
return m_poolIndex;
}
inline const VulkanCommandPool& VulkanCommandBuffer::GetOwner() const
{
return m_owner;
}
}