Skip to content

Commit

Permalink
D3D11: drop unused str to VES mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 13, 2024
1 parent aab0c6a commit e2ff3f0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
1 change: 0 additions & 1 deletion RenderSystems/Direct3D11/include/OgreD3D11Mappings.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
27 changes: 0 additions & 27 deletions RenderSystems/Direct3D11/src/OgreD3D11Mappings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e2ff3f0

Please sign in to comment.