Valve has released a Direct3D to OpenGL translator (for a subset of Direct3D 9.0c)

Stefan Dösinger stefandoesinger at gmail.com
Wed Mar 12 08:28:34 CDT 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 2014-03-11 19:02, schrieb Artem S. Tashkinov:
> Hi,
> 
> Just wanted to let everyone know that Valve has released a
> Direct3D to OpenGL translator (for a subset of Direct3D 9.0c).
> 
> More here: https://github.com/ValveSoftware/ToGL
> 
> I don't know if it's of any use for Wine development however.
No, it's not. It is *very* limited. It doesn't even have stateblock
interface declaration, and it's surface implementation is pretty much
nonexistent. It doesn't care about any of the corner cases that make
d3d9 interesting.

Note that this is not an exhaustive review of this code. It's just the
first two things I found in a 2 minute look.

Those limitations make sense as design decisions for Valve's purposes,
but they make this wrapper useless for anything other than a cheap
compile-time abstraction layer between d3d and gl. Releasing this code
may be useful for other developers who want to port a game to Linux
though.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBAgAGBQJTIGECAAoJEN0/YqbEcdMwjBIP/3cexlG4jxkY2UGOQAsZv30s
1gxKGXFQkqkUSmdeysvwLwNiyQrXlOURyiZnIlCrWkazngZ7/ew9bKBN0frUfmRM
Uf1SQF+69mWOWYg06why5M29g+JJswVpROSlgjKl+5/sUErlKPuv7W2OMF/IJtIm
FTVBsAGhC9LbECO7L5SeLejHLAU992A7EdW4zhB63S6bRgkbgKofKXF5/A1sQZ9G
5Q1XlsF57c7bH+Qvp6yCBiPoVy7VEywoRtCYGhZ3w1XpbxGosKnqvVyyiWBO0jUY
QvCXmjvHM8gme5MJZdsmGWLWWD9lwUPjrOdJa8r+CRqnql3dlmLNDIen/weRp0Gh
LDzMUc958E6/iWjH5XzGL2fg74uXKdha3kG06eOAH0IVVhpJKqM7/nqZj/99egNk
Pw0fVnnuiamckNA8qofSp31uJdYkS2STJFOAg6ILiJvxbgWRIbKd++DKAf1Y+VkP
N80YpHpR87SSBwAKrOEBePBD+HYlvYnf62zEbl+72F4QoL1ZazgrPt+MqS4cXiIf
8Fjs6Fo8LTt3+DZvb2NqmOoSdtsiM+J3bbPat5SlT78wyNK5ruLqS6sgyBzFgTPD
OEsbklXKIz7/IRitwRSyo3Vv50J1kbmhhwdqtwZd3HJB8Gcr5086hPdKOZE/v8VJ
wcQlGlCFGL+mQnIjO8o2
=gkPd
-----END PGP SIGNATURE-----



More information about the wine-devel mailing list