mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
vulkan: adjust code styling
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
#ifndef LOVE_GRAPHICS_VULKAN_GRAPHICS_READBACK_H
|
||||
#define LOVE_GRAPHICS_VULKAN_GRAPHICS_READBACK_H
|
||||
#pragma once
|
||||
|
||||
#include "graphics/GraphicsReadback.h"
|
||||
|
||||
namespace love {
|
||||
namespace graphics {
|
||||
namespace vulkan {
|
||||
namespace love
|
||||
{
|
||||
namespace graphics
|
||||
{
|
||||
namespace vulkan
|
||||
{
|
||||
|
||||
class Graphics;
|
||||
|
||||
class GraphicsReadback : public graphics::GraphicsReadback {
|
||||
class GraphicsReadback : public graphics::GraphicsReadback
|
||||
{
|
||||
public:
|
||||
GraphicsReadback(love::graphics::Graphics* gfx, ReadbackMethod method, love::graphics::Buffer* buffer, size_t offset, size_t size, data::ByteData* dest, size_t destoffset);
|
||||
GraphicsReadback(love::graphics::Graphics* gfx, ReadbackMethod method, love::graphics::Texture* texture, int slice, int mipmap, const Rect& rect, image::ImageData* dest, int destx, int desty);
|
||||
GraphicsReadback(love::graphics::Graphics *gfx, ReadbackMethod method, love::graphics::Buffer *buffer, size_t offset, size_t size, data::ByteData *dest, size_t destoffset);
|
||||
GraphicsReadback(love::graphics::Graphics *gfx, ReadbackMethod method, love::graphics::Texture *texture, int slice, int mipmap, const Rect &rect, image::ImageData *dest, int destx, int desty);
|
||||
virtual ~GraphicsReadback();
|
||||
|
||||
void wait() override;
|
||||
@@ -20,12 +23,10 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
Graphics* vgfx;
|
||||
Graphics *vgfx = nullptr;
|
||||
StrongRef<love::graphics::Buffer> stagingBuffer;
|
||||
};
|
||||
|
||||
} // vulkan
|
||||
} // graphics
|
||||
} // love
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user