PSYQO SDK
psyqo::GPU
Class
Class
The singleton GPU class.
Basic usage
This minimal snippet shows the normal syntax for reaching the type. Open a member below for an operation-specific example.
C++ example
#include "psyqo/cdrom-device.hh"
psyqo::GPU& value = /* obtain a valid instance from your game */;Nested types
ColorModeEnum declared by the gpu module for GPU setup, command submission and frame synchronization.EnumConfigurationStruct declared by the gpu module for GPU setup, command submission and frame synchronization.StructInterlaceEnum declared by the gpu module for GPU setup, command submission and frame synchronization.EnumMiscSettingEnum declared by the gpu module for GPU setup, command submission and frame synchronization.EnumResolutionEnum declared by the gpu module for GPU setup, command submission and frame synchronization.EnumVideoModeEnum declared by the gpu module for GPU setup, command submission and frame synchronization.EnumFields and constants
Public methods
armPeriodicTimerCreates a periodic timer.MethodarmTimerCreates a single-use timer.MethodcancelTimerCancels a timer.MethodchainChains an already constructed DMA chain to the next DMA chain transfer.Function templatechangeTimerPeriodChanges the period of a periodic timer.MethodclearImmediately clears the drawing buffer.MethoddelayDelays the coroutine for a specified amount of time.MethoddisableScissorImmediately disables the scissoring of the VRAM.MethodenableScissorEnables the scissoring of the VRAM.MethodgetClearSets a `FastFill` primitive to clear the current drawing buffer.MethodgetFrameCountReturns the number of frames rendered by the GPU so far.MethodgetNextClearSets a `FastFill` primitive to clear the next drawing buffer.MethodgetNextScissorGets the next scissoring region.MethodgetParityGet the index of the current display buffer.MethodgetRefreshRateReturns the refresh rate of the GPU.MethodgetScissorGets the current scissoring region.MethodinitializePerforms `initialize` as part of GPU setup, command submission and frame synchronization.MethodisChainIdleGets the status of the background DMA transfer operation when initiated by a frame flip.MethodisChainTransferredGets the status of the background DMA transfer operation when initiated by a frame flip.MethodisChainTransferringGets the status of the background DMA transfer operation when initiated by a frame flip.MethodnowGets the current timestamp in microseconds.MethodpauseTimerPauses a timer.MethodpumpCallbacksRuns one round of event processing.MethodreinitializePerforms `reinitialize` as part of GPU setup, command submission and frame synchronization.MethodresumeTimerResumes a paused timer.MethodsendChainImmediately sends the current DMA chainMethodsendFragmentImmediately sends a fragment to the GPU. This is a blocking operation. See the fragments.hh file for more information.Function templatesendPrimitiveSends a primitive to the GPU. This is a blocking call.Function templateuploadToVRAMUploads a buffer to the VRAM as a blocking call.MethodwaitChainIdleWaits until the background DMA transfer operation initiated by a frame flip is complete.MethodwaitFifoWaits until the GPU's FIFO is ready to receive data.MethodwaitReadyWaits until the GPU is ready to send a command.Method