Browse Source

[REFACTOR] Rename a method

Panagiotis Christopoulos Charitos 8 years ago
parent
commit
222f002c0d
2 changed files with 5 additions and 14 deletions
  1. 4 6
      src/anki/gr/CommandBuffer.h
  2. 1 8
      src/anki/gr/vulkan/CommandBuffer.cpp

+ 4 - 6
src/anki/gr/CommandBuffer.h

@@ -306,12 +306,10 @@ public:
 	/// @param texView The texture view to generate mips.
 	void generateMipmaps3d(TextureViewPtr tex);
 
-	// TODO Rename to blit
-	void copyTextureSurfaceToTextureSurface(
-		TexturePtr src, const TextureSurfaceInfo& srcSurf, TexturePtr dest, const TextureSurfaceInfo& destSurf);
-
-	void copyTextureVolumeToTextureVolume(
-		TexturePtr src, const TextureVolumeInfo& srcVol, TexturePtr dest, const TextureVolumeInfo& destVol);
+	/// Blit from surface to surface.
+	/// @param srcView The source view that points to a surface.
+	/// @param dstView The destination view that points to a surface.
+	void blitTextureViews(TextureViewPtr srcView, TextureViewPtr destView);
 
 	/// Clear a single texture surface. Can be used for all textures except 3D.
 	/// @param[in,out] texView The texture view to clear.

+ 1 - 8
src/anki/gr/vulkan/CommandBuffer.cpp

@@ -270,14 +270,7 @@ void CommandBuffer::generateMipmaps3d(TextureViewPtr texView)
 	ANKI_ASSERT(!"TODO");
 }
 
-void CommandBuffer::copyTextureSurfaceToTextureSurface(
-	TexturePtr src, const TextureSurfaceInfo& srcSurf, TexturePtr dest, const TextureSurfaceInfo& destSurf)
-{
-	ANKI_ASSERT(!"TODO");
-}
-
-void CommandBuffer::copyTextureVolumeToTextureVolume(
-	TexturePtr src, const TextureVolumeInfo& srcVol, TexturePtr dest, const TextureVolumeInfo& destVol)
+void CommandBuffer::blitTextureViews(TextureViewPtr srcView, TextureViewPtr destView)
 {
 	ANKI_ASSERT(!"TODO");
 }