Mark Langen
260772e374
Bootstrap decomp of Tgl rendering library ( #293 )
...
* Bootstrap decomp of D3DRM rendering code
* This PR kicks off work on decompiling the D3D Retained Mode (D3DRM)
rendering part of the codebase.
* High level overview:
* There is a base IMxDirect3DRMObject class which all of the D3DRM
rendering objects inherit from. Its only virtual method is one to get
the underlying object handle.
* A hierarchy of abstract classes inherits from this base class, which
I've called "IMxDirect3DRM<class>". These classes only have pure
virtual methods on them and don't contain any data.
* Each one of the abstract classes has exactly one concrete
implementation, which I've called "MxDirect3DRM<class>". These classes
have exactly one piece of data, which is a pointer to the underlying
D3D Retained Mode object.
* If the classes need to store additional data, they store it in a
userdata blob which is attached to the D3DRM object rather than the
additional data being stored in the class itself.
* I've worked out about twice this many classes related to D3DRM
rendering so far but the PR was getting large enough as is, so I'm
cutting it here for now.
* I decomped sufficiently many methods of these classe to convince
myself that the above observations are correct. About 60% of the
decomped methods here are perfect matches, including at least one
non-trivial method per class.
* Formatting
* Restructure changes using Tgl naming / details
* Restructure the changes to use the naming that we know from Tgl.
* Fill in some parts of the implementation I couldn't initially figure
out using the details from Tgl (got more 100% matches).
* Move d3drm link requirement
* Fixups FloatMatrix -> FloatMatrix4
* Fix order
* Full fix for ordering problems
* Put back accidentally removed include.
* Fix call which should have been Release
* Use new and delete for DeepClone
* Missing Tgl:: on CreateRenderer
* Revert change to bool return value.
* Rename Something -> Unk
* Return paramter naming convention to what Tgl used
* Add scalar ddtor to verify inline destructor
* Fix order
* Change malloc/free -> new/delete in Tgl
* Remove duplicate destructor.
* Check all inline destructors
* Fix dtor comments
* Third time's the charm
* Alphabetical sort
* Decomp adjustments
* Add d3drm files to clang-format
---------
Co-authored-by: Christian Semmler <mail@csemmler.com >
2023-12-07 13:10:42 +01:00
..
2023-12-06 13:10:45 +01:00
2023-12-07 13:10:42 +01:00
2023-12-07 13:10:42 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-11-24 12:09:53 -05:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-21 11:35:03 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-08-03 09:54:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-11-19 15:38:07 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-07 09:30:26 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-06 10:00:24 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 11:51:59 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-01 11:12:03 -04:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 08:29:24 -05:00
2023-12-06 13:10:45 +01:00
2023-11-19 13:23:30 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-07 13:06:44 +01:00
2023-12-07 13:06:44 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-28 14:26:39 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-19 13:23:30 +01:00
2023-12-06 13:10:45 +01:00
2023-11-22 02:54:08 -05:00
2023-11-19 13:23:30 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-07 14:00:00 +01:00
2023-12-06 13:10:45 +01:00
2023-11-06 10:00:24 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-10 13:05:04 -04:00
2023-10-25 01:38:27 +02:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-07 09:30:26 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-06 18:12:09 -05:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-10-25 11:51:59 -07:00
2023-10-31 11:30:13 -04:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-11-28 14:26:39 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 11:51:59 -07:00
2023-10-25 11:51:59 -07:00
2023-11-19 15:38:07 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-10-25 01:38:27 +02:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-06-29 01:10:08 -07:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00
2023-12-06 13:10:45 +01:00