|
#define | GPU_TEXTURE_MAG_FILTER(v) (((v)&0x1)<<1) |
| Creates a texture magnification filter parameter from a GPU_TEXTURE_FILTER_PARAM.
|
|
#define | GPU_TEXTURE_MIN_FILTER(v) (((v)&0x1)<<2) |
| Creates a texture minification filter parameter from a GPU_TEXTURE_FILTER_PARAM.
|
|
#define | GPU_TEXTURE_MIP_FILTER(v) (((v)&0x1)<<24) |
| Creates a texture mipmap filter parameter from a GPU_TEXTURE_FILTER_PARAM.
|
|
#define | GPU_TEXTURE_WRAP_S(v) (((v)&0x3)<<12) |
| Creates a texture wrap S parameter from a GPU_TEXTURE_WRAP_PARAM.
|
|
#define | GPU_TEXTURE_WRAP_T(v) (((v)&0x3)<<8) |
| Creates a texture wrap T parameter from a GPU_TEXTURE_WRAP_PARAM.
|
|
#define | GPU_TEXTURE_MODE(v) (((v)&0x7)<<28) |
| Creates a texture mode parameter from a GPU_TEXTURE_MODE_PARAM.
|
|
#define | GPU_TEXTURE_ETC1_PARAM BIT(5) |
| Texture parameter indicating ETC1 texture.
|
|
#define | GPU_TEXTURE_SHADOW_PARAM BIT(20) |
| Texture parameter indicating shadow texture.
|
|
#define | GPU_TEV_BUFFER_WRITE_CONFIG(stage0, stage1, stage2, stage3) ((stage0) | ((stage1) << 1) | ((stage2) << 2) | ((stage3) << 3)) |
| Creates a combiner buffer write configuration.
|
|
#define | GPU_MAKEGASDEPTHFUNC(n) (GPU_GASDEPTHFUNC)((0xAF02>>((int)(n)<<1))&3) |
| Converts GPU_TESTFUNC into GPU_GASDEPTHFUNC.
|
|
#define | GPU_ATTRIBFMT(i, n, f) (((((n)-1)<<2)|((f)&3))<<((i)*4)) |
| Creates a VBO attribute parameter from its index, size, and format.
|
|
#define | GPU_TEVSOURCES(a, b, c) (((a))|((b)<<4)|((c)<<8)) |
| Creates a texture combiner source parameter from three sources.
|
|
#define | GPU_TEVOPERANDS(a, b, c) (((a))|((b)<<4)|((c)<<8)) |
| Creates a texture combiner operand parameter from three operands.
|
|
#define | GPU_LIGHT_ENV_LAYER_CONFIG(n) ((n)+((n)==7)) |
| Creates a light environment layer configuration parameter.
|
|
#define | GPU_LC1_SHADOWBIT(n) BIT(n) |
| Light shadow disable bits in GPUREG_LIGHT_CONFIG1.
|
|
#define | GPU_LC1_SPOTBIT(n) BIT((n)+8) |
| Light spot disable bits in GPUREG_LIGHT_CONFIG1.
|
|
#define | GPU_LC1_LUTBIT(n) BIT((n)+16) |
| LUT disable bits in GPUREG_LIGHT_CONFIG1.
|
|
#define | GPU_LC1_ATTNBIT(n) BIT((n)+24) |
| Light distance attenuation disable bits in GPUREG_LIGHT_CONFIG1.
|
|
#define | GPU_LIGHTPERM(i, n) ((n) << ((i)*4)) |
| Creates a light permutation parameter.
|
|
#define | GPU_LIGHTLUTINPUT(i, n) ((n) << ((i)*4)) |
| Creates a light LUT input parameter.
|
|
#define | GPU_LIGHTLUTIDX(c, i, o) ((o) | ((i) << 8) | ((c) << 11)) |
| Creates a light LUT index parameter.
|
|
#define | GPU_LIGHTCOLOR(r, g, b) (((b) & 0xFF) | (((g) << 10) & 0xFF) | (((r) << 20) & 0xFF)) |
| Creates a light color parameter from red, green, and blue components.
|
|
|
enum | GPU_TEXTURE_FILTER_PARAM {
GPU_NEAREST = 0x0
,
GPU_LINEAR = 0x1
} |
| Texture filters. More...
|
|
enum | GPU_TEXTURE_WRAP_PARAM {
GPU_CLAMP_TO_EDGE = 0x0
,
GPU_CLAMP_TO_BORDER = 0x1
,
GPU_REPEAT = 0x2
,
GPU_MIRRORED_REPEAT = 0x3
} |
| Texture wrap modes. More...
|
|
enum | GPU_TEXTURE_MODE_PARAM {
GPU_TEX_2D = 0x0
,
GPU_TEX_CUBE_MAP = 0x1
,
GPU_TEX_SHADOW_2D = 0x2
,
GPU_TEX_PROJECTION = 0x3
,
GPU_TEX_SHADOW_CUBE = 0x4
,
GPU_TEX_DISABLED = 0x5
} |
| Texture modes. More...
|
|
enum | GPU_TEXUNIT {
GPU_TEXUNIT0 = 0x1
,
GPU_TEXUNIT1 = 0x2
,
GPU_TEXUNIT2 = 0x4
} |
| Supported texture units. More...
|
|
enum | GPU_TEXCOLOR {
GPU_RGBA8 = 0x0
,
GPU_RGB8 = 0x1
,
GPU_RGBA5551 = 0x2
,
GPU_RGB565 = 0x3
,
GPU_RGBA4 = 0x4
,
GPU_LA8 = 0x5
,
GPU_HILO8 = 0x6
,
GPU_L8 = 0x7
,
GPU_A8 = 0x8
,
GPU_LA4 = 0x9
,
GPU_L4 = 0xA
,
GPU_A4 = 0xB
,
GPU_ETC1 = 0xC
,
GPU_ETC1A4 = 0xD
} |
| Supported texture formats. More...
|
|
enum | GPU_TEXFACE {
GPU_TEXFACE_2D = 0
,
GPU_POSITIVE_X = 0
,
GPU_NEGATIVE_X = 1
,
GPU_POSITIVE_Y = 2
,
GPU_NEGATIVE_Y = 3
,
GPU_POSITIVE_Z = 4
,
GPU_NEGATIVE_Z = 5
} |
| Texture faces. More...
|
|
enum | GPU_PROCTEX_CLAMP {
GPU_PT_CLAMP_TO_ZERO = 0
,
GPU_PT_CLAMP_TO_EDGE = 1
,
GPU_PT_REPEAT = 2
,
GPU_PT_MIRRORED_REPEAT = 3
,
GPU_PT_PULSE = 4
} |
| Procedural texture clamp modes. More...
|
|
enum | GPU_PROCTEX_MAPFUNC {
GPU_PT_U = 0
,
GPU_PT_U2 = 1
,
GPU_PT_V = 2
,
GPU_PT_V2 = 3
,
GPU_PT_ADD = 4
,
GPU_PT_ADD2 = 5
,
GPU_PT_SQRT2 = 6
,
GPU_PT_MIN = 7
,
GPU_PT_MAX = 8
,
GPU_PT_RMAX = 9
} |
| Procedural texture mapping functions. More...
|
|
enum | GPU_PROCTEX_SHIFT {
GPU_PT_NONE = 0
,
GPU_PT_ODD = 1
,
GPU_PT_EVEN = 2
} |
| Procedural texture shift values. More...
|
|
enum | GPU_PROCTEX_FILTER {
GPU_PT_NEAREST = 0
,
GPU_PT_LINEAR = 1
,
GPU_PT_NEAREST_MIP_NEAREST = 2
,
GPU_PT_LINEAR_MIP_NEAREST = 3
,
GPU_PT_NEAREST_MIP_LINEAR = 4
,
GPU_PT_LINEAR_MIP_LINEAR = 5
} |
| Procedural texture filter values. More...
|
|
enum | GPU_PROCTEX_LUTID {
GPU_LUT_NOISE = 0
,
GPU_LUT_RGBMAP = 2
,
GPU_LUT_ALPHAMAP = 3
,
GPU_LUT_COLOR = 4
,
GPU_LUT_COLORDIF = 5
} |
| Procedural texture LUT IDs. More...
|
|
enum | GPU_COLORBUF {
GPU_RB_RGBA8 = 0
,
GPU_RB_RGB8 = 1
,
GPU_RB_RGBA5551 = 2
,
GPU_RB_RGB565 = 3
,
GPU_RB_RGBA4 = 4
} |
| Supported color buffer formats. More...
|
|
enum | GPU_DEPTHBUF {
GPU_RB_DEPTH16 = 0
,
GPU_RB_DEPTH24 = 2
,
GPU_RB_DEPTH24_STENCIL8 = 3
} |
| Supported depth buffer formats. More...
|
|
enum | GPU_TESTFUNC {
GPU_NEVER = 0
,
GPU_ALWAYS = 1
,
GPU_EQUAL = 2
,
GPU_NOTEQUAL = 3
,
GPU_LESS = 4
,
GPU_LEQUAL = 5
,
GPU_GREATER = 6
,
GPU_GEQUAL = 7
} |
| Test functions. More...
|
|
enum | GPU_EARLYDEPTHFUNC {
GPU_EARLYDEPTH_GEQUAL = 0
,
GPU_EARLYDEPTH_GREATER = 1
,
GPU_EARLYDEPTH_LEQUAL = 2
,
GPU_EARLYDEPTH_LESS = 3
} |
| Early depth test functions. More...
|
|
enum | GPU_GASDEPTHFUNC {
GPU_GAS_NEVER = 0
,
GPU_GAS_ALWAYS = 1
,
GPU_GAS_GREATER = 2
,
GPU_GAS_LESS = 3
} |
| Gas depth functions. More...
|
|
enum | GPU_SCISSORMODE {
GPU_SCISSOR_DISABLE = 0
,
GPU_SCISSOR_INVERT = 1
,
GPU_SCISSOR_NORMAL = 3
} |
| Scissor test modes. More...
|
|
enum | GPU_STENCILOP {
GPU_STENCIL_KEEP = 0
,
GPU_STENCIL_ZERO = 1
,
GPU_STENCIL_REPLACE = 2
,
GPU_STENCIL_INCR = 3
,
GPU_STENCIL_DECR = 4
,
GPU_STENCIL_INVERT = 5
,
GPU_STENCIL_INCR_WRAP = 6
,
GPU_STENCIL_DECR_WRAP = 7
} |
| Stencil operations. More...
|
|
enum | GPU_WRITEMASK {
GPU_WRITE_RED = 0x01
,
GPU_WRITE_GREEN = 0x02
,
GPU_WRITE_BLUE = 0x04
,
GPU_WRITE_ALPHA = 0x08
,
GPU_WRITE_DEPTH = 0x10
,
GPU_WRITE_COLOR = 0x0F
,
GPU_WRITE_ALL = 0x1F
} |
| Pixel write mask. More...
|
|
enum | GPU_BLENDEQUATION {
GPU_BLEND_ADD = 0
,
GPU_BLEND_SUBTRACT = 1
,
GPU_BLEND_REVERSE_SUBTRACT = 2
,
GPU_BLEND_MIN = 3
,
GPU_BLEND_MAX = 4
} |
| Blend modes. More...
|
|
enum | GPU_BLENDFACTOR {
GPU_ZERO = 0
,
GPU_ONE = 1
,
GPU_SRC_COLOR = 2
,
GPU_ONE_MINUS_SRC_COLOR = 3
,
GPU_DST_COLOR = 4
,
GPU_ONE_MINUS_DST_COLOR = 5
,
GPU_SRC_ALPHA = 6
,
GPU_ONE_MINUS_SRC_ALPHA = 7
,
GPU_DST_ALPHA = 8
,
GPU_ONE_MINUS_DST_ALPHA = 9
,
GPU_CONSTANT_COLOR = 10
,
GPU_ONE_MINUS_CONSTANT_COLOR = 11
,
GPU_CONSTANT_ALPHA = 12
,
GPU_ONE_MINUS_CONSTANT_ALPHA = 13
,
GPU_SRC_ALPHA_SATURATE = 14
} |
| Blend factors. More...
|
|
enum | GPU_LOGICOP {
GPU_LOGICOP_CLEAR = 0
,
GPU_LOGICOP_AND = 1
,
GPU_LOGICOP_AND_REVERSE = 2
,
GPU_LOGICOP_COPY = 3
,
GPU_LOGICOP_SET = 4
,
GPU_LOGICOP_COPY_INVERTED = 5
,
GPU_LOGICOP_NOOP = 6
,
GPU_LOGICOP_INVERT = 7
,
GPU_LOGICOP_NAND = 8
,
GPU_LOGICOP_OR = 9
,
GPU_LOGICOP_NOR = 10
,
GPU_LOGICOP_XOR = 11
,
GPU_LOGICOP_EQUIV = 12
,
GPU_LOGICOP_AND_INVERTED = 13
,
GPU_LOGICOP_OR_REVERSE = 14
,
GPU_LOGICOP_OR_INVERTED = 15
} |
| Logical operations. More...
|
|
enum | GPU_FRAGOPMODE {
GPU_FRAGOPMODE_GL = 0
,
GPU_FRAGOPMODE_GAS_ACC = 1
,
GPU_FRAGOPMODE_SHADOW = 3
} |
| Fragment operation modes. More...
|
|
enum | GPU_FORMATS {
GPU_BYTE = 0
,
GPU_UNSIGNED_BYTE = 1
,
GPU_SHORT = 2
,
GPU_FLOAT = 3
} |
| Supported component formats. More...
|
|
enum | GPU_CULLMODE {
GPU_CULL_NONE = 0
,
GPU_CULL_FRONT_CCW = 1
,
GPU_CULL_BACK_CCW = 2
} |
| Cull modes. More...
|
|
enum | GPU_TEVSRC {
GPU_PRIMARY_COLOR = 0x00
,
GPU_FRAGMENT_PRIMARY_COLOR = 0x01
,
GPU_FRAGMENT_SECONDARY_COLOR = 0x02
,
GPU_TEXTURE0 = 0x03
,
GPU_TEXTURE1 = 0x04
,
GPU_TEXTURE2 = 0x05
,
GPU_TEXTURE3 = 0x06
,
GPU_PREVIOUS_BUFFER = 0x0D
,
GPU_CONSTANT = 0x0E
,
GPU_PREVIOUS = 0x0F
} |
| Texture combiner sources. More...
|
|
enum | GPU_TEVOP_RGB {
GPU_TEVOP_RGB_SRC_COLOR = 0x00
,
GPU_TEVOP_RGB_ONE_MINUS_SRC_COLOR = 0x01
,
GPU_TEVOP_RGB_SRC_ALPHA = 0x02
,
GPU_TEVOP_RGB_ONE_MINUS_SRC_ALPHA = 0x03
,
GPU_TEVOP_RGB_SRC_R = 0x04
,
GPU_TEVOP_RGB_ONE_MINUS_SRC_R = 0x05
,
GPU_TEVOP_RGB_0x06 = 0x06
,
GPU_TEVOP_RGB_0x07 = 0x07
,
GPU_TEVOP_RGB_SRC_G = 0x08
,
GPU_TEVOP_RGB_ONE_MINUS_SRC_G = 0x09
,
GPU_TEVOP_RGB_0x0A = 0x0A
,
GPU_TEVOP_RGB_0x0B = 0x0B
,
GPU_TEVOP_RGB_SRC_B = 0x0C
,
GPU_TEVOP_RGB_ONE_MINUS_SRC_B = 0x0D
,
GPU_TEVOP_RGB_0x0E = 0x0E
,
GPU_TEVOP_RGB_0x0F = 0x0F
} |
| Texture RGB combiner operands. More...
|
|
enum | GPU_TEVOP_A {
GPU_TEVOP_A_SRC_ALPHA = 0x00
,
GPU_TEVOP_A_ONE_MINUS_SRC_ALPHA = 0x01
,
GPU_TEVOP_A_SRC_R = 0x02
,
GPU_TEVOP_A_ONE_MINUS_SRC_R = 0x03
,
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
} |
| Texture Alpha combiner operands. More...
|
|
enum | GPU_COMBINEFUNC {
GPU_REPLACE = 0x00
,
GPU_MODULATE = 0x01
,
GPU_ADD = 0x02
,
GPU_ADD_SIGNED = 0x03
,
GPU_INTERPOLATE = 0x04
,
GPU_SUBTRACT = 0x05
,
GPU_DOT3_RGB = 0x06
,
GPU_DOT3_RGBA = 0x07
,
GPU_MULTIPLY_ADD = 0x08
,
GPU_ADD_MULTIPLY = 0x09
} |
| Texture combiner functions. More...
|
|
enum | GPU_TEVSCALE {
GPU_TEVSCALE_1 = 0x0
,
GPU_TEVSCALE_2 = 0x1
,
GPU_TEVSCALE_4 = 0x2
} |
| Texture scale factors. More...
|
|
enum | GPU_FRESNELSEL {
GPU_NO_FRESNEL = 0
,
GPU_PRI_ALPHA_FRESNEL = 1
,
GPU_SEC_ALPHA_FRESNEL = 2
,
GPU_PRI_SEC_ALPHA_FRESNEL = 3
} |
| Fresnel options. More...
|
|
enum | GPU_BUMPMODE {
GPU_BUMP_NOT_USED = 0
,
GPU_BUMP_AS_BUMP = 1
,
GPU_BUMP_AS_TANG = 2
} |
| Bump map modes. More...
|
|
enum | GPU_LIGHTLUTID {
GPU_LUT_D0 = 0
,
GPU_LUT_D1 = 1
,
GPU_LUT_SP = 2
,
GPU_LUT_FR = 3
,
GPU_LUT_RB = 4
,
GPU_LUT_RG = 5
,
GPU_LUT_RR = 6
,
GPU_LUT_DA = 7
} |
| LUT IDs. More...
|
|
enum | GPU_LIGHTLUTINPUT {
GPU_LUTINPUT_NH = 0
,
GPU_LUTINPUT_VH = 1
,
GPU_LUTINPUT_NV = 2
,
GPU_LUTINPUT_LN = 3
,
GPU_LUTINPUT_SP = 4
,
GPU_LUTINPUT_CP = 5
} |
| LUT inputs. More...
|
|
enum | GPU_LIGHTLUTSCALER {
GPU_LUTSCALER_1x = 0
,
GPU_LUTSCALER_2x = 1
,
GPU_LUTSCALER_4x = 2
,
GPU_LUTSCALER_8x = 3
,
GPU_LUTSCALER_0_25x = 6
,
GPU_LUTSCALER_0_5x = 7
} |
| LUT scalers. More...
|
|
enum | GPU_LIGHTLUTSELECT {
GPU_LUTSELECT_COMMON = 0
,
GPU_LUTSELECT_SP = 1
,
GPU_LUTSELECT_DA = 2
} |
| LUT selection. More...
|
|
enum | GPU_FOGMODE {
GPU_NO_FOG = 0
,
GPU_FOG = 5
,
GPU_GAS = 7
} |
| Fog modes. More...
|
|
enum | GPU_GASMODE {
GPU_PLAIN_DENSITY = 0
,
GPU_DEPTH_DENSITY = 1
} |
| Gas shading density source values. More...
|
|
enum | GPU_GASLUTINPUT {
GPU_GAS_DENSITY = 0
,
GPU_GAS_LIGHT_FACTOR = 1
} |
| Gas color LUT inputs. More...
|
|
enum | GPU_Primitive_t {
GPU_TRIANGLES = 0x0000
,
GPU_TRIANGLE_STRIP = 0x0100
,
GPU_TRIANGLE_FAN = 0x0200
,
GPU_GEOMETRY_PRIM = 0x0300
} |
| Supported primitives. More...
|
|
enum | GPU_SHADER_TYPE {
GPU_VERTEX_SHADER = 0x0
,
GPU_GEOMETRY_SHADER = 0x1
} |
| Shader types. More...
|
|