RetroArch
Functions | Variables
gx2_gfx.c File Reference
#include <string.h>
#include <wiiu/os.h>
#include <wiiu/gx2.h>
#include <formats/image.h>
#include <file/file_path.h>
#include <string/stdstring.h>
#include "../../driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
#include "../../retroarch.h"
#include "gfx/common/gx2_common.h"
#include "gfx/video_shader_parse.h"
#include "gfx/drivers_shader/slang_preprocess.h"
#include "system/memory.h"
#include "wiiu_dbg.h"
#include "../font_driver.h"
Include dependency graph for gx2_gfx.c:

Functions

static bool wiiu_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void wiiu_set_tex_coords (frame_vertex_t *v, GX2Texture *texture, float u0, float v0, float u1, float v1, unsigned rotation)
 
static void wiiu_set_projection (wiiu_video_t *wiiu)
 
static void wiiu_gfx_update_viewport (wiiu_video_t *wiiu)
 
static void wiiu_gfx_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
 
static voidwiiu_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static void wiiu_free_shader_preset (wiiu_video_t *wiiu)
 
static void wiiu_gfx_free (void *data)
 
static bool wiiu_init_frame_textures (wiiu_video_t *wiiu, unsigned width, unsigned height)
 
static void wiiu_gfx_update_uniform_block (wiiu_video_t *wiiu, int pass, float *ubo, int id, int size, int uniformVarCount, GX2UniformVar *uniformVars, uint64_t frame_count)
 
static bool wiiu_gfx_frame (void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
 
static void wiiu_gfx_set_nonblock_state (void *data, bool toggle)
 
static bool wiiu_gfx_alive (void *data)
 
static bool wiiu_gfx_focus (void *data)
 
static bool wiiu_gfx_suppress_screensaver (void *data, bool enable)
 
static struct video_shaderwiiu_gfx_get_current_shader (void *data)
 
static void wiiu_gfx_set_rotation (void *data, unsigned rotation)
 
static void wiiu_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool wiiu_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static uintptr_t wiiu_gfx_load_texture (void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
 
static void wiiu_gfx_unload_texture (void *data, uintptr_t handle)
 
static void wiiu_gfx_set_filtering (void *data, unsigned index, bool smooth)
 
static void wiiu_gfx_apply_state_changes (void *data)
 
static void wiiu_gfx_set_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void wiiu_gfx_set_texture_enable (void *data, bool state, bool full_screen)
 
static void wiiu_gfx_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static void wiiu_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 

Variables

static const wiiu_render_mode_t wiiu_render_mode_map []
 
static const video_poke_interface_t wiiu_poke_interface
 
video_driver_t video_wiiu
 

Function Documentation

◆ wiiu_free_shader_preset()

static void wiiu_free_shader_preset ( wiiu_video_t wiiu)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_gfx_alive()

static bool wiiu_gfx_alive ( void data)
static
Here is the call graph for this function:

◆ wiiu_gfx_apply_state_changes()

static void wiiu_gfx_apply_state_changes ( void data)
static

◆ wiiu_gfx_focus()

static bool wiiu_gfx_focus ( void data)
static
Here is the call graph for this function:

◆ wiiu_gfx_frame()

static bool wiiu_gfx_frame ( void data,
const void frame,
unsigned  width,
unsigned  height,
uint64_t  frame_count,
unsigned  pitch,
const char *  msg,
video_frame_info_t video_info 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_free()

static void wiiu_gfx_free ( void data)
static
Here is the call graph for this function:

◆ wiiu_gfx_get_current_shader()

static struct video_shader* wiiu_gfx_get_current_shader ( void data)
static

◆ wiiu_gfx_get_poke_interface()

static void wiiu_gfx_get_poke_interface ( void data,
const video_poke_interface_t **  iface 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_init()

static void* wiiu_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static

◆ wiiu_gfx_load_texture()

static uintptr_t wiiu_gfx_load_texture ( void video_data,
void data,
bool  threaded,
enum texture_filter_type  filter_type 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_read_viewport()

static bool wiiu_gfx_read_viewport ( void data,
uint8_t buffer,
bool  is_idle 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_aspect_ratio()

static void wiiu_gfx_set_aspect_ratio ( void data,
unsigned  aspect_ratio_idx 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_filtering()

static void wiiu_gfx_set_filtering ( void data,
unsigned  index,
bool  smooth 
)
static

◆ wiiu_gfx_set_nonblock_state()

static void wiiu_gfx_set_nonblock_state ( void data,
bool  toggle 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_osd_msg()

static void wiiu_gfx_set_osd_msg ( void data,
video_frame_info_t video_info,
const char *  msg,
const void params,
void font 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_rotation()

static void wiiu_gfx_set_rotation ( void data,
unsigned  rotation 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_shader()

static bool wiiu_gfx_set_shader ( void data,
enum rarch_shader_type  type,
const char *  path 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_gfx_set_texture_enable()

static void wiiu_gfx_set_texture_enable ( void data,
bool  state,
bool  full_screen 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_set_texture_frame()

static void wiiu_gfx_set_texture_frame ( void data,
const void frame,
bool  rgb32,
unsigned  width,
unsigned  height,
float  alpha 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_suppress_screensaver()

static bool wiiu_gfx_suppress_screensaver ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_unload_texture()

static void wiiu_gfx_unload_texture ( void data,
uintptr_t  handle 
)
static
Here is the call graph for this function:

◆ wiiu_gfx_update_uniform_block()

static void wiiu_gfx_update_uniform_block ( wiiu_video_t wiiu,
int  pass,
float *  ubo,
int  id,
int  size,
int  uniformVarCount,
GX2UniformVar uniformVars,
uint64_t  frame_count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_gfx_update_viewport()

static void wiiu_gfx_update_viewport ( wiiu_video_t wiiu)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_gfx_viewport_info()

static void wiiu_gfx_viewport_info ( void data,
struct video_viewport vp 
)
static

◆ wiiu_init_frame_textures()

static bool wiiu_init_frame_textures ( wiiu_video_t wiiu,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_set_projection()

static void wiiu_set_projection ( wiiu_video_t wiiu)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ wiiu_set_tex_coords()

static void wiiu_set_tex_coords ( frame_vertex_t v,
GX2Texture texture,
float  u0,
float  v0,
float  u1,
float  v1,
unsigned  rotation 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ video_wiiu

video_driver_t video_wiiu
Initial value:
=
{
NULL,
"gx2",
NULL,
NULL,
NULL,
}
static bool wiiu_gfx_focus(void *data)
Definition: gx2_gfx.c:1395
static void wiiu_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: gx2_gfx.c:1739
static bool wiiu_gfx_alive(void *data)
Definition: gx2_gfx.c:1389
static void wiiu_gfx_set_rotation(void *data, unsigned rotation)
Definition: gx2_gfx.c:1547
static bool wiiu_gfx_frame(void *data, const void *frame, unsigned width, unsigned height, uint64_t frame_count, unsigned pitch, const char *msg, video_frame_info_t *video_info)
Definition: gx2_gfx.c:1020
static bool wiiu_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: gx2_gfx.c:1408
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void wiiu_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: gx2_gfx.c:1560
static void wiiu_gfx_free(void *data)
Definition: gx2_gfx.c:664
static bool wiiu_gfx_suppress_screensaver(void *data, bool enable)
Definition: gx2_gfx.c:1401
static void * wiiu_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: gx2_gfx.c:197
static void wiiu_gfx_set_nonblock_state(void *data, bool toggle)
Definition: gx2_gfx.c:1378
static bool wiiu_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: gx2_gfx.c:1569

◆ wiiu_poke_interface

const video_poke_interface_t wiiu_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static uintptr_t wiiu_gfx_load_texture(void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
Definition: gx2_gfx.c:1577
static void wiiu_gfx_set_filtering(void *data, unsigned index, bool smooth)
Definition: gx2_gfx.c:1621
static void wiiu_gfx_set_texture_enable(void *data, bool state, bool full_screen)
Definition: gx2_gfx.c:1686
static void wiiu_gfx_unload_texture(void *data, uintptr_t handle)
Definition: gx2_gfx.c:1611
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void wiiu_gfx_set_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: gx2_gfx.c:1638
static struct video_shader * wiiu_gfx_get_current_shader(void *data)
Definition: gx2_gfx.c:1536
static void wiiu_gfx_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
Definition: gx2_gfx.c:166
static void wiiu_gfx_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: gx2_gfx.c:1696
static void wiiu_gfx_apply_state_changes(void *data)
Definition: gx2_gfx.c:1630

◆ wiiu_render_mode_map

const wiiu_render_mode_t wiiu_render_mode_map[]
static
Initial value:
=
{
{0},
{0},
}
Definition: enum.h:485
Definition: enum.h:487
Definition: enum.h:486