KallistiOS git master
Independent SDK for the Sega Dreamcast
|
Use the DMA to transfer inactive lists to the PVR More...
Functions | |
int | pvr_vertex_dma_enabled (void) |
Is vertex DMA enabled? | |
void * | pvr_vertbuf_tail (pvr_list_t list) |
Retrieve a pointer to the current output location in the DMA buffer for the requested list. | |
void | pvr_vertbuf_written (pvr_list_t list, uint32_t amt) |
Notify the PVR system that data have been written into the output buffer for the given list. | |
Use the DMA to transfer inactive lists to the PVR
void * pvr_vertbuf_tail | ( | pvr_list_t | list | ) |
Retrieve a pointer to the current output location in the DMA buffer for the requested list.
Vertex DMA must globally be enabled for this to work. Data may be added to this buffer by the user program directly; however, make sure to call pvr_vertbuf_written() to notify the system of any such changes.
list | The primitive list to get the buffer for. |
void pvr_vertbuf_written | ( | pvr_list_t | list, |
uint32_t | amt ) |
Notify the PVR system that data have been written into the output buffer for the given list.
This should always be done after writing data directly to these buffers or it will get overwritten by other data.
list | The primitive list that was modified. |
amt | Number of bytes written. Must be a multiple of 32. |
int pvr_vertex_dma_enabled | ( | void | ) |
Is vertex DMA enabled?