mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
Here, we implement single inheritance by inserting a field at the beginning of the derived struct with name "$super". For the following struct declarations struct a { float4 aa; float4 bb; }; struct b : a { float4 cc; }; struct c : b { float4 bb; }; this commit generates the following: struct a { float4 aa; float4 bb; }; struct b { struct a $super; float4 cc; }; struct c { struct b $super; float4 bb; };