From e2ff3f0f8cbb26c57fe4c83ca475b646a31b0762 Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Mon, 12 Aug 2024 15:25:33 +0200 Subject: [PATCH] D3D11: drop unused str to VES mapping --- .../Direct3D11/include/OgreD3D11Mappings.h | 1 - .../Direct3D11/src/OgreD3D11Mappings.cpp | 27 ------------------- 2 files changed, 28 deletions(-) diff --git a/RenderSystems/Direct3D11/include/OgreD3D11Mappings.h b/RenderSystems/Direct3D11/include/OgreD3D11Mappings.h index 439c9c88585..989b7e7eb24 100644 --- a/RenderSystems/Direct3D11/include/OgreD3D11Mappings.h +++ b/RenderSystems/Direct3D11/include/OgreD3D11Mappings.h @@ -62,7 +62,6 @@ namespace Ogre static DXGI_FORMAT get(VertexElementType vType); /// Get vertex semantic static LPCSTR get(VertexElementSemantic sem); - static VertexElementSemantic get(LPCSTR sem); /// utility method, generates Ogre PixelBox using usual parameters and dataPtr/rowPitch/slicePitch from D3D11_MAPPED_SUBRESOURCE static PixelBox getPixelBoxWithMapping(D3D11_BOX extents, DXGI_FORMAT pixelFormat, const D3D11_MAPPED_SUBRESOURCE& mapping); diff --git a/RenderSystems/Direct3D11/src/OgreD3D11Mappings.cpp b/RenderSystems/Direct3D11/src/OgreD3D11Mappings.cpp index 5595b8acb6f..cba7e2bfb3d 100644 --- a/RenderSystems/Direct3D11/src/OgreD3D11Mappings.cpp +++ b/RenderSystems/Direct3D11/src/OgreD3D11Mappings.cpp @@ -355,33 +355,6 @@ namespace Ogre return DXGI_FORMAT_R32G32B32_FLOAT; } //--------------------------------------------------------------------- - VertexElementSemantic D3D11Mappings::get(LPCSTR sem) - { - // todo - add to ogre - POSITIONT and PSIZE ("Transformed vertex position" and "Point size") - - if( strcmp(sem, "BLENDINDICES") == 0 ) - return VES_BLEND_INDICES; - if( strcmp(sem, "BLENDWEIGHT") == 0 ) - return VES_BLEND_WEIGHTS; - if( strcmp(sem, "COLOR") == 0 ) - return VES_DIFFUSE; -// if( strcmp(sem, "COLOR") == 0 ) -// return VES_SPECULAR; - if( strcmp(sem, "NORMAL") == 0 ) - return VES_NORMAL; - if( strcmp(sem, "POSITION") == 0 ) - return VES_POSITION; - if( strcmp(sem, "TEXCOORD") == 0 ) - return VES_TEXTURE_COORDINATES; - if( strcmp(sem, "BINORMAL") == 0 ) - return VES_BINORMAL; - if( strcmp(sem, "TANGENT") == 0 ) - return VES_TANGENT; - - // to keep compiler happy - return VES_POSITION; - } - //--------------------------------------------------------------------- LPCSTR D3D11Mappings::get(VertexElementSemantic sem) { // todo - add to ogre - POSITIONT and PSIZE ("Transformed vertex position" and "Point size")