yuzu-emu
/
yuzu
Archived
1
0
Fork 0

maxwell_3d: Add a struct for RenderTargetConfig.

This commit is contained in:
bunnei 2018-06-26 14:38:53 -04:00
parent 1bbbd26563
commit 6a28a66832
1 changed files with 19 additions and 17 deletions

View File

@ -321,19 +321,7 @@ public:
INSERT_PADDING_WORDS(1);
};
union {
struct {
INSERT_PADDING_WORDS(0x45);
struct {
INSERT_PADDING_WORDS(1);
u32 data;
u32 entry;
} macros;
INSERT_PADDING_WORDS(0x1B8);
struct {
struct RenderTargetConfig {
u32 address_high;
u32 address_low;
u32 width;
@ -349,7 +337,21 @@ public:
return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) |
address_low);
}
} rt[NumRenderTargets];
};
union {
struct {
INSERT_PADDING_WORDS(0x45);
struct {
INSERT_PADDING_WORDS(1);
u32 data;
u32 entry;
} macros;
INSERT_PADDING_WORDS(0x1B8);
RenderTargetConfig rt[NumRenderTargets];
struct {
f32 scale_x;