mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 04:40:26 +01:00
reduced swizzle comment
This commit is contained in:
parent
1a979736a6
commit
5b3cf5af74
1 changed files with 4 additions and 0 deletions
|
|
@ -112,6 +112,10 @@ union instruction {
|
|||
GLuint dword;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Reduced swizzle is a 2-bit field; only X/Y/Z/W are allowed, not 0/1.
|
||||
*/
|
||||
#define RSW_NOOP ((0<<0) | (1<<2) | (2<<4) | (3<<6))
|
||||
#define GET_RSW(swz, idx) (((swz) >> ((idx)*2)) & 0x3)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue