RetroArch
Macros | Functions | Variables
menu_display_metal.m File Reference
#include <retro_miscellaneous.h>
#include "../menu_driver.h"
#include "../../gfx/font_driver.h"
#include "../../gfx/video_driver.h"
#import "../../gfx/common/metal_common.h"
Include dependency graph for menu_display_metal.m:

Macros

#define GET_DRIVER(video_info)   (video_info ? (__bridge MetalDriver *)video_info->userdata : NULL);
 

Functions

static const float * menu_display_metal_get_default_vertices (void)
 
static const float * menu_display_metal_get_default_tex_coords (void)
 
static voidmenu_display_metal_get_default_mvp (video_frame_info_t *video_info)
 
static void menu_display_metal_blend_begin (video_frame_info_t *video_info)
 
static void menu_display_metal_blend_end (video_frame_info_t *video_info)
 
static void menu_display_metal_draw (menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
 
static void menu_display_metal_draw_pipeline (menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
 
static void menu_display_metal_viewport (menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
 
static void menu_display_metal_scissor_begin (video_frame_info_t *video_info, int x, int y, unsigned width, unsigned height)
 
static void menu_display_metal_scissor_end (video_frame_info_t *video_info)
 
static void menu_display_metal_restore_clear_color (void)
 
static void menu_display_metal_clear_color (menu_display_ctx_clearcolor_t *clearcolor, video_frame_info_t *video_info)
 
static bool menu_display_metal_font_init_first (void **font_handle, void *video_data, const char *font_path, float font_size, bool is_threaded)
 

Variables

menu_display_ctx_driver_t menu_display_ctx_metal
 

Macro Definition Documentation

◆ GET_DRIVER

#define GET_DRIVER (   video_info)    (video_info ? (__bridge MetalDriver *)video_info->userdata : NULL);

Function Documentation

◆ menu_display_metal_blend_begin()

static void menu_display_metal_blend_begin ( video_frame_info_t video_info)
static

◆ menu_display_metal_blend_end()

static void menu_display_metal_blend_end ( video_frame_info_t video_info)
static

◆ menu_display_metal_clear_color()

static void menu_display_metal_clear_color ( menu_display_ctx_clearcolor_t clearcolor,
video_frame_info_t video_info 
)
static

◆ menu_display_metal_draw()

static void menu_display_metal_draw ( menu_display_ctx_draw_t draw,
video_frame_info_t video_info 
)
static

◆ menu_display_metal_draw_pipeline()

static void menu_display_metal_draw_pipeline ( menu_display_ctx_draw_t draw,
video_frame_info_t video_info 
)
static

◆ menu_display_metal_font_init_first()

static bool menu_display_metal_font_init_first ( void **  font_handle,
void video_data,
const char *  font_path,
float  font_size,
bool  is_threaded 
)
static
Here is the call graph for this function:

◆ menu_display_metal_get_default_mvp()

static void* menu_display_metal_get_default_mvp ( video_frame_info_t video_info)
static

◆ menu_display_metal_get_default_tex_coords()

static const float* menu_display_metal_get_default_tex_coords ( void  )
static
Here is the call graph for this function:

◆ menu_display_metal_get_default_vertices()

static const float* menu_display_metal_get_default_vertices ( void  )
static
Here is the call graph for this function:

◆ menu_display_metal_restore_clear_color()

static void menu_display_metal_restore_clear_color ( void  )
static

◆ menu_display_metal_scissor_begin()

static void menu_display_metal_scissor_begin ( video_frame_info_t video_info,
int  x,
int  y,
unsigned  width,
unsigned  height 
)
static

◆ menu_display_metal_scissor_end()

static void menu_display_metal_scissor_end ( video_frame_info_t video_info)
static

◆ menu_display_metal_viewport()

static void menu_display_metal_viewport ( menu_display_ctx_draw_t draw,
video_frame_info_t video_info 
)
static

Variable Documentation

◆ menu_display_ctx_metal

menu_display_ctx_driver_t menu_display_ctx_metal
Initial value:
= {
.get_default_vertices = menu_display_metal_get_default_vertices,
.get_default_tex_coords = menu_display_metal_get_default_tex_coords,
.ident = "menu_display_metal",
.handles_transform = NO,
}
static const float * menu_display_metal_get_default_tex_coords(void)
Definition: menu_display_metal.m:35
static void menu_display_metal_blend_begin(video_frame_info_t *video_info)
Definition: menu_display_metal.m:49
static void menu_display_metal_scissor_begin(video_frame_info_t *video_info, int x, int y, unsigned width, unsigned height)
Definition: menu_display_metal.m:91
Definition: menu_driver.h:325
static void menu_display_metal_draw_pipeline(menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
Definition: menu_display_metal.m:77
static void menu_display_metal_viewport(menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
Definition: menu_display_metal.m:86
static void menu_display_metal_restore_clear_color(void)
Definition: menu_display_metal.m:110
static bool menu_display_metal_font_init_first(void **font_handle, void *video_data, const char *font_path, float font_size, bool is_threaded)
Definition: menu_display_metal.m:125
static void menu_display_metal_blend_end(video_frame_info_t *video_info)
Definition: menu_display_metal.m:58
static void menu_display_metal_draw(menu_display_ctx_draw_t *draw, video_frame_info_t *video_info)
Definition: menu_display_metal.m:67
static void menu_display_metal_scissor_end(video_frame_info_t *video_info)
Definition: menu_display_metal.m:101
static void * menu_display_metal_get_default_mvp(video_frame_info_t *video_info)
Definition: menu_display_metal.m:40
static void menu_display_metal_clear_color(menu_display_ctx_clearcolor_t *clearcolor, video_frame_info_t *video_info)
Definition: menu_display_metal.m:115
static const float * menu_display_metal_get_default_vertices(void)
Definition: menu_display_metal.m:30