mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
add skeleton for vulkan texture impl
This commit is contained in:
@@ -582,6 +582,8 @@ set(LOVE_SRC_MODULE_GRAPHICS_VULKAN
|
|||||||
src/modules/graphics/vulkan/StreamBuffer.cpp
|
src/modules/graphics/vulkan/StreamBuffer.cpp
|
||||||
src/modules/graphics/vulkan/Buffer.h
|
src/modules/graphics/vulkan/Buffer.h
|
||||||
src/modules/graphics/vulkan/Buffer.cpp
|
src/modules/graphics/vulkan/Buffer.cpp
|
||||||
|
src/modules/graphics/vulkan/Texture.h
|
||||||
|
src/modules/graphics/vulkan/Texture.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
set(LOVE_SRC_MODULE_GRAPHICS
|
set(LOVE_SRC_MODULE_GRAPHICS
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
#include "Texture.h"
|
||||||
|
|
||||||
|
namespace love {
|
||||||
|
namespace graphics {
|
||||||
|
namespace vulkan {
|
||||||
|
Texture::Texture(love::graphics::Graphics* gfx, const Settings& settings, const Slices* data)
|
||||||
|
: love::graphics::Texture(gfx, settings, data) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,24 @@
|
|||||||
|
#include "graphics/Texture.h"
|
||||||
|
|
||||||
|
|
||||||
|
namespace love {
|
||||||
|
namespace graphics {
|
||||||
|
namespace vulkan {
|
||||||
|
class Texture : public graphics::Texture {
|
||||||
|
public:
|
||||||
|
Texture(love::graphics::Graphics* gfx, const Settings& settings, const Slices* data);
|
||||||
|
|
||||||
|
void copyFromBuffer(Buffer* source, size_t sourceoffset, int sourcewidth, size_t size, int slice, int mipmap, const Rect& rect) override {};
|
||||||
|
void copyToBuffer(Buffer* dest, int slice, int mipmap, const Rect& rect, size_t destoffset, int destwidth, size_t size) override {};
|
||||||
|
|
||||||
|
ptrdiff_t getRenderTargetHandle() const override {};
|
||||||
|
ptrdiff_t getSamplerHandle() const override {};
|
||||||
|
|
||||||
|
void uploadByteData(PixelFormat pixelformat, const void* data, size_t size, int level, int slice, const Rect& r) override {};
|
||||||
|
|
||||||
|
void generateMipmapsInternal() override {};
|
||||||
|
void readbackImageData(love::image::ImageData* imagedata, int slice, int mipmap, const Rect& rect) override {};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user