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
+36 -36
View File
@@ -10,50 +10,50 @@
namespace love {
namespace graphics {
namespace vulkan {
class Texture : public graphics::Texture, public Volatile {
public:
Texture(love::graphics::Graphics* gfx, const Settings& settings, const Slices* data);
~Texture();
namespace graphics {
namespace vulkan {
class Texture : public graphics::Texture, public Volatile {
public:
Texture(love::graphics::Graphics* gfx, const Settings& settings, const Slices* data);
~Texture();
virtual bool loadVolatile() override;
virtual void unloadVolatile() override;
virtual bool loadVolatile() override;
virtual void unloadVolatile() override;
void copyFromBuffer(graphics::Buffer* source, size_t sourceoffset, int sourcewidth, size_t size, int slice, int mipmap, const Rect& rect) override { };
void copyToBuffer(graphics::Buffer* dest, int slice, int mipmap, const Rect& rect, size_t destoffset, int destwidth, size_t size) override { };
void copyFromBuffer(graphics::Buffer* source, size_t sourceoffset, int sourcewidth, size_t size, int slice, int mipmap, const Rect& rect) override { };
void copyToBuffer(graphics::Buffer* dest, int slice, int mipmap, const Rect& rect, size_t destoffset, int destwidth, size_t size) override { };
ptrdiff_t getRenderTargetHandle() const override { return (ptrdiff_t)textureImage; };
ptrdiff_t getSamplerHandle() const override { return (ptrdiff_t)textureSampler; };
ptrdiff_t getRenderTargetHandle() const override { return (ptrdiff_t)textureImage; };
ptrdiff_t getSamplerHandle() const override { return (ptrdiff_t)textureSampler; };
void uploadByteData(PixelFormat pixelformat, const void* data, size_t size, int level, int slice, const Rect& r) override;
void uploadByteData(PixelFormat pixelformat, const void* data, size_t size, int level, int slice, const Rect& r) override;
void generateMipmapsInternal() override { };
void generateMipmapsInternal() override { };
int getMSAA() const override { return 0; };
ptrdiff_t getHandle() const override { return (ptrdiff_t)textureImage; }
VkImageView getImageView() const { return textureImageView; }
VkSampler getSampler() const { return textureSampler; }
int getMSAA() const override { return 0; };
ptrdiff_t getHandle() const override { return (ptrdiff_t)textureImage; }
VkImageView getImageView() const { return textureImageView; }
VkSampler getSampler() const { return textureSampler; }
private:
void transitionImageLayout(VkImage, VkImageLayout oldLayout, VkImageLayout newLayout);
void createTextureImageView();
void createTextureSampler();
void clear(bool white);
private:
void transitionImageLayout(VkImage, VkImageLayout oldLayout, VkImageLayout newLayout);
void createTextureImageView();
void createTextureSampler();
void clear(bool white);
VkClearColorValue getClearValue(bool white);
VkClearColorValue getClearValue(bool white);
graphics::Graphics* gfx;
VkDevice device;
VmaAllocator allocator;
VkImage textureImage = VK_NULL_HANDLE;
VmaAllocation textureImageAllocation;
VkImageView textureImageView;
VkSampler textureSampler;
const Slices* data;
};
}
}
}
graphics::Graphics* gfx;
VkDevice device;
VmaAllocator allocator;
VkImage textureImage = VK_NULL_HANDLE;
VmaAllocation textureImageAllocation;
VkImageView textureImageView;
VkSampler textureSampler;
const Slices* data;
};
} // vulkan
} // graphics
} // love
#endif