RetroArch
Macros | Functions | Variables
ctr_gu.h File Reference
#include <3ds.h>
#include <stdint.h>
#include <string.h>
#include <retro_inline.h>
#include "ctr/ctr_debug.h"
Include dependency graph for ctr_gu.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define VIRT_TO_PHYS(vaddr)
 
#define CTRGU_SIZE(W, H)   (((u32)(W)&0xFFFF)|((u32)(H)<<16))
 
#define CTRGU_DMA_VFLIP   (1 << 0)
 
#define CTRGU_DMA_L_TO_T   (1 << 1)
 
#define CTRGU_DMA_T_TO_L   (0 << 1)
 
#define CTRGU_DMA_TRUNCATE   (1 << 2)
 
#define CTRGU_DMA_CONVERT_NONE   (1 << 3)
 
#define CTRGU_RGBA8   (0)
 
#define CTRGU_RGB8   (1)
 
#define CTRGU_RGB565   (2)
 
#define CTRGU_RGBA5551   (3)
 
#define CTRGU_RGBA4444   (4)
 
#define CTRGU_MULTISAMPLE_NONE   (0 << 24)
 
#define CTRGU_MULTISAMPLE_2x1   (1 << 24)
 
#define CTRGU_MULTISAMPLE_2x2   (2 << 24)
 
#define CTR_CPU_TICKS_PER_SECOND   268123480
 
#define CTR_CPU_TICKS_PER_FRAME   4481134
 
#define CTRGU_ATTRIBFMT(f, n)   ((((n)-1)<<2)|((f)&3))
 

Functions

 __attribute__ ((always_inline)) static INLINE Result ctr_set_parallax_layer(bool state)
 

Variables

u32gpuCmdBuf
 
u32 gpuCmdBufOffset
 
u32 __linear_heap_size
 
u32 __linear_heap
 
u32data
 
u32 u16 width
 
u32 u16 u16 height
 
u32 u16 u16 u32 param
 

Macro Definition Documentation

◆ CTR_CPU_TICKS_PER_FRAME

#define CTR_CPU_TICKS_PER_FRAME   4481134

◆ CTR_CPU_TICKS_PER_SECOND

#define CTR_CPU_TICKS_PER_SECOND   268123480

◆ CTRGU_ATTRIBFMT

#define CTRGU_ATTRIBFMT (   f,
  n 
)    ((((n)-1)<<2)|((f)&3))

◆ CTRGU_DMA_CONVERT_NONE

#define CTRGU_DMA_CONVERT_NONE   (1 << 3)

◆ CTRGU_DMA_L_TO_T

#define CTRGU_DMA_L_TO_T   (1 << 1)

◆ CTRGU_DMA_T_TO_L

#define CTRGU_DMA_T_TO_L   (0 << 1)

◆ CTRGU_DMA_TRUNCATE

#define CTRGU_DMA_TRUNCATE   (1 << 2)

◆ CTRGU_DMA_VFLIP

#define CTRGU_DMA_VFLIP   (1 << 0)

◆ CTRGU_MULTISAMPLE_2x1

#define CTRGU_MULTISAMPLE_2x1   (1 << 24)

◆ CTRGU_MULTISAMPLE_2x2

#define CTRGU_MULTISAMPLE_2x2   (2 << 24)

◆ CTRGU_MULTISAMPLE_NONE

#define CTRGU_MULTISAMPLE_NONE   (0 << 24)

◆ CTRGU_RGB565

#define CTRGU_RGB565   (2)

◆ CTRGU_RGB8

#define CTRGU_RGB8   (1)

◆ CTRGU_RGBA4444

#define CTRGU_RGBA4444   (4)

◆ CTRGU_RGBA5551

#define CTRGU_RGBA5551   (3)

◆ CTRGU_RGBA8

#define CTRGU_RGBA8   (0)

◆ CTRGU_SIZE

#define CTRGU_SIZE (   W,
  H 
)    (((u32)(W)&0xFFFF)|((u32)(H)<<16))

◆ VIRT_TO_PHYS

#define VIRT_TO_PHYS (   vaddr)
Value:
(((u32)(vaddr)) >= 0x14000000 && ((u32)(vaddr)) < 0x1c000000)?(void*)((u32)(vaddr) + 0x0c000000):\
(((u32)(vaddr)) >= 0x1F000000 && ((u32)(vaddr)) < 0x1F600000)?(void*)((u32)(vaddr) - 0x07000000):\
(((u32)(vaddr)) >= 0x1FF00000 && ((u32)(vaddr)) < 0x1FF80000)?(void*)(vaddr):\
(((u32)(vaddr)) >= 0x30000000 && ((u32)(vaddr)) < 0x40000000)?(void*)((u32)(vaddr) - 0x10000000):(void*)0
uint32_t u32
32bit unsigned integer
Definition: gctypes.h:19

Function Documentation

◆ __attribute__()

__attribute__ ( (always_inline)  )

Variable Documentation

◆ __linear_heap

u32 __linear_heap

◆ __linear_heap_size

u32 __linear_heap_size

◆ data

◆ gpuCmdBuf

u32* gpuCmdBuf

◆ gpuCmdBufOffset

u32 gpuCmdBufOffset

◆ height

◆ param

◆ width