mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-08 16:05:56 +00:00
rsx: Minor optimization; avoid preparing unused vertex streams
- Also discards unused program state variables
This commit is contained in:
parent
e7b9513d4a
commit
3e09b97f58
11 changed files with 75 additions and 81 deletions
|
|
@ -33,16 +33,14 @@ namespace rsx
|
|||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
struct fragment_program_texture_state
|
||||
{
|
||||
u32 texture_dimensions = 0;
|
||||
u16 unnormalized_coords = 0;
|
||||
u16 redirected_textures = 0;
|
||||
u16 shadow_textures = 0;
|
||||
u16 reserved = 0;
|
||||
|
||||
void clear(u32 index);
|
||||
void import(const fragment_program_texture_state& other, u16 mask);
|
||||
struct fragment_program_texture_state
|
||||
{
|
||||
u32 texture_dimensions = 0;
|
||||
u16 redirected_textures = 0;
|
||||
u16 shadow_textures = 0;
|
||||
|
||||
void clear(u32 index);
|
||||
void import(const fragment_program_texture_state& other, u16 mask);
|
||||
void set_dimension(texture_dimension_extended type, u32 index);
|
||||
bool operator == (const fragment_program_texture_state& other) const;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue