Fixed Windows 8.1 build issue and a couple of clang warnings
assiduous
2 years ago
43 | 43 | #include "DXCompiler.hpp" |
44 | 44 | #include "HLSLUtils.hpp" |
45 | 45 | #include "BasicMath.hpp" |
46 | ||
47 | #ifndef D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES | |
48 | # define D3DCOMPILE_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20) | |
49 | #endif | |
46 | 50 | |
47 | 51 | namespace Diligent |
48 | 52 | { |
780 | 780 | UseReducedUAVCount = true; |
781 | 781 | break; |
782 | 782 | } |
783 | ||
784 | case RENDER_DEVICE_TYPE_D3D12: | |
785 | case RENDER_DEVICE_TYPE_METAL: | |
786 | break; | |
787 | ||
788 | default: | |
789 | UNEXPECTED("Unexpected device type"); | |
783 | 790 | } |
784 | 791 | |
785 | 792 | // Prepare buffers with reference values |
981 | 988 | UseReducedUAVCount = true; |
982 | 989 | break; |
983 | 990 | } |
991 | ||
992 | case RENDER_DEVICE_TYPE_D3D12: | |
993 | case RENDER_DEVICE_TYPE_METAL: | |
994 | break; | |
995 | ||
996 | default: | |
997 | UNEXPECTED("Unexpected device type"); | |
984 | 998 | } |
985 | 999 | |
986 | 1000 | const Uint32 StaticTexArraySize = MaxStaticTexArraySize; |