-
Notifications
You must be signed in to change notification settings - Fork 808
Add D3D12SDK class to manage choosing and configuring the SDK #7879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
You can test this locally with the following command:git-clang-format --diff bcb1bca39e5a1a1a2bbc78807633778b1f003306 f40b3fddc773a956ade735242882aa002d99c3e7 -- tools/clang/unittests/HLSLExec/ExecutionTest.cpp tools/clang/unittests/HLSLExec/HlslExecTestUtils.cpp tools/clang/unittests/HLSLExec/HlslExecTestUtils.h tools/clang/unittests/HLSLExec/LongVectors.cppView the diff from clang-format here.diff --git a/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h b/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
index bc76cbbd..692b4b86 100644
--- a/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
+++ b/tools/clang/unittests/HLSLExec/HlslExecTestUtils.h
@@ -39,11 +39,11 @@ bool useDxbc();
/// directory. Absolute path is only supported on OS's that support
/// ID3D12DeviceFactory.
///
-/// D3D12SDKVersion: requested SDK version
+/// D3D12SDKVersion: requested SDK version
///
-/// 0: auto-detect (quietly fallback to inbox version)
+/// 0: auto-detect (quietly fallback to inbox version)
///
-/// 1: auto-detect (fail if unable to use the auto-detected version)
+/// 1: auto-detect (fail if unable to use the auto-detected version)
///
/// >1: use specified version
class D3D12SDK {
|
| InitializeOpTests(void *pStrCtx, st::OutputStringFn pOutputStrFn) { | ||
| InitializeOpTests([[maybe_unused]] void *pStrCtx, | ||
| [[maybe_unused]] st::OutputStringFn pOutputStrFn) { | ||
| #ifdef _FORCE_EXPERIMENTAL_SHADERS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change my view: in the original version of this, enableExperimentalMode will always return S_FALSE and not actually do anything.
Note that InitializeOpTests is called from that GUI thing that's a bit like godbolt, so there won't be any taef runtime params to look at. As far as I can tell, _FORCE_EXPERIMENTAL_SHADERS is never defined.
Work in progress - this gets the "global" version working (global is what we have now). To do is adding the "independent device" version - this allows us to select the AgilitySDK using an absolute path which eventually will allow us to use these tests with lit without having to copy te.exe to strange places.