vulkan: adjust code styling

This commit is contained in:
niki
2022-09-10 17:40:46 +02:00
parent 57207606c0
commit a93d153792
22 changed files with 1268 additions and 977 deletions
+18 -13
View File
@@ -1,5 +1,4 @@
#ifndef LOVE_GRAPHICS_VULKAN_STREAMBUFFER_H
#define LOVE_GRAPHICS_VULKAN_STREAMBUFFER_H
#pragma once
#include "graphics/Volatile.h"
#include "modules/graphics/StreamBuffer.h"
@@ -7,12 +6,21 @@
#include "VulkanWrapper.h"
namespace love {
namespace graphics {
namespace vulkan {
class StreamBuffer : public love::graphics::StreamBuffer, public graphics::Volatile {
namespace love
{
namespace graphics
{
namespace vulkan
{
class Graphics;
class StreamBuffer
: public love::graphics::StreamBuffer
, public graphics::Volatile
{
public:
StreamBuffer(graphics::Graphics* gfx, BufferUsage mode, size_t size);
StreamBuffer(graphics::Graphics *gfx, BufferUsage mode, size_t size);
virtual ~StreamBuffer();
virtual bool loadVolatile() override;
@@ -25,12 +33,10 @@ public:
void nextFrame() override;
ptrdiff_t getHandle() const override {
return (ptrdiff_t) buffer;
}
ptrdiff_t getHandle() const override;
private:
graphics::Graphics* gfx;
Graphics *vgfx = nullptr;
VmaAllocator allocator;
VmaAllocation allocation;
VmaAllocationInfo allocInfo;
@@ -38,8 +44,7 @@ private:
size_t usedGPUMemory;
};
} // vulkan
} // graphics
} // love
#endif