VirtualBox-5.0.0/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
/**
 * Convert SVGA texture transform flag value to its D3D equivalent
 */
Convert SVGA texture transform flag value to its D3D equivalent
Convert SVGA texture transform flag value to its D3D equivalent
static DWORD vmsvga3dTextTransformFlags2D3D(uint32_t value)
{
    switch (value)
    {
    case SVGA3D_TEX_TRANSFORM_OFF:
        return D3DTTFF_DISABLE;
    case SVGA3D_TEX_TRANSFORM_S:
        return D3DTTFF_COUNT1;      
    case SVGA3D_TEX_TRANSFORM_T:
        return D3DTTFF_COUNT2;      
    case SVGA3D_TEX_TRANSFORM_R:
        return D3DTTFF_COUNT3;      
    case SVGA3D_TEX_TRANSFORM_Q:
        return D3DTTFF_COUNT4;      
    case SVGA3D_TEX_PROJECTED:
        return D3DTTFF_PROJECTED;
    default:
        AssertFailed();
        return 0;
    }
}
static DWORD vmsvga3dTextTransformFlags2D3D ( uint32_t value ) { switch ( value ) { case SVGA3D_TEX_TRANSFORM_OFF : return D3DTTFF_DISABLE ; case SVGA3D_TEX_TRANSFORM_S : return D3DTTFF_COUNT1 ; case SVGA3D_TEX_TRANSFORM_T : return D3DTTFF_COUNT2 ; case SVGA3D_TEX_TRANSFORM_R : return D3DTTFF_COUNT3 ; case SVGA3D_TEX_TRANSFORM_Q : return D3DTTFF_COUNT4 ; case SVGA3D_TEX_PROJECTED : return D3DTTFF_PROJECTED ; default : AssertFailed ( ) ; return 0 ; } }
Convert SVGA texture transform flag value to its D3D equivalent
Convert SVGA texture transform flag value to its D3D equivalent
/* @todo correct? */ /* @todo correct? */ /* @todo correct? */ /* @todo correct? */