summaryrefslogtreecommitdiffstats
path: root/Graphics/ShaderTools
diff options
context:
space:
mode:
authorassiduous <assiduous@diligentgraphics.com>2021-03-19 03:23:25 +0000
committerassiduous <assiduous@diligentgraphics.com>2021-03-19 03:23:25 +0000
commit59be7e52bfbde70cce0267d47d8069d2312fc578 (patch)
tree0bcf1ab9dc7615aa6b514e132a02cf9cd094cdeb /Graphics/ShaderTools
parentFixed rebase issues; updated API to version 240083 (diff)
downloadDiligentCore-59be7e52bfbde70cce0267d47d8069d2312fc578.tar.gz
DiligentCore-59be7e52bfbde70cce0267d47d8069d2312fc578.zip
Fixed Win SDK 17763 build issues
Diffstat (limited to 'Graphics/ShaderTools')
-rw-r--r--Graphics/ShaderTools/src/DXCompiler.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/Graphics/ShaderTools/src/DXCompiler.cpp b/Graphics/ShaderTools/src/DXCompiler.cpp
index 488a1e00..33d96673 100644
--- a/Graphics/ShaderTools/src/DXCompiler.cpp
+++ b/Graphics/ShaderTools/src/DXCompiler.cpp
@@ -46,6 +46,13 @@
#if D3D12_SUPPORTED
# include <d3d12shader.h>
+
+# ifndef NTDDI_WIN10_VB // First defined in Win SDK 10.0.19041.0
+# define NO_D3D_SIT_ACCELSTRUCT_FEEDBACK_TEX 1
+
+# define D3D_SIT_RTACCELERATIONSTRUCTURE static_cast<D3D_SHADER_INPUT_TYPE>(D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER + 1)
+# define D3D_SIT_UAV_FEEDBACKTEXTURE static_cast<D3D_SHADER_INPUT_TYPE>(D3D_SIT_RTACCELERATIONSTRUCTURE + 1)
+# endif
#endif
#include "HLSLUtils.hpp"
@@ -882,7 +889,11 @@ bool DXCompilerImpl::RemapResourceBindings(const TResourceBindingMap& ResourceMa
Ext.SrcBindPoint = ResDesc.BindPoint;
Ext.SrcSpace = ResDesc.Space;
+# ifdef NO_D3D_SIT_ACCELSTRUCT_FEEDBACK_TEX
+ switch (int{ResDesc.Type}) // Prevent "not a valid value for switch of enum '_D3D_SHADER_INPUT_TYPE'" warning
+# else
switch (ResDesc.Type)
+# endif
{
case D3D_SIT_CBUFFER:
Ext.Type = RES_TYPE_CBV;