|
| s32 | rsxInit (gcmContextData **context, u32 cmdSize, u32 ioSize, const void *ioAddress) |
| | Initialize the RSX context and the RSX memory manager.
|
| |
| void | rsxSetupContextData (gcmContextData *context, const u32 *addr, u32 size, gcmContextCallback cb) |
| |
| void | rsxSetCurrentBuffer (gcmContextData **context, const u32 *addr, u32 size) |
| |
| void | rsxSetDefaultCommandBuffer (gcmContextData **context) |
| |
| void | rsxSetUserCallback (gcmContextCallback cb) |
| |
| u32 * | rsxGetCurrentBuffer () |
| |
| static s32 | rsxAddressToOffset (const void *ptr, u32 *offset) |
| | Converts a pointer value in RSX memory to an offset.
|
| |
| static s32 | rsxGetFixedSint32 (f32 f) |
| | Convert a floating point coordinate into 32-bit signed fixed point format.
|
| |
| static u16 | rsxGetFixedUint16 (f32 f) |
| | Convert a floating point coordinate into 16-bit unsigned fixed point format.
|
| |
| static u32 | rsxAlign (u32 alignment, u32 value) |
| |
RSX library.
This library contains the necessary functions for handling the RSX, the accelerated 3D chip of the PS3.
Definition in file rsx.h.
| s32 rsxInit |
( |
gcmContextData ** |
context, |
|
|
u32 |
cmdSize, |
|
|
u32 |
ioSize, |
|
|
const void * |
ioAddress |
|
) |
| |
Initialize the RSX context and the RSX memory manager.
The user must provide a 1 MB-aligned IO buffer allocated in main memory, which size is a multiple of 1 megabyte.
This function initializes a heap structure in RSX memory space, allowing dynamic memory allocation using rsxMalloc, rsxMemalign and rsxFree.
- Parameters
-
| context | Pointer to receive the address of the default command buffer |
| cmdSize | The command buffer size. |
| ioSize | The allocated IO buffer size. |
| ioAddress | Pointer to an allocated buffer of ioSize bytes. |
- Returns
- zero if no error occured, nonzero otherwise.