Skip to content

Commit dbe5299

Browse files
committed
[D3D] Fixed build error in DXShaderReflection.cpp
1 parent aa82b8d commit dbe5299

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

sources/Renderer/DXCommon/DXShaderReflection.cpp

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#include "DXShaderReflection.h"
9+
#include <d3dcommon.h>
910

1011

1112
namespace LLGL
@@ -64,35 +65,32 @@ UniformType MapD3DShaderScalarTypeToUniformType(D3D_SHADER_VARIABLE_TYPE type)
6465
{
6566
switch (type)
6667
{
67-
case D3D_SVT_BOOL: return UniformType::Bool1;
68-
case D3D_SVT_FLOAT: /*pass*/
69-
case D3D_SVT_FLOAT16: return UniformType::Float1;
70-
case D3D_SVT_INT: return UniformType::Int1;
71-
case D3D_SVT_UINT: return UniformType::UInt1;
72-
default: return UniformType::Undefined;
68+
case D3D_SVT_BOOL: return UniformType::Bool1;
69+
case D3D_SVT_FLOAT: return UniformType::Float1;
70+
case D3D_SVT_INT: return UniformType::Int1;
71+
case D3D_SVT_UINT: return UniformType::UInt1;
72+
default: return UniformType::Undefined;
7373
}
7474
}
7575

7676
UniformType MapD3DShaderVectorTypeToUniformType(D3D_SHADER_VARIABLE_TYPE type, UINT elements)
7777
{
7878
switch (type)
7979
{
80-
case D3D_SVT_BOOL: return MakeUniformVectorType(UniformType::Bool1, elements);
81-
case D3D_SVT_FLOAT: /*pass*/
82-
case D3D_SVT_FLOAT16: return MakeUniformVectorType(UniformType::Float1, elements);
83-
case D3D_SVT_INT: return MakeUniformVectorType(UniformType::Int1, elements);
84-
case D3D_SVT_UINT: return MakeUniformVectorType(UniformType::UInt1, elements);
85-
default: return UniformType::Undefined;
80+
case D3D_SVT_BOOL: return MakeUniformVectorType(UniformType::Bool1, elements);
81+
case D3D_SVT_FLOAT: return MakeUniformVectorType(UniformType::Float1, elements);
82+
case D3D_SVT_INT: return MakeUniformVectorType(UniformType::Int1, elements);
83+
case D3D_SVT_UINT: return MakeUniformVectorType(UniformType::UInt1, elements);
84+
default: return UniformType::Undefined;
8685
}
8786
}
8887

8988
UniformType MapD3DShaderMatrixTypeToUniformType(D3D_SHADER_VARIABLE_TYPE type, UINT rows, UINT cols)
9089
{
9190
switch (type)
9291
{
93-
case D3D_SVT_FLOAT: /*pass*/
94-
case D3D_SVT_FLOAT16: return MakeUniformMatrixType(UniformType::Float2x2, rows, cols);
95-
default: return UniformType::Undefined;
92+
case D3D_SVT_FLOAT: return MakeUniformMatrixType(UniformType::Float2x2, rows, cols);
93+
default: return UniformType::Undefined;
9694
}
9795
}
9896

0 commit comments

Comments
 (0)