VirtualBox

Ignore:
Timestamp:
Jan 19, 2023 2:25:46 PM (2 years ago)
Author:
vboxsync
Message:

Add/WinNT/Graphics: Converted some optionally compiled 3D related tests and windbg extensions from VBOXR3STATIC to more appropriate templates and made them build again. Guard is now called VBOX_WITH_VBOXVIDEOWINDBG. bugref:10348

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dbg/D3DFeatureLevel.cpp

    r98103 r98141  
    3131 */
    3232
    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>
    3635
    37 int main(int argc, char *argv[])
     36int main(int argc, char **argv)
    3837{
    39     (void)argc, argv;
     38    RT_NOREF(argc, argv);
    4039
    4140    D3D_FEATURE_LEVEL iFeatureLevelMax = static_cast<D3D_FEATURE_LEVEL>(0);
    4241
    4342    /* 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,
    4546        D3D_FEATURE_LEVEL_11_0,
    4647        D3D_FEATURE_LEVEL_10_1,
     
    5253
    5354    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);
    5556
    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);
    5758
    5859    return rc;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette