mirror of
https://gitea.windcorp.ru/Wind-Corporation/Progressia.git
synced 2025-04-21 19:20:45 +03:00
TMP / compacted namespace declarations
This commit is contained in:
parent
5ff9334c64
commit
31c5692ba8
@ -11,8 +11,7 @@
|
|||||||
#include "vulkan_mgmt.h"
|
#include "vulkan_mgmt.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
static GLFWwindow *window = nullptr;
|
static GLFWwindow *window = nullptr;
|
||||||
|
|
||||||
@ -78,5 +77,4 @@ void onWindowGeometryChange(GLFWwindow *window, [[maybe_unused]] int width,
|
|||||||
|
|
||||||
GLFWwindow *getGLFWWindowHandle() { return window; }
|
GLFWwindow *getGLFWWindowHandle() { return window; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
void initializeGlfw();
|
void initializeGlfw();
|
||||||
void showWindow();
|
void showWindow();
|
||||||
@ -9,5 +8,4 @@ void shutdownGlfw();
|
|||||||
bool shouldRun();
|
bool shouldRun();
|
||||||
void doGlfwRoutine();
|
void doGlfwRoutine();
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -5,10 +5,8 @@
|
|||||||
#define GLFW_INCLUDE_VULKAN
|
#define GLFW_INCLUDE_VULKAN
|
||||||
#include <GLFW/glfw3.h>
|
#include <GLFW/glfw3.h>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
GLFWwindow *getGLFWWindowHandle();
|
GLFWwindow *getGLFWWindowHandle();
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -26,8 +26,7 @@
|
|||||||
|
|
||||||
#include <embedded_resources.h>
|
#include <embedded_resources.h>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
using progressia::main::Vertex;
|
using progressia::main::Vertex;
|
||||||
|
|
||||||
@ -152,8 +151,8 @@ void Adapter::onPreFrame() {
|
|||||||
* graphics_interface implementation
|
* graphics_interface implementation
|
||||||
*/
|
*/
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
namespace main {
|
namespace progressia::main {
|
||||||
|
|
||||||
using namespace progressia::desktop;
|
using namespace progressia::desktop;
|
||||||
|
|
||||||
@ -335,5 +334,4 @@ uint64_t GraphicsInterface::getLastStartedFrame() {
|
|||||||
return static_cast<Vulkan *>(this->backend)->getLastStartedFrame();
|
return static_cast<Vulkan *>(this->backend)->getLastStartedFrame();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
#include "vulkan_image.h"
|
#include "vulkan_image.h"
|
||||||
#include "vulkan_uniform.h"
|
#include "vulkan_uniform.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class Attachment {
|
class Attachment {
|
||||||
public:
|
public:
|
||||||
@ -67,5 +66,4 @@ class Adapter : public VkObjectWrapper {
|
|||||||
void onPreFrame();
|
void onPreFrame();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* A single buffer with a chunk of allocated memory.
|
* A single buffer with a chunk of allocated memory.
|
||||||
@ -191,5 +190,4 @@ class IndexedBufferBase : public VkObjectWrapper {
|
|||||||
template <typename Vertex>
|
template <typename Vertex>
|
||||||
using IndexedBuffer = IndexedBufferBase<Vertex, uint16_t, VK_INDEX_TYPE_UINT16>;
|
using IndexedBuffer = IndexedBufferBase<Vertex, uint16_t, VK_INDEX_TYPE_UINT16>;
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -15,8 +15,7 @@
|
|||||||
|
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Vulkan
|
* Vulkan
|
||||||
@ -769,5 +768,4 @@ void CommandPool::freeMultiUse(VkCommandBuffer buffer) {
|
|||||||
vkFreeCommandBuffers(vulkan.getDevice(), pool, 1, &buffer);
|
vkFreeCommandBuffers(vulkan.getDevice(), pool, 1, &buffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -22,8 +22,7 @@
|
|||||||
#include "../../main/logging.h"
|
#include "../../main/logging.h"
|
||||||
#include "../../main/rendering/graphics_interface.h"
|
#include "../../main/rendering/graphics_interface.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
namespace CstrUtils {
|
namespace CstrUtils {
|
||||||
struct CstrHash {
|
struct CstrHash {
|
||||||
@ -288,5 +287,4 @@ class CommandPool : public VkObjectWrapper {
|
|||||||
void freeMultiUse(VkCommandBuffer);
|
void freeMultiUse(VkCommandBuffer);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "vulkan_descriptor_set.h"
|
#include "vulkan_descriptor_set.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
DescriptorSetInterface::DescriptorSetInterface(uint32_t setNumber,
|
DescriptorSetInterface::DescriptorSetInterface(uint32_t setNumber,
|
||||||
Vulkan &vulkan)
|
Vulkan &vulkan)
|
||||||
@ -15,5 +14,4 @@ uint32_t DescriptorSetInterface::getSetNumber() const { return setNumber; }
|
|||||||
|
|
||||||
Vulkan &DescriptorSetInterface::getVulkan() { return vulkan; }
|
Vulkan &DescriptorSetInterface::getVulkan() { return vulkan; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class DescriptorSetInterface : public VkObjectWrapper {
|
class DescriptorSetInterface : public VkObjectWrapper {
|
||||||
protected:
|
protected:
|
||||||
@ -19,5 +18,4 @@ class DescriptorSetInterface : public VkObjectWrapper {
|
|||||||
Vulkan &getVulkan();
|
Vulkan &getVulkan();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
#include "vulkan_render_pass.h"
|
#include "vulkan_render_pass.h"
|
||||||
#include "vulkan_swap_chain.h"
|
#include "vulkan_swap_chain.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
Frame::Frame(Vulkan &vulkan)
|
Frame::Frame(Vulkan &vulkan)
|
||||||
: vulkan(vulkan),
|
: vulkan(vulkan),
|
||||||
@ -170,5 +169,4 @@ void Frame::endRender() {
|
|||||||
|
|
||||||
VkCommandBuffer Frame::getCommandBuffer() { return commandBuffer; }
|
VkCommandBuffer Frame::getCommandBuffer() { return commandBuffer; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class Frame : public VkObjectWrapper {
|
class Frame : public VkObjectWrapper {
|
||||||
private:
|
private:
|
||||||
@ -32,5 +31,4 @@ class Frame : public VkObjectWrapper {
|
|||||||
VkCommandBuffer getCommandBuffer();
|
VkCommandBuffer getCommandBuffer();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -9,8 +9,7 @@
|
|||||||
#include "vulkan_pipeline.h"
|
#include "vulkan_pipeline.h"
|
||||||
#include "vulkan_texture_descriptors.h"
|
#include "vulkan_texture_descriptors.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Image
|
* Image
|
||||||
@ -243,5 +242,4 @@ void Texture::bind() {
|
|||||||
&descriptorSet, 0, nullptr);
|
&descriptorSet, 0, nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
|
|
||||||
#include "../../main/rendering/image.h"
|
#include "../../main/rendering/image.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class Image : public VkObjectWrapper {
|
class Image : public VkObjectWrapper {
|
||||||
public:
|
public:
|
||||||
@ -55,5 +54,4 @@ class Texture : public ManagedImage {
|
|||||||
void bind();
|
void bind();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -6,8 +6,7 @@
|
|||||||
#include "../../main/logging.h"
|
#include "../../main/logging.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
Vulkan *vulkan;
|
Vulkan *vulkan;
|
||||||
|
|
||||||
@ -67,5 +66,4 @@ void shutdownVulkan() {
|
|||||||
debug("Vulkan terminated");
|
debug("Vulkan terminated");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
void initializeVulkan();
|
void initializeVulkan();
|
||||||
|
|
||||||
@ -19,5 +18,4 @@ void endRender();
|
|||||||
|
|
||||||
void shutdownVulkan();
|
void shutdownVulkan();
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "vulkan_physical_device.h"
|
#include "vulkan_physical_device.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk) : vk(vk) {
|
PhysicalDevice::PhysicalDevice(VkPhysicalDevice vk) : vk(vk) {
|
||||||
vkGetPhysicalDeviceProperties(vk, &properties);
|
vkGetPhysicalDeviceProperties(vk, &properties);
|
||||||
@ -47,5 +46,4 @@ uint32_t PhysicalDevice::getMaxTextureSize() const {
|
|||||||
return getLimits().maxImageDimension2D;
|
return getLimits().maxImageDimension2D;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class PhysicalDevice {
|
class PhysicalDevice {
|
||||||
|
|
||||||
@ -31,5 +30,4 @@ class PhysicalDevice {
|
|||||||
uint32_t getMaxTextureSize() const;
|
uint32_t getMaxTextureSize() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
#include "vulkan_swap_chain.h"
|
#include "vulkan_swap_chain.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
|
||||||
@ -99,5 +98,4 @@ pickPhysicalDevice(std::vector<PhysicalDevice> &choices, Vulkan &vulkan,
|
|||||||
return *pick;
|
return *pick;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -5,12 +5,10 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
const PhysicalDevice &
|
const PhysicalDevice &
|
||||||
pickPhysicalDevice(std::vector<PhysicalDevice> &, Vulkan &,
|
pickPhysicalDevice(std::vector<PhysicalDevice> &, Vulkan &,
|
||||||
const std::vector<const char *> &deviceExtensions);
|
const std::vector<const char *> &deviceExtensions);
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
#include "vulkan_descriptor_set.h"
|
#include "vulkan_descriptor_set.h"
|
||||||
#include "vulkan_render_pass.h"
|
#include "vulkan_render_pass.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
Pipeline::Pipeline(Vulkan &vulkan) : vulkan(vulkan) {
|
Pipeline::Pipeline(Vulkan &vulkan) : vulkan(vulkan) {
|
||||||
|
|
||||||
@ -219,5 +218,4 @@ VkPipeline Pipeline::getVk() { return vk; }
|
|||||||
|
|
||||||
VkPipelineLayout Pipeline::getLayout() { return layout; }
|
VkPipelineLayout Pipeline::getLayout() { return layout; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class Pipeline : public VkObjectWrapper {
|
class Pipeline : public VkObjectWrapper {
|
||||||
|
|
||||||
@ -23,5 +22,4 @@ class Pipeline : public VkObjectWrapper {
|
|||||||
VkPipelineLayout getLayout();
|
VkPipelineLayout getLayout();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#include "vulkan_adapter.h"
|
#include "vulkan_adapter.h"
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
|
RenderPass::RenderPass(Vulkan &vulkan) : vulkan(vulkan) {
|
||||||
|
|
||||||
@ -79,5 +78,4 @@ RenderPass::~RenderPass() {
|
|||||||
|
|
||||||
VkRenderPass RenderPass::getVk() { return vk; }
|
VkRenderPass RenderPass::getVk() { return vk; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class RenderPass : public VkObjectWrapper {
|
class RenderPass : public VkObjectWrapper {
|
||||||
|
|
||||||
@ -19,5 +18,4 @@ class RenderPass : public VkObjectWrapper {
|
|||||||
VkRenderPass getVk();
|
VkRenderPass getVk();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
#include "../../main/logging.h"
|
#include "../../main/logging.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
SwapChain::SupportDetails
|
SwapChain::SupportDetails
|
||||||
SwapChain::querySwapChainSupport(VkPhysicalDevice device, Vulkan &vulkan) {
|
SwapChain::querySwapChainSupport(VkPhysicalDevice device, Vulkan &vulkan) {
|
||||||
@ -328,5 +327,4 @@ VkFramebuffer SwapChain::getFramebuffer(std::size_t index) const {
|
|||||||
|
|
||||||
VkExtent2D SwapChain::getExtent() const { return extent; }
|
VkExtent2D SwapChain::getExtent() const { return extent; }
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#include "vulkan_adapter.h"
|
#include "vulkan_adapter.h"
|
||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class SwapChain : public VkObjectWrapper {
|
class SwapChain : public VkObjectWrapper {
|
||||||
|
|
||||||
@ -54,5 +53,4 @@ class SwapChain : public VkObjectWrapper {
|
|||||||
VkExtent2D getExtent() const;
|
VkExtent2D getExtent() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include "vulkan_texture_descriptors.h"
|
#include "vulkan_texture_descriptors.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
void TextureDescriptors::allocatePool() {
|
void TextureDescriptors::allocatePool() {
|
||||||
pools.resize(pools.size() + 1);
|
pools.resize(pools.size() + 1);
|
||||||
@ -102,5 +101,4 @@ VkDescriptorSet TextureDescriptors::addTexture(VkImageView view,
|
|||||||
return descriptorSet;
|
return descriptorSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -5,8 +5,7 @@
|
|||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
#include "vulkan_descriptor_set.h"
|
#include "vulkan_descriptor_set.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
class TextureDescriptors : public DescriptorSetInterface {
|
class TextureDescriptors : public DescriptorSetInterface {
|
||||||
private:
|
private:
|
||||||
@ -25,5 +24,4 @@ class TextureDescriptors : public DescriptorSetInterface {
|
|||||||
VkDescriptorSet addTexture(VkImageView, VkSampler);
|
VkDescriptorSet addTexture(VkImageView, VkSampler);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
#include "vulkan_common.h"
|
#include "vulkan_common.h"
|
||||||
#include "vulkan_descriptor_set.h"
|
#include "vulkan_descriptor_set.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
template <typename... Entries> class Uniform : public DescriptorSetInterface {
|
template <typename... Entries> class Uniform : public DescriptorSetInterface {
|
||||||
|
|
||||||
@ -71,7 +70,6 @@ template <typename... Entries> class Uniform : public DescriptorSetInterface {
|
|||||||
void doUpdates();
|
void doUpdates();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
|
||||||
#include "vulkan_uniform.inl"
|
#include "vulkan_uniform.inl"
|
||||||
|
@ -7,8 +7,7 @@
|
|||||||
#include "vulkan_pipeline.h"
|
#include "vulkan_pipeline.h"
|
||||||
#include "vulkan_physical_device.h"
|
#include "vulkan_physical_device.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::desktop {
|
||||||
namespace desktop {
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
@ -206,5 +205,4 @@ template <typename... Entries> void Uniform<Entries...>::doUpdates() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace desktop
|
} // namespace progressia::desktop
|
||||||
} // namespace progressia
|
|
||||||
|
@ -16,8 +16,7 @@
|
|||||||
#include "logging.h"
|
#include "logging.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
std::unique_ptr<Primitive> cube1, cube2;
|
std::unique_ptr<Primitive> cube1, cube2;
|
||||||
std::unique_ptr<Texture> texture1, texture2;
|
std::unique_ptr<Texture> texture1, texture2;
|
||||||
@ -178,5 +177,4 @@ void shutdown() {
|
|||||||
debug("game shutdown complete");
|
debug("game shutdown complete");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -2,12 +2,10 @@
|
|||||||
|
|
||||||
#include "rendering.h"
|
#include "rendering.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
void initialize(GraphicsInterface &);
|
void initialize(GraphicsInterface &);
|
||||||
void renderTick();
|
void renderTick();
|
||||||
void shutdown();
|
void shutdown();
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -8,8 +8,7 @@
|
|||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
@ -165,5 +164,4 @@ detail::LogSink fatal(const char *start) { return log(LogLevel::FATAL, start); }
|
|||||||
|
|
||||||
} // namespace logging
|
} // namespace logging
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <ostream>
|
#include <ostream>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
@ -60,5 +59,4 @@ detail::LogSink fatal(const char *start = nullptr);
|
|||||||
void initializeLogging();
|
void initializeLogging();
|
||||||
void shutdownLogging();
|
void shutdownLogging();
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
namespace meta {
|
namespace meta {
|
||||||
|
|
||||||
namespace detail {
|
namespace detail {
|
||||||
@ -37,5 +36,4 @@ constexpr uint32_t VERSION_MINOR = (VERSION_NUMBER & 0x00FF00) >> 8;
|
|||||||
constexpr uint32_t VERSION_PATCH = (VERSION_NUMBER & 0x0000FF) >> 0;
|
constexpr uint32_t VERSION_PATCH = (VERSION_NUMBER & 0x0000FF) >> 0;
|
||||||
|
|
||||||
} // namespace meta
|
} // namespace meta
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,6 +3,4 @@
|
|||||||
#include "rendering/graphics_interface.h"
|
#include "rendering/graphics_interface.h"
|
||||||
#include "rendering/image.h"
|
#include "rendering/image.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {} // namespace progressia::main
|
||||||
namespace main {} // namespace main
|
|
||||||
} // namespace progressia
|
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
|
|
||||||
#include "image.h"
|
#include "image.h"
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
struct Vertex {
|
struct Vertex {
|
||||||
|
|
||||||
@ -119,5 +118,4 @@ class GraphicsInterface : private progressia::main::NonCopyable {
|
|||||||
uint64_t getLastStartedFrame();
|
uint64_t getLastStartedFrame();
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -13,8 +13,7 @@
|
|||||||
#include "../logging.h"
|
#include "../logging.h"
|
||||||
using namespace progressia::main::logging;
|
using namespace progressia::main::logging;
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
std::size_t Image::getSize() const { return data.size(); }
|
std::size_t Image::getSize() const { return data.size(); }
|
||||||
|
|
||||||
@ -59,5 +58,4 @@ Image loadImage(const std::string &path) {
|
|||||||
data};
|
data};
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -3,8 +3,7 @@
|
|||||||
#include <filesystem>
|
#include <filesystem>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
class Image {
|
class Image {
|
||||||
public:
|
public:
|
||||||
@ -21,5 +20,4 @@ class Image {
|
|||||||
|
|
||||||
Image loadImage(const std::string &);
|
Image loadImage(const std::string &);
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
@ -29,8 +29,7 @@
|
|||||||
}
|
}
|
||||||
// clang-format on
|
// clang-format on
|
||||||
|
|
||||||
namespace progressia {
|
namespace progressia::main {
|
||||||
namespace main {
|
|
||||||
|
|
||||||
struct NonCopyable {
|
struct NonCopyable {
|
||||||
NonCopyable &operator=(const NonCopyable &) = delete;
|
NonCopyable &operator=(const NonCopyable &) = delete;
|
||||||
@ -38,5 +37,4 @@ struct NonCopyable {
|
|||||||
NonCopyable() = default;
|
NonCopyable() = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace main
|
} // namespace progressia::main
|
||||||
} // namespace progressia
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user