VirtualBox-5.0.0/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
/**
 * Convert SVGA multi sample count value to its D3D equivalent
 */
Convert SVGA multi sample count value to its D3D equivalent
Convert SVGA multi sample count value to its D3D equivalent
D3DMULTISAMPLE_TYPE vmsvga3dMultipeSampleCount2D3D(uint32_t multisampleCount)
{
    AssertCompile(D3DMULTISAMPLE_2_SAMPLES == 2);
    AssertCompile(D3DMULTISAMPLE_16_SAMPLES == 16);
    if (multisampleCount > 16)
        return D3DMULTISAMPLE_NONE;
    return (D3DMULTISAMPLE_TYPE)multisampleCount;
}
D3DMULTISAMPLE_TYPE vmsvga3dMultipeSampleCount2D3D ( uint32_t multisampleCount ) { AssertCompile ( D3DMULTISAMPLE_2_SAMPLES == 2 ) ; AssertCompile ( D3DMULTISAMPLE_16_SAMPLES == 16 ) ; if ( multisampleCount > 16 ) return D3DMULTISAMPLE_NONE ; return ( D3DMULTISAMPLE_TYPE ) multisampleCount ; }
Convert SVGA multi sample count value to its D3D equivalent
Convert SVGA multi sample count value to its D3D equivalent
/* @todo exact same mapping as d3d? */