d3d10core: Add support for map_type flags D3D10_MAP_READ, D3D10_MAP_WRITE_NO_OVERWRITE and D3D10_MAP_DISCARD.

Henri Verbeet hverbeet at gmail.com
Wed Sep 24 06:35:54 CDT 2014


On 23 September 2014 12:55, Johannes Brandstätter <jbrandst at 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().



More information about the wine-devel mailing list