vulkan: remove redundant tabs

this makes reading the source files easier
and is more in line with the rest of the löve codebase
This commit is contained in:
niki
2022-07-30 01:16:56 +02:00
parent 506cf8c210
commit 7bbc042fce
14 changed files with 3431 additions and 3425 deletions
+27 -27
View File
@@ -9,38 +9,38 @@
#include "vk_mem_alloc.h"
namespace love {
namespace graphics {
namespace vulkan {
class StreamBuffer : public love::graphics::StreamBuffer, public graphics::Volatile {
public:
StreamBuffer(graphics::Graphics* gfx, BufferUsage mode, size_t size);
virtual ~StreamBuffer();
namespace graphics {
namespace vulkan {
class StreamBuffer : public love::graphics::StreamBuffer, public graphics::Volatile {
public:
StreamBuffer(graphics::Graphics* gfx, BufferUsage mode, size_t size);
virtual ~StreamBuffer();
virtual bool loadVolatile() override;
virtual bool loadVolatile() override;
virtual void unloadVolatile() override;
virtual void unloadVolatile() override;
MapInfo map(size_t minsize) override;
size_t unmap(size_t usedSize) override;
void markUsed(size_t usedSize) override;
MapInfo map(size_t minsize) override;
size_t unmap(size_t usedSize) override;
void markUsed(size_t usedSize) override;
void nextFrame() override;
void nextFrame() override;
ptrdiff_t getHandle() const override {
return (ptrdiff_t) buffer;
}
private:
graphics::Graphics* gfx;
VmaAllocator allocator;
VmaAllocation allocation;
VmaAllocationInfo allocInfo;
VkBuffer buffer = VK_NULL_HANDLE;
size_t usedGPUMemory;
};
}
ptrdiff_t getHandle() const override {
return (ptrdiff_t) buffer;
}
}
private:
graphics::Graphics* gfx;
VmaAllocator allocator;
VmaAllocation allocation;
VmaAllocationInfo allocInfo;
VkBuffer buffer = VK_NULL_HANDLE;
size_t usedGPUMemory;
};
} // vulkan
} // graphics
} // love
#endif