mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-20 22:05:12 +00:00
rsx: Improve unnormalized coordinate sampling
- Improve rounding when sampling nearest neighbour. This is mostly a problem with NVIDIA - Implement unnormalized 3D sampling
This commit is contained in:
parent
b3c65b7bca
commit
99b6963fab
9 changed files with 74 additions and 55 deletions
|
|
@ -11,15 +11,16 @@ namespace rsx
|
|||
};
|
||||
|
||||
#pragma pack(push, 1)
|
||||
// NOTE: This structure must be packed to match GPU layout.
|
||||
// NOTE: This structure must be packed to match GPU layout (std140).
|
||||
struct fragment_program_texture_config
|
||||
{
|
||||
struct TIU_slot
|
||||
{
|
||||
float scale_x;
|
||||
float scale_y;
|
||||
float scale[3];
|
||||
float subpixel_bias;
|
||||
u32 remap;
|
||||
u32 control;
|
||||
u32 padding[2];
|
||||
}
|
||||
slots_[16]; // QT headers will collide with any variable named 'slots' because reasons
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue