Epok Engine

PSYQO SDK

Gpu

gpu.hh · GPU setup, command submission and frame synchronization

Module

GPU setup, command submission and frame synchronization.

Header
gpu.hh
Include
#include "psyqo/gpu.hh"
Stability
Pinned PsyQo API

Include this module

C++ include
#include "psyqo/gpu.hh"

Types

Functions and 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.Methodoperator""_msPerforms `operator "" ms` as part of GPU setup, command submission and frame synchronization.Functionoperator""_nsPerforms `operator "" ns` as part of GPU setup, command submission and frame synchronization.Functionoperator""_sPerforms `operator "" s` as part of GPU setup, command submission and frame synchronization.Functionoperator""_usPerforms `operator "" us` as part of GPU setup, command submission and frame synchronization.FunctionpauseTimerPauses 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 templatesendRawSends a raw 32 bits value to the Data register of the GPU.MethoduploadToVRAMUploads 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

Fields, variables and values