third_party/virtualbox/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
/**
 * Convert SVGA texture arg data value to its D3D equivalent
 */
Convert SVGA texture arg data value to its D3D equivalent
Convert SVGA texture arg data value to its D3D equivalent
static DWORD vmsvga3dTextureArgData2D3D(uint32_t value)
{
    switch (value)
    {
    case SVGA3D_TA_CONSTANT:
        return D3DTA_CONSTANT;
    case SVGA3D_TA_PREVIOUS:
        return D3DTA_CURRENT;   
    case SVGA3D_TA_DIFFUSE:
        return D3DTA_DIFFUSE;
    case SVGA3D_TA_TEXTURE:
        return D3DTA_TEXTURE;
    case SVGA3D_TA_SPECULAR:
        return D3DTA_SPECULAR;
    default:
        AssertFailed();
        return 0;
    }
}
static DWORD vmsvga3dTextureArgData2D3D ( uint32_t value ) { switch ( value ) { case SVGA3D_TA_CONSTANT : return D3DTA_CONSTANT ; case SVGA3D_TA_PREVIOUS : return D3DTA_CURRENT ; case SVGA3D_TA_DIFFUSE : return D3DTA_DIFFUSE ; case SVGA3D_TA_TEXTURE : return D3DTA_TEXTURE ; case SVGA3D_TA_SPECULAR : return D3DTA_SPECULAR ; default : AssertFailed ( ) ; return 0 ; } }
Convert SVGA texture arg data value to its D3D equivalent
Convert SVGA texture arg data value to its D3D equivalent
/* current = previous */