Changeset 85057 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Jul 3, 2020 7:19:05 PM (4 years ago)
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/Makefile.kmk
r82968 r85057 196 196 197 197 PROGRAMS += D3DFeatureLevel 198 D3DFeatureLevel_TEMPLATE = VBOXR3 EXE198 D3DFeatureLevel_TEMPLATE = VBOXR3STATIC 199 199 D3DFeatureLevel_SDKS = ReorderCompilerIncs $(VBOX_WINDDK_GST_WLH) 200 200 D3DFeatureLevel_SOURCES = \ -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/D3DFeatureLevel.cpp
r82968 r85057 27 27 int main(int argc, char *argv[]) 28 28 { 29 HRESULT rc; 29 (void)argc, argv; 30 30 31 D3D_FEATURE_LEVEL iFeatureLevelMax = static_cast<D3D_FEATURE_LEVEL>(0); 31 32 … … 40 41 }; 41 42 42 rc = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, aiFeatureLevels,43 HRESULT rc = D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, aiFeatureLevels, 43 44 ARRAYSIZE(aiFeatureLevels), D3D11_SDK_VERSION, NULL, &iFeatureLevelMax, NULL); 44 45 45 printf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, rc);46 printf("Maximum supported feature level: 0x%X, hr=0x%X.\n", iFeatureLevelMax, (unsigned int)rc); 46 47 47 48 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.