Changeset 98141 in vbox for trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/D3DFeatureLevel.cpp
- Timestamp:
- Jan 19, 2023 2:25:46 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/D3DFeatureLevel.cpp
r98103 r98141 31 31 */ 32 32 33 #include <iprt/win/windows.h> 34 #include <D3D11.h> 35 #include <stdio.h> 33 #include <iprt/win/d3d11.h> 34 #include <iprt/stream.h> 36 35 37 int main(int argc, char * argv[])36 int main(int argc, char **argv) 38 37 { 39 (void)argc, argv;38 RT_NOREF(argc, argv); 40 39 41 40 D3D_FEATURE_LEVEL iFeatureLevelMax = static_cast<D3D_FEATURE_LEVEL>(0); 42 41 43 42 /* The list of feature levels we're selecting from. */ 44 const D3D_FEATURE_LEVEL aiFeatureLevels[] = { 43 const D3D_FEATURE_LEVEL aiFeatureLevels[] = 44 { 45 D3D_FEATURE_LEVEL_11_1, 45 46 D3D_FEATURE_LEVEL_11_0, 46 47 D3D_FEATURE_LEVEL_10_1, … … 52 53 53 54 HRESULT rc = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, aiFeatureLevels, 54 ARRAYSIZE(aiFeatureLevels), D3D11_SDK_VERSION, NULL, &iFeatureLevelMax, NULL);55 ARRAYSIZE(aiFeatureLevels), D3D11_SDK_VERSION, NULL, &iFeatureLevelMax, NULL); 55 56 56 printf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, (unsigned int)rc);57 RTPrintf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, (unsigned int)rc); 57 58 58 59 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.