On 23 September 2014 12:55, Johannes Brandstätter jbrandst@2ds.eu wrote:
switch (map_type)
{
case D3D10_MAP_READ:
wine_map_flags = WINED3D_MAP_READONLY;
break;
case D3D10_MAP_WRITE_DISCARD:
wine_map_flags = WINED3D_MAP_DISCARD;
break;
case D3D10_MAP_WRITE_NO_OVERWRITE:
wine_map_flags = WINED3D_MAP_NOOVERWRITE;
break;
default:
FIXME("Ignoring map_type %#x.\n", map_type);
}
- }
You'll want to turn that into a helper function and use it for the other resource mapping functions as well. See also e.g. wined3d_usage_from_d3d10core() and wined3dformat_from_dxgi_format().