Fixed Win SDK 17763 build issues
assiduous
2 years ago
40 | 40 |
#include <algorithm>
|
41 | 41 |
#include <d3d12.h>
|
42 | 42 |
|
|
43 |
#ifndef NTDDI_WIN10_VB // First defined in Win SDK 10.0.19041.0
|
|
44 |
# define D3D12_INDIRECT_ARGUMENT_TYPE_DISPATCH_RAYS static_cast<D3D12_INDIRECT_ARGUMENT_TYPE>(D3D12_INDIRECT_ARGUMENT_TYPE_UNORDERED_ACCESS_VIEW + 1)
|
|
45 |
# define D3D12_RAYTRACING_TIER_1_1 static_cast<D3D12_RAYTRACING_TIER>(11)
|
|
46 |
#endif
|
|
47 |
|
|
48 |
|
43 | 49 |
#include "PlatformDefinitions.h"
|
44 | 50 |
#include "Errors.hpp"
|
45 | 51 |
#include "RefCntAutoPtr.hpp"
|
45 | 45 |
|
46 | 46 |
#if D3D12_SUPPORTED
|
47 | 47 |
# include <d3d12shader.h>
|
|
48 |
|
|
49 |
# ifndef NTDDI_WIN10_VB // First defined in Win SDK 10.0.19041.0
|
|
50 |
# define NO_D3D_SIT_ACCELSTRUCT_FEEDBACK_TEX 1
|
|
51 |
|
|
52 |
# define D3D_SIT_RTACCELERATIONSTRUCTURE static_cast<D3D_SHADER_INPUT_TYPE>(D3D_SIT_UAV_RWSTRUCTURED_WITH_COUNTER + 1)
|
|
53 |
# define D3D_SIT_UAV_FEEDBACKTEXTURE static_cast<D3D_SHADER_INPUT_TYPE>(D3D_SIT_RTACCELERATIONSTRUCTURE + 1)
|
|
54 |
# endif
|
48 | 55 |
#endif
|
49 | 56 |
|
50 | 57 |
#include "HLSLUtils.hpp"
|
|
881 | 888 |
Ext.SrcBindPoint = ResDesc.BindPoint;
|
882 | 889 |
Ext.SrcSpace = ResDesc.Space;
|
883 | 890 |
|
|
891 |
# ifdef NO_D3D_SIT_ACCELSTRUCT_FEEDBACK_TEX
|
|
892 |
switch (int{ResDesc.Type}) // Prevent "not a valid value for switch of enum '_D3D_SHADER_INPUT_TYPE'" warning
|
|
893 |
# else
|
884 | 894 |
switch (ResDesc.Type)
|
|
895 |
# endif
|
885 | 896 |
{
|
886 | 897 |
case D3D_SIT_CBUFFER:
|
887 | 898 |
Ext.Type = RES_TYPE_CBV;
|