RetroArch
|
#include <3ds/gpu/gpu.h>
Go to the source code of this file.
Functions | |
void | GPU_Init (Handle *gsphandle) DEPRECATED |
Initializes the GPU. More... | |
void | GPU_Reset (u32 *gxbuf, u32 *gpuBuf, u32 gpuBufSize) DEPRECATED |
Resets the GPU. More... | |
void | GPU_SetFloatUniform (GPU_SHADER_TYPE type, u32 startreg, u32 *data, u32 numreg) DEPRECATED |
Sets a shader float uniform. More... | |
void | GPU_SetViewport (u32 *depthBuffer, u32 *colorBuffer, u32 x, u32 y, u32 w, u32 h) DEPRECATED |
Sets the viewport. More... | |
void | GPU_SetScissorTest (GPU_SCISSORMODE mode, u32 left, u32 bottom, u32 right, u32 top) DEPRECATED |
Sets the current scissor test mode. More... | |
void | GPU_DepthMap (float zScale, float zOffset) DEPRECATED |
Sets the depth map. More... | |
void | GPU_SetAlphaTest (bool enable, GPU_TESTFUNC function, u8 ref) DEPRECATED |
Sets the alpha test parameters. More... | |
void | GPU_SetDepthTestAndWriteMask (bool enable, GPU_TESTFUNC function, GPU_WRITEMASK writemask) DEPRECATED |
Sets the depth test parameters and pixel write mask. More... | |
void | GPU_SetStencilTest (bool enable, GPU_TESTFUNC function, u8 ref, u8 input_mask, u8 write_mask) DEPRECATED |
Sets the stencil test parameters. More... | |
void | GPU_SetStencilOp (GPU_STENCILOP sfail, GPU_STENCILOP dfail, GPU_STENCILOP pass) DEPRECATED |
Sets the stencil test operators. More... | |
void | GPU_SetFaceCulling (GPU_CULLMODE mode) DEPRECATED |
Sets the face culling mode. More... | |
void | GPU_SetCombinerBufferWrite (u8 rgb_config, u8 alpha_config) DEPRECATED |
Sets the combiner buffer write parameters. More... | |
void | GPU_SetAlphaBlending (GPU_BLENDEQUATION colorEquation, GPU_BLENDEQUATION alphaEquation, GPU_BLENDFACTOR colorSrc, GPU_BLENDFACTOR colorDst, GPU_BLENDFACTOR alphaSrc, GPU_BLENDFACTOR alphaDst) DEPRECATED |
Sets the alpha blending parameters. More... | |
void | GPU_SetColorLogicOp (GPU_LOGICOP op) DEPRECATED |
Sets the color logic operator. More... | |
void | GPU_SetBlendingColor (u8 r, u8 g, u8 b, u8 a) DEPRECATED |
Sets the blending color. More... | |
void | GPU_SetAttributeBuffers (u8 totalAttributes, u32 *baseAddress, u64 attributeFormats, u16 attributeMask, u64 attributePermutation, u8 numBuffers, u32 bufferOffsets[], u64 bufferPermutations[], u8 bufferNumAttributes[]) DEPRECATED |
Sets the VBO attribute buffers. More... | |
void | GPU_SetTextureEnable (GPU_TEXUNIT units) DEPRECATED |
Sets the enabled texture units. More... | |
void | GPU_SetTexture (GPU_TEXUNIT unit, u32 *data, u16 width, u16 height, u32 param, GPU_TEXCOLOR colorType) DEPRECATED |
Sets the texture data of a texture unit. More... | |
void | GPU_SetTextureBorderColor (GPU_TEXUNIT unit, u32 borderColor) DEPRECATED |
Sets the border color of a texture unit. More... | |
void | GPU_SetTexEnv (u8 id, u16 rgbSources, u16 alphaSources, u16 rgbOperands, u16 alphaOperands, GPU_COMBINEFUNC rgbCombine, GPU_COMBINEFUNC alphaCombine, u32 constantColor) DEPRECATED |
Sets the parameters of a texture combiner. More... | |
void | GPU_DrawArray (GPU_Primitive_t primitive, u32 first, u32 count) DEPRECATED |
Draws an array of vertex data. More... | |
void | GPU_DrawElements (GPU_Primitive_t primitive, u32 *indexArray, u32 n) DEPRECATED |
Draws vertex elements. More... | |
void | GPU_FinishDrawing () DEPRECATED |
Finishes drawing. More... | |
void | GPU_Finalize (void) DEPRECATED |
void GPU_DepthMap | ( | float | zScale, |
float | zOffset | ||
) |
Sets the depth map.
zScale | Z scale to use. |
zOffset | Z offset to use. |
Draws an array of vertex data.
primitive | Primitive to draw. |
first | First vertex to draw. |
count | Number of vertices to draw. |
Draws vertex elements.
primitive | Primitive to draw. |
indexArray | Array of vertex indices to use. |
n | Number of vertices to draw. |
void GPU_FinishDrawing | ( | ) |
void GPU_Init | ( | Handle * | gsphandle | ) |
Resets the GPU.
gxbuf | GX command buffer to use. |
gpuBuf | GPU command buffer to use. |
gpuBufSize | GPU command buffer size. |
void GPU_SetAlphaBlending | ( | GPU_BLENDEQUATION | colorEquation, |
GPU_BLENDEQUATION | alphaEquation, | ||
GPU_BLENDFACTOR | colorSrc, | ||
GPU_BLENDFACTOR | colorDst, | ||
GPU_BLENDFACTOR | alphaSrc, | ||
GPU_BLENDFACTOR | alphaDst | ||
) |
Sets the alpha blending parameters.
colorEquation | Blend equation to use for color components. |
alphaEquation | Blend equation to use for the alpha component. |
colorSrc | Source factor of color components. |
colorDst | Destination factor of color components. |
alphaSrc | Source factor of the alpha component. |
alphaDst | Destination factor of the alpha component. |
Sets the alpha test parameters.
enable | Whether to enable alpha testing. |
function | Test function to use. |
ref | Reference value to use. |
void GPU_SetAttributeBuffers | ( | u8 | totalAttributes, |
u32 * | baseAddress, | ||
u64 | attributeFormats, | ||
u16 | attributeMask, | ||
u64 | attributePermutation, | ||
u8 | numBuffers, | ||
u32 | bufferOffsets[], | ||
u64 | bufferPermutations[], | ||
u8 | bufferNumAttributes[] | ||
) |
Sets the VBO attribute buffers.
totalAttributes | Total number of attributes. |
baseAddress | Base address of the VBO. |
attributeFormats | Attribute format data. |
attributeMask | Attribute mask. |
attributePermutation | Attribute permutations. |
numBuffers | Number of buffers. |
bufferOffsets | Offsets of the buffers. |
bufferPermutations | Buffer permutations. |
bufferNumAttributes | Numbers of attributes of the buffers. |
Sets the blending color.
r | Red component. |
g | Green component. |
b | Blue component. |
a | Alpha component. |
void GPU_SetColorLogicOp | ( | GPU_LOGICOP | op | ) |
Sets the color logic operator.
op | Operator to set. |
Sets the combiner buffer write parameters.
rgb_config | RGB configuration to use. |
alpha_config | Alpha configuration to use. |
Sets the depth test parameters and pixel write mask.
enable | Whether to enable depth testing. |
function | Test function to use. |
writemask | Pixel write mask to use. |
void GPU_SetFaceCulling | ( | GPU_CULLMODE | mode | ) |
Sets the face culling mode.
mode | Face culling mode to use. |
Sets a shader float uniform.
type | Type of shader to set the uniform of. |
startreg | Start of the uniform register to set. |
data | Data to set. |
numreg | Number of registers to set. |
Sets the current scissor test mode.
mode | Scissor test mode to use. |
x | X of the scissor region. |
y | Y of the scissor region. |
w | Width of the scissor region. |
h | Height of the scissor region. |
void GPU_SetStencilOp | ( | GPU_STENCILOP | sfail, |
GPU_STENCILOP | dfail, | ||
GPU_STENCILOP | pass | ||
) |
Sets the stencil test operators.
sfail | Operator to use on source test failure. |
dfail | Operator to use on destination test failure. |
pass | Operator to use on test passing. |
void GPU_SetStencilTest | ( | bool | enable, |
GPU_TESTFUNC | function, | ||
u8 | ref, | ||
u8 | input_mask, | ||
u8 | write_mask | ||
) |
Sets the stencil test parameters.
enable | Whether to enable stencil testing. |
function | Test function to use. |
ref | Reference value to use. |
input_mask | Input mask to use. |
write_mask | Write mask to use. |
void GPU_SetTexEnv | ( | u8 | id, |
u16 | rgbSources, | ||
u16 | alphaSources, | ||
u16 | rgbOperands, | ||
u16 | alphaOperands, | ||
GPU_COMBINEFUNC | rgbCombine, | ||
GPU_COMBINEFUNC | alphaCombine, | ||
u32 | constantColor | ||
) |
Sets the parameters of a texture combiner.
id | ID of the combiner. |
rgbSources | RGB source configuration. |
alphaSources | Alpha source configuration. |
rgbOperands | RGB operand configuration. |
alphaOperands | Alpha operand configuration. |
rgbCombine | RGB combiner function. |
alphaCombine | Alpha combiner function. |
constantColor | Constant color to provide. |
void GPU_SetTexture | ( | GPU_TEXUNIT | unit, |
u32 * | data, | ||
u16 | width, | ||
u16 | height, | ||
u32 | param, | ||
GPU_TEXCOLOR | colorType | ||
) |
Sets the texture data of a texture unit.
unit | Texture unit to use. |
data | Data to load. Must be in linear memory or VRAM. |
width | Width of the texture. |
height | Height of the texture. |
Parameters | of the texture, such as filters and wrap modes. |
colorType | Color type of the texture. |
Sets the border color of a texture unit.
unit | Texture unit to use. |
borderColor | The color used for the border when using the GPU_CLAMP_TO_BORDER wrap mode. |
void GPU_SetTextureEnable | ( | GPU_TEXUNIT | units | ) |
Sets the enabled texture units.
units | Units to enable. OR texture unit values together to create this value. |