mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
ShaderGen: Implement pixel ubershaders
This commit is contained in:
parent
07591e7d5c
commit
7d78cf0f6f
19 changed files with 1520 additions and 17 deletions
|
@ -24,7 +24,22 @@ struct PixelShaderConstants
|
|||
int4 fogi;
|
||||
float4 fogf[2];
|
||||
float4 zslope;
|
||||
float4 efbscale;
|
||||
float efbscale[2];
|
||||
|
||||
// Constants from here onwards are only used in ubershaders.
|
||||
u32 genmode; // .z
|
||||
u32 alphaTest; // .w
|
||||
u32 fogParam3; // .x
|
||||
u32 fogRangeBase; // .y
|
||||
u32 dstalpha; // .z
|
||||
u32 ztex_op; // .w
|
||||
u32 early_ztest; // .x (bool)
|
||||
u32 rgba6_format; // .y (bool)
|
||||
u32 dither; // .z (bool)
|
||||
u32 bounding_box; // .w (bool)
|
||||
uint4 pack1[16]; // .xy - combiners, .z - tevind, .w - iref
|
||||
uint4 pack2[8]; // .x - tevorder, .y - tevksel
|
||||
int4 konst[32]; // .rgba
|
||||
};
|
||||
|
||||
struct VertexShaderConstants
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue