wined3d public api cleanup

Stefan Dösinger stefandoesinger at gmail.com
Mon Sep 14 04:33:55 CDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Am 2015-09-14 um 11:12 schrieb Riccardo Bortolato:
> About this one, what did you have in mind? an intermediate
> function that casts the correct type from a resource and calls the
> proper mapping function?
See

static const struct wined3d_texture_ops texture2d_ops = ...
static const struct wined3d_texture_ops texture3d_ops = ...

You'd have two implementations of the function. One is used for
texture2d_ops, and it calls wined3d_surface, the other one is used for
texture3d_ops and calls wined3d_volume.

Note that texture2d_ops is used for 2D and cube textures. That
shouldn't be an issue since cube textures are built out of surfaces as
well (just 6 per level instead of 1 per level).

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJV9pSDAAoJEN0/YqbEcdMwbx8QAIznfSVgjcj1uvqdfclAUWf8
4RQso4Y0txHiP7rEsjQ/CkKYQNokik2WJuG3xal2MV6QZJH2LUz9RCjZqxDCW9wT
Fqf5JoQIs89dezSDetr4/8WkQSlMu4g8n3uvmd5xe4Yiml8CMEs9wirShZR5Lo0d
oZntKmQkEvmALZiIgsxPuWZNFIUzSYfhsYZWIX8r6tCDuKoVw24vbTRGWyTUWym7
uBotGzKFHKQYcDc2CcxhPMw7pJnYMkD55v3eKHiKSAuqaWlpE5QP3V9h878Y+1pZ
k0ksGDRcGahyjsIwFn06qMr/Q8KgizUyqav081Q2yReWozClZIaQybeApOrkiMgC
oB/ByucN0O0Ucc/UZeHT42ZuVflgi47UUvZrvtKwrF7Ivz4b1pcGs5v7VARMdRkq
/+McOF+TMjoDtfE7uSP5AtxueJpa1lFc8dvOSHIrw9pwoLWUsXGk5Cl7M0jE3RZn
mI9v4eZQ7CrAQHrTMpspVbGPsFK7YwCtaxCdumpmlOvkGMNoQlyGhLb3ZpRNnJiV
kemPXPkVt8Y4ddeIB04bXnMgUAMOIJe7v/KZj9SLe1SW4HrBUvFTU5LePBgjN0/F
tEFCw/SyubgEm3d668gMNPFhKPJUuahnvLajt4syur32iuiAIG3SOvrMiVPTInpv
1vQmEEQ5lu39qSV7ILWl
=neZe
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list