Browse Source

Minor cleanup

Panagiotis Christopoulos Charitos 8 years ago
parent
commit
7255c2414e
1 changed files with 0 additions and 32 deletions
  1. 0 32
      src/anki/gr/common/Misc.h

+ 0 - 32
src/anki/gr/common/Misc.h

@@ -10,38 +10,6 @@
 namespace anki
 namespace anki
 {
 {
 
 
-enum class TransientBufferType
-{
-	UNIFORM,
-	STORAGE,
-	VERTEX,
-	TRANSFER,
-	COUNT
-};
-ANKI_ENUM_ALLOW_NUMERIC_OPERATIONS(TransientBufferType, inline)
-
-/// Convert buff usage to TransientBufferType.
-inline TransientBufferType bufferUsageToTransient(BufferUsageBit bit)
-{
-	if(!!(bit & BufferUsageBit::UNIFORM_ALL))
-	{
-		return TransientBufferType::UNIFORM;
-	}
-	else if(!!(bit & BufferUsageBit::STORAGE_ALL))
-	{
-		return TransientBufferType::STORAGE;
-	}
-	else if((bit & BufferUsageBit::VERTEX) != BufferUsageBit::NONE)
-	{
-		return TransientBufferType::VERTEX;
-	}
-	else
-	{
-		ANKI_ASSERT(!!(bit & (BufferUsageBit::BUFFER_UPLOAD_SOURCE | BufferUsageBit::TEXTURE_UPLOAD_SOURCE)));
-		return TransientBufferType::TRANSFER;
-	}
-}
-
 /// Internal function that logs a shader error.
 /// Internal function that logs a shader error.
 void logShaderErrorCode(const CString& error, const CString& source, GenericMemoryPoolAllocator<U8> alloc);
 void logShaderErrorCode(const CString& error, const CString& source, GenericMemoryPoolAllocator<U8> alloc);