Browse Source

add skeleton for vulkan texture impl

niki 3 years ago
parent
commit
77f1af598d
3 changed files with 37 additions and 0 deletions
  1. 2 0
      CMakeLists.txt
  2. 11 0
      src/modules/graphics/vulkan/Texture.cpp
  3. 24 0
      src/modules/graphics/vulkan/Texture.h

+ 2 - 0
CMakeLists.txt

@@ -582,6 +582,8 @@ set(LOVE_SRC_MODULE_GRAPHICS_VULKAN
 	src/modules/graphics/vulkan/StreamBuffer.cpp
 	src/modules/graphics/vulkan/Buffer.h
 	src/modules/graphics/vulkan/Buffer.cpp
+	src/modules/graphics/vulkan/Texture.h
+	src/modules/graphics/vulkan/Texture.cpp
 )
 
 set(LOVE_SRC_MODULE_GRAPHICS

+ 11 - 0
src/modules/graphics/vulkan/Texture.cpp

@@ -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) {
+			}
+		}
+	}
+}

+ 24 - 0
src/modules/graphics/vulkan/Texture.h

@@ -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 {};
+			};
+		}
+	}
+}