File tree Expand file tree Collapse file tree
tools/clang/unittests/HLSLExec Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#pragma once
22
3+ #if HAVE_COOPVEC_API
4+
35#include < DirectXMath.h>
46#include < DirectXPackedVector.h>
57#include < vector>
@@ -353,4 +355,6 @@ GetMatrixSrcDataType(D3D12_LINEAR_ALGEBRA_DATATYPE MatrixInterpretation) {
353355 return D3D12_LINEAR_ALGEBRA_DATATYPE_FLOAT32;
354356 }
355357}
356- }; // namespace CoopVecHelpers
358+ }; // namespace CoopVecHelpers
359+
360+ #endif // HAVE_COOPVEC_API
Original file line number Diff line number Diff line change 6464#include <libloaderapi.h>
6565#include <DirectXPackedVector.h>
6666#include "LongVectors.h"
67- #include "CoopVec.h"
6867#include "CoopVecAPI.h"
68+ #include "CoopVec.h"
6969// clang-format on
7070
7171#pragma comment(lib, "d3dcompiler.lib")
@@ -1904,10 +1904,12 @@ class ExecutionTest {
19041904 std::vector<UUID> Features;
19051905
19061906 Features.push_back(D3D12ExperimentalShaderModels);
1907+
1908+ #if HAVE_COOPVEC_API
19071909 if (GetTestParamBool(L"CooperativeVectorExperimental")) {
19081910 Features.push_back(D3D12CooperativeVectorExperiment);
19091911 }
1910-
1912+ #endif
19111913 return pD3D12EnableExperimentalFeatures((UINT)Features.size(),
19121914 Features.data(), nullptr, nullptr);
19131915 }
You can’t perform that action at this time.
0 commit comments