Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

D3D11: drop unused str to VES mapping #3191

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading