Add command buffers (WIP)
This commit is contained in:
11
src/Nazara/Renderer/CommandBuffer.cpp
Normal file
11
src/Nazara/Renderer/CommandBuffer.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Renderer module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/CommandBuffer.hpp>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
CommandBuffer::~CommandBuffer() = default;
|
||||
}
|
||||
11
src/Nazara/Renderer/CommandBufferBuilder.cpp
Normal file
11
src/Nazara/Renderer/CommandBufferBuilder.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Renderer module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/CommandBufferBuilder.hpp>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
CommandBufferBuilder::~CommandBufferBuilder() = default;
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
bool RenderBuffer::Fill(const void* data, UInt32 offset, UInt32 size)
|
||||
bool RenderBuffer::Fill(const void* data, UInt64 offset, UInt64 size)
|
||||
{
|
||||
if (m_softwareBuffer.Fill(data, offset, size))
|
||||
{
|
||||
@@ -21,7 +21,7 @@ namespace Nz
|
||||
return false;
|
||||
}
|
||||
|
||||
bool RenderBuffer::Initialize(UInt32 size, BufferUsageFlags usage)
|
||||
bool RenderBuffer::Initialize(UInt64 size, BufferUsageFlags usage)
|
||||
{
|
||||
m_size = size;
|
||||
m_softwareBuffer.Initialize(size, usage);
|
||||
@@ -37,12 +37,17 @@ namespace Nz
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
UInt64 RenderBuffer::GetSize() const
|
||||
{
|
||||
return m_size;
|
||||
}
|
||||
|
||||
DataStorage RenderBuffer::GetStorage() const
|
||||
{
|
||||
return DataStorage::DataStorage_Hardware;
|
||||
}
|
||||
|
||||
void* RenderBuffer::Map(BufferAccess access, UInt32 offset, UInt32 size)
|
||||
void* RenderBuffer::Map(BufferAccess access, UInt64 offset, UInt64 size)
|
||||
{
|
||||
if (void* ptr = m_softwareBuffer.Map(access, offset, size))
|
||||
{
|
||||
|
||||
11
src/Nazara/Renderer/RenderImage.cpp
Normal file
11
src/Nazara/Renderer/RenderImage.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
// Copyright (C) 2015 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Renderer module"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/RenderImage.hpp>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
RenderImage::~RenderImage() = default;
|
||||
}
|
||||
12
src/Nazara/Renderer/UploadPool.cpp
Normal file
12
src/Nazara/Renderer/UploadPool.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright (C) 2020 Jérôme Leclercq
|
||||
// This file is part of the "Nazara Engine - Vulkan Renderer"
|
||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||
|
||||
#include <Nazara/Renderer/UploadPool.hpp>
|
||||
#include <cassert>
|
||||
#include <Nazara/Renderer/Debug.hpp>
|
||||
|
||||
namespace Nz
|
||||
{
|
||||
UploadPool::Allocation::~Allocation() = default;
|
||||
}
|
||||
Reference in New Issue
Block a user