Add some more GPU enum values from the 3dbrew wiki
This commit is contained in:
parent
428a837224
commit
0ace45a746
@ -160,6 +160,8 @@ typedef enum{
|
|||||||
*/
|
*/
|
||||||
typedef enum{
|
typedef enum{
|
||||||
GPU_PRIMARY_COLOR = 0x00,
|
GPU_PRIMARY_COLOR = 0x00,
|
||||||
|
GPU_FRAGMENT_PRIMARY_COLOR = 0x01,
|
||||||
|
GPU_FRAGMENT_SECONDARY_COLOR = 0x02,
|
||||||
GPU_TEXTURE0 = 0x03,
|
GPU_TEXTURE0 = 0x03,
|
||||||
GPU_TEXTURE1 = 0x04,
|
GPU_TEXTURE1 = 0x04,
|
||||||
GPU_TEXTURE2 = 0x05,
|
GPU_TEXTURE2 = 0x05,
|
||||||
@ -177,16 +179,16 @@ typedef enum{
|
|||||||
GPU_TEVOP_RGB_ONE_MINUS_SRC_COLOR = 0x01,
|
GPU_TEVOP_RGB_ONE_MINUS_SRC_COLOR = 0x01,
|
||||||
GPU_TEVOP_RGB_SRC_ALPHA = 0x02,
|
GPU_TEVOP_RGB_SRC_ALPHA = 0x02,
|
||||||
GPU_TEVOP_RGB_ONE_MINUS_SRC_ALPHA = 0x03,
|
GPU_TEVOP_RGB_ONE_MINUS_SRC_ALPHA = 0x03,
|
||||||
GPU_TEVOP_RGB_SRC0_RGB = 0x04,
|
GPU_TEVOP_RGB_SRC_R = 0x04,
|
||||||
GPU_TEVOP_RGB_0x05 = 0x05,
|
GPU_TEVOP_RGB_ONE_MINUS_SRC_R = 0x05,
|
||||||
GPU_TEVOP_RGB_0x06 = 0x06,
|
GPU_TEVOP_RGB_0x06 = 0x06,
|
||||||
GPU_TEVOP_RGB_0x07 = 0x07,
|
GPU_TEVOP_RGB_0x07 = 0x07,
|
||||||
GPU_TEVOP_RGB_SRC1_RGB = 0x08,
|
GPU_TEVOP_RGB_SRC_G = 0x08,
|
||||||
GPU_TEVOP_RGB_0x09 = 0x09,
|
GPU_TEVOP_RGB_ONE_MINUS_SRC_G = 0x09,
|
||||||
GPU_TEVOP_RGB_0x0A = 0x0A,
|
GPU_TEVOP_RGB_0x0A = 0x0A,
|
||||||
GPU_TEVOP_RGB_0x0B = 0x0B,
|
GPU_TEVOP_RGB_0x0B = 0x0B,
|
||||||
GPU_TEVOP_RGB_SRC2_RGB = 0x0C,
|
GPU_TEVOP_RGB_SRC_B = 0x0C,
|
||||||
GPU_TEVOP_RGB_0x0D = 0x0D,
|
GPU_TEVOP_RGB_ONE_MINUS_SRC_B = 0x0D,
|
||||||
GPU_TEVOP_RGB_0x0E = 0x0E,
|
GPU_TEVOP_RGB_0x0E = 0x0E,
|
||||||
GPU_TEVOP_RGB_0x0F = 0x0F,
|
GPU_TEVOP_RGB_0x0F = 0x0F,
|
||||||
}GPU_TEVOP_RGB;
|
}GPU_TEVOP_RGB;
|
||||||
@ -198,9 +200,12 @@ typedef enum{
|
|||||||
typedef enum{
|
typedef enum{
|
||||||
GPU_TEVOP_A_SRC_ALPHA = 0x00,
|
GPU_TEVOP_A_SRC_ALPHA = 0x00,
|
||||||
GPU_TEVOP_A_ONE_MINUS_SRC_ALPHA = 0x01,
|
GPU_TEVOP_A_ONE_MINUS_SRC_ALPHA = 0x01,
|
||||||
GPU_TEVOP_A_SRC0_RGB = 0x02,
|
GPU_TEVOP_A_SRC_R = 0x02,
|
||||||
GPU_TEVOP_A_SRC1_RGB = 0x04,
|
GPU_TEVOP_A_ONE_MINUS_SRC_R = 0x03,
|
||||||
GPU_TEVOP_A_SRC2_RGB = 0x06,
|
GPU_TEVOP_A_SRC_G = 0x04,
|
||||||
|
GPU_TEVOP_A_ONE_MINUS_SRC_G = 0x05,
|
||||||
|
GPU_TEVOP_A_SRC_B = 0x06,
|
||||||
|
GPU_TEVOP_A_ONE_MINUS_SRC_B = 0x07,
|
||||||
}GPU_TEVOP_A;
|
}GPU_TEVOP_A;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -213,9 +218,19 @@ typedef enum{
|
|||||||
GPU_ADD_SIGNED = 0x03,
|
GPU_ADD_SIGNED = 0x03,
|
||||||
GPU_INTERPOLATE = 0x04,
|
GPU_INTERPOLATE = 0x04,
|
||||||
GPU_SUBTRACT = 0x05,
|
GPU_SUBTRACT = 0x05,
|
||||||
GPU_DOT3_RGB = 0x06 //RGB only
|
GPU_DOT3_RGB = 0x06, //RGB only
|
||||||
|
GPU_DOT3_RGBA = 0x07,
|
||||||
}GPU_COMBINEFUNC;
|
}GPU_COMBINEFUNC;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Texture scale factors
|
||||||
|
*/
|
||||||
|
typedef enum{
|
||||||
|
GPU_TEVSCALE_1 = 0x0,
|
||||||
|
GPU_TEVSCALE_2 = 0x1,
|
||||||
|
GPU_TEVSCALE_4 = 0x2,
|
||||||
|
}GPU_TEVSCALE;
|
||||||
|
|
||||||
#define GPU_TEVSOURCES(a,b,c) (((a))|((b)<<4)|((c)<<8))
|
#define GPU_TEVSOURCES(a,b,c) (((a))|((b)<<4)|((c)<<8))
|
||||||
#define GPU_TEVOPERANDS(a,b,c) (((a))|((b)<<4)|((c)<<8))
|
#define GPU_TEVOPERANDS(a,b,c) (((a))|((b)<<4)|((c)<<8))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user