mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-24 23:01:21 -08:00
maxwell_3d: Add a struct for RenderTargetConfig.
This commit is contained in:
parent
1bbbd26563
commit
6a28a66832
@ -321,19 +321,7 @@ public:
|
|||||||
INSERT_PADDING_WORDS(1);
|
INSERT_PADDING_WORDS(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
union {
|
struct RenderTargetConfig {
|
||||||
struct {
|
|
||||||
INSERT_PADDING_WORDS(0x45);
|
|
||||||
|
|
||||||
struct {
|
|
||||||
INSERT_PADDING_WORDS(1);
|
|
||||||
u32 data;
|
|
||||||
u32 entry;
|
|
||||||
} macros;
|
|
||||||
|
|
||||||
INSERT_PADDING_WORDS(0x1B8);
|
|
||||||
|
|
||||||
struct {
|
|
||||||
u32 address_high;
|
u32 address_high;
|
||||||
u32 address_low;
|
u32 address_low;
|
||||||
u32 width;
|
u32 width;
|
||||||
@ -349,7 +337,21 @@ public:
|
|||||||
return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) |
|
return static_cast<GPUVAddr>((static_cast<GPUVAddr>(address_high) << 32) |
|
||||||
address_low);
|
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 {
|
struct {
|
||||||
f32 scale_x;
|
f32 scale_x;
|
||||||
|
Loading…
Reference in New Issue
Block a user