Граф коммитов

26 Коммитов

Автор SHA1 Сообщение Дата
Chuck Walbourn b6b858a193
Fix some CodeQL warnings (#146) 2024-11-07 14:58:59 -08:00
Chuck Walbourn 4e9aeec136
Add GitHub Actions to project to validate PRs (#145) 2024-11-07 12:37:19 -08:00
MARINA\jpmug adc8dd2aa8 Additional things.
1. Googletests subdir was added.  This requires GTest to be installed.  If it is not installed, it's skipped
2. Moved some local variables to the main file to prevent duplicate library_finds and problems that can occur with local calculations.
2023-05-31 04:25:18 -04:00
MARINA\jpmug 99ef1b8990 Fix typo. 2023-05-30 23:10:59 -04:00
MARINA\jpmug 25e84fa41e Improvements primarily for testing
1. Minor fix - add URL to pkg-config file
2. When building tests, make dxcore optional if not using "msvc"
3. programs in test directory now build even on Windows.
4. Compile DirectX-Headers-Check-Feature-Support-Test.exe if tests are on
5. Use test() statements to add DirectX-Headers-Test.exe and DirectX-Headers-Check-Feature-Support-Test.exe to "test" build target (typically invoked with something like "ninja test" or "make test".
2023-05-30 21:12:11 -04:00
MARINA\jpmug 67c11ae90f Improvements to CMake build.
1.  Do NOT install the GoogleTest files (run-time files, pkg-config files, static-link-libraries, etc.) when installing DirectX-Headers.  MSYS2 and many Linux distributions already have GoogleTest in downloadable packages.
2. Run the included tests with CTest (see: https://cmake.org/cmake/help/book/mastering-cmake/chapter/Testing%20With%20CMake%20and%20CTest.html ) to facilitate automated testing in package build processes.  This adds a BUILD_TESTING option that is standard for many CMake projects.  If that option is off, no tests are built or could be executing using CTest (a standard behavior).
2023-05-27 14:55:41 -04:00
Yonggang Luo a7d19030b8 Turn to use __uuidof, now wsl/winadapter.h are platform independent
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
2022-06-01 22:03:24 +08:00
Yonggang Luo 2e23117c45 Add c language support
IID_IUnknown exposed to align with C++
Add IID_IUnknown symbol existence check test

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
2022-06-01 20:31:16 +08:00
Yonggang Luo 5a8ee7d676 There is no dxcore for mingw yet 2022-06-01 20:31:15 +08:00
Chuck Walbourn 1a0c980fce
CMake Presets added for Intel compilers (#64) 2022-05-11 16:12:23 -07:00
Chuck Walbourn 1b79ddaeab
Add CMakePresets.json (#56) 2022-05-02 15:12:10 -07:00
Chuck Walbourn a277f94bfd
Update for Agility SDK 1.602.0 (#53) 2022-04-29 13:49:37 -07:00
Wenxiang Hu 96a873e0b4 Fix coding stype problems with brace; 2022-03-12 00:23:44 +08:00
Wenxiang Hu e2ab2eee82 Fix some type; Refine main() logic from test; 2022-03-12 00:15:50 +08:00
Wenxiang Hu e6f2b48fb5
Make the tests compatible with WSL
1. Changed CMakeLists.txt in test/ and googletest/ to make it easier to find libd3d12.so and libdxcore.so in WSL;
2. Changed main function in test/feature_check_test.cpp to support enumeration of all supported adapters;
3. Fix OS specific problem for test under googletest/;
2022-03-11 18:05:35 +08:00
Kai 9c88d6c37b D3D12_FEATURE_DATA_D3D12_OPTIONS12 API support for CD3DX12FeatureSupport
- Added API support for D3D12_FEATURE_DATA_D3D12_OPTIONS12 in CD3DX12FeatureSupport.
- Added feature support/check tests.
- Removed usage of D3D12_SHARED_RESOURCE_COMPATIBILITY_TIER_3 as they were removed in the new header.
- Updated FetchContent_Declare for googletest to use the main branch, master branch no longer exists.
2021-12-14 22:48:30 -05:00
Sil Vilerino 0644e7014f
Fixed Video Encode input/output GetCodecProfile/GetCodecLevel/GetCodecConfiguration parameter annotations (#39) 2021-11-09 08:44:07 -08:00
Yizhou Sheng af4986b231 Removed unnecessary comments. Minor fix for FormatInfo default behavior 2021-08-05 01:15:41 -07:00
Yizhou Sheng f17ea20bd7
Test Suite for the new Feature Support APIs (#3)
* Implement the second half of feature checks and update the sanity test.

* Squashed commit of the following:

commit a917854d2b
Author: Yizhou Sheng <t-yisheng@microsoft.com>
Date:   Thu Jul 8 18:01:57 2021 -0700

    Optimized procedure to check Architecture support. Removed m_hStatus assignment in macros.

* Updated initialization procedures

* Remove duplicate checks.

* Set up Google Test framework

* Updated git submodule config

* Set up MockDevice. Implement functions that won't be used.

* Remove outdated comments and unnecessary test setup.

* Modified MockDevice to store cap info locally. Implemented part of the test suite.

* Rename loop variables. Fix duplicate cap check logic.

- Fixed an issue with caps that exist in more than one feature. See the following comments for details.
- Renamed loop variables to be more descriptive.
- Use TIER_0 as default values for applicable caps.
- Minor format fix.

* Removed unnecessary comments

* Add tests for features up to Options8

* Complete Google Test suite.

* Add ProtectedResourceSessionTypes cascade test case. Minor format fixes.

* Renamed Feature Level API. Add verification to the manual example/test

* Renamed Multinode tests. Add inline comments.

* Update googletest/cmakelists.txt to use MTd flag instead of MDd
2021-08-04 01:32:10 -07:00
Yizhou Sheng 9aed6f37f9
Feature Support API (Part 2) (#2)
* Implement the second half of feature checks and update the sanity test.

* Squashed commit of the following:

commit a917854d2b
Author: Yizhou Sheng <t-yisheng@microsoft.com>
Date:   Thu Jul 8 18:01:57 2021 -0700

    Optimized procedure to check Architecture support. Removed m_hStatus assignment in macros.

* Updated initialization procedures

* Remove duplicate checks.

* Remove outdated comments and unnecessary test setup.

* Rename loop variables. Fix duplicate cap check logic.

- Fixed an issue with caps that exist in more than one feature. See the following comments for details.
- Renamed loop variables to be more descriptive.
- Use TIER_0 as default values for applicable caps.
- Minor format fix.

* Remove redundant functions and constructors. Reformatted code

- Kept only the default constructor and the Init() function. Removed Create() and the customized constructor.
- Removed a duplicate SharedResourceCompatibilityTier getter function from the Displayable feature.
- Moved opening curly braces to new lines.
- Separate function declaration from definition. Moved definition out of the class.
- Replaced some macros with actual code.
- Updated basic test files.
2021-07-26 16:14:55 -07:00
Yizhou Sheng 8609160bda Added preprocessor options to turn on/off <variant>. Fix logic errors in SHADER_MODEL and ROOT_SIGNATURE 2021-07-12 14:09:33 -07:00
Yizhou Sheng a917854d2b Optimized procedure to check Architecture support. Removed m_hStatus assignment in macros. 2021-07-08 18:01:57 -07:00
Yizhou Sheng ac6f7f3b6a Revision based on comments.
- Removed m_hStatus update from Create
- Simplified FEATURE_LEVEL checking
- Removed input parameters from ROOT_SIGNATURE and SHADER_MODEL
2021-07-08 12:22:47 -07:00
Yizhou Sheng 03cb4b0978 Update existing feature checks
- Added comments to Macros
- Create a default constructor that sets device pointer to null and status to a predefined error code.
- Init function now takes in a pointer to the device
- Stores errors in m_hStatus during failed initialization
- Improved checking routines for feature checks requiring hints, including ShaderModel, RootSignature and FeatureLevels
- Add Undefs for macros at the end of class definition
2021-07-01 20:59:23 -07:00
Yizhou Sheng 8e5e9067a8 Added the CD3DX12FeatureSupport class
- Added a class to handle feature support checks
- Implemented half of the feature checks
- Added D3D12_HIGHEST_SHADER_MODEL and D3D12_HIGHEST_ROOT_SIGNATURE_VERSION to help identify the highest versions in the d3d12.h header
- Added a test (feature_check_test.cpp) to ensure that the code compiles and is functioning properly (not a rigorous test case)
- Modified CMakeLists to include the new test
2021-06-29 16:00:52 -07:00
Jesse Natalie 1ec6cd7171 Initial commit 2020-12-04 15:54:22 -08:00