RetroArch
Macros | Functions | Variables
d3d12.c File Reference
#include <assert.h>
#include <boolean.h>
#include <string/stdstring.h>
#include <file/file_path.h>
#include "../video_driver.h"
#include "../font_driver.h"
#include "../common/d3d_common.h"
#include "../common/win32_common.h"
#include "../common/dxgi_common.h"
#include "../common/d3d12_common.h"
#include "../common/d3dcompiler_common.h"
#include "../../menu/menu_driver.h"
#include "../../driver.h"
#include "../../verbosity.h"
#include "../../configuration.h"
#include "../../retroarch.h"
#include "wiiu/wiiu_dbg.h"
#include "../drivers/d3d_shaders/opaque_sm5.hlsl.h"
#include "d3d_shaders/sprite_sm4.hlsl.h"
#include "d3d_shaders/ribbon_sm4.hlsl.h"
#include "d3d_shaders/ribbon_simple_sm4.hlsl.h"
#include "d3d_shaders/simple_snow_sm4.hlsl.h"
#include "d3d_shaders/snow_sm4.hlsl.h"
#include "d3d_shaders/bokeh_sm4.hlsl.h"
#include "d3d_shaders/snowflake_sm4.hlsl.h"
#include "d3d_shaders/mimpapgen_sm5.h"
Include dependency graph for d3d12.c:

Macros

#define CINTERFACE
 

Functions

static void d3d12_gfx_sync (d3d12_video_t *d3d12)
 
static void d3d12_set_filtering (void *data, unsigned index, bool smooth)
 
static void d3d12_gfx_set_rotation (void *data, unsigned rotation)
 
static void d3d12_update_viewport (void *data, bool force_full)
 
static void d3d12_free_shader_preset (d3d12_video_t *d3d12)
 
static bool d3d12_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static bool d3d12_gfx_init_pipelines (d3d12_video_t *d3d12)
 
static void d3d12_gfx_free (void *data)
 
static voidd3d12_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static void d3d12_init_history (d3d12_video_t *d3d12, unsigned width, unsigned height)
 
static void d3d12_init_render_targets (d3d12_video_t *d3d12, unsigned width, unsigned height)
 
static bool d3d12_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 d3d12_gfx_set_nonblock_state (void *data, bool toggle)
 
static bool d3d12_gfx_alive (void *data)
 
static bool d3d12_gfx_focus (void *data)
 
static bool d3d12_gfx_suppress_screensaver (void *data, bool enable)
 
static bool d3d12_gfx_has_windowed (void *data)
 
static struct video_shaderd3d12_gfx_get_current_shader (void *data)
 
static void d3d12_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool d3d12_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void d3d12_set_menu_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void d3d12_set_menu_texture_enable (void *data, bool state, bool full_screen)
 
static void d3d12_gfx_show_mouse (void *data, bool state)
 
static void d3d12_gfx_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
 
static void d3d12_gfx_apply_state_changes (void *data)
 
static void d3d12_gfx_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static uintptr_t d3d12_gfx_load_texture (void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
 
static void d3d12_gfx_unload_texture (void *data, uintptr_t handle)
 
static uint32_t d3d12_get_flags (void *data)
 
static void d3d12_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 

Variables

static const video_poke_interface_t d3d12_poke_interface
 
video_driver_t video_d3d12
 

Macro Definition Documentation

◆ CINTERFACE

#define CINTERFACE

Function Documentation

◆ d3d12_free_shader_preset()

static void d3d12_free_shader_preset ( d3d12_video_t d3d12)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_get_flags()

static uint32_t d3d12_get_flags ( void data)
static

◆ d3d12_gfx_alive()

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

◆ d3d12_gfx_apply_state_changes()

static void d3d12_gfx_apply_state_changes ( void data)
static

◆ d3d12_gfx_focus()

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

◆ d3d12_gfx_frame()

static bool d3d12_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:

◆ d3d12_gfx_free()

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

◆ d3d12_gfx_get_current_shader()

static struct video_shader* d3d12_gfx_get_current_shader ( void data)
static

◆ d3d12_gfx_get_poke_interface()

static void d3d12_gfx_get_poke_interface ( void data,
const video_poke_interface_t **  iface 
)
static

◆ d3d12_gfx_has_windowed()

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

◆ d3d12_gfx_init()

static void* d3d12_gfx_init ( const video_info_t video,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ d3d12_gfx_init_pipelines()

static bool d3d12_gfx_init_pipelines ( d3d12_video_t d3d12)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_gfx_load_texture()

static uintptr_t d3d12_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:

◆ d3d12_gfx_read_viewport()

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

◆ d3d12_gfx_set_aspect_ratio()

static void d3d12_gfx_set_aspect_ratio ( void data,
unsigned  aspect_ratio_idx 
)
static

◆ d3d12_gfx_set_nonblock_state()

static void d3d12_gfx_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ d3d12_gfx_set_osd_msg()

static void d3d12_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:

◆ d3d12_gfx_set_rotation()

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

◆ d3d12_gfx_set_shader()

static bool d3d12_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:

◆ d3d12_gfx_show_mouse()

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

◆ d3d12_gfx_suppress_screensaver()

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

◆ d3d12_gfx_sync()

static void d3d12_gfx_sync ( d3d12_video_t d3d12)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_gfx_unload_texture()

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

◆ d3d12_gfx_viewport_info()

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

◆ d3d12_init_history()

static void d3d12_init_history ( d3d12_video_t d3d12,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_init_render_targets()

static void d3d12_init_render_targets ( d3d12_video_t d3d12,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_set_filtering()

static void d3d12_set_filtering ( void data,
unsigned  index,
bool  smooth 
)
static
Here is the caller graph for this function:

◆ d3d12_set_menu_texture_enable()

static void d3d12_set_menu_texture_enable ( void data,
bool  state,
bool  full_screen 
)
static

◆ d3d12_set_menu_texture_frame()

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

◆ d3d12_update_viewport()

static void d3d12_update_viewport ( void data,
bool  force_full 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ d3d12_poke_interface

const video_poke_interface_t d3d12_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void d3d12_gfx_apply_state_changes(void *data)
Definition: d3d12.c:1693
static void d3d12_gfx_unload_texture(void *data, uintptr_t handle)
Definition: d3d12.c:1759
static struct video_shader * d3d12_gfx_get_current_shader(void *data)
Definition: d3d12.c:1596
static uint32_t d3d12_get_flags(void *data)
Definition: d3d12.c:1771
float win32_get_refresh_rate(void *data)
Definition: win32_common.c:1466
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static uintptr_t d3d12_gfx_load_texture(void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
Definition: d3d12.c:1714
static void d3d12_set_menu_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: d3d12.c:1621
static void d3d12_gfx_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: d3d12.c:1701
static void d3d12_gfx_show_mouse(void *data, bool state)
Definition: d3d12.c:1677
static void d3d12_set_filtering(void *data, unsigned index, bool smooth)
Definition: d3d12.c:215
static void d3d12_set_menu_texture_enable(void *data, bool state, bool full_screen)
Definition: d3d12.c:1665
static void d3d12_gfx_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
Definition: d3d12.c:1682

◆ video_d3d12

video_driver_t video_d3d12
Initial value:
= {
"d3d12",
NULL,
NULL,
}
static void d3d12_gfx_set_rotation(void *data, unsigned rotation)
Definition: d3d12.c:229
static bool d3d12_gfx_has_windowed(void *data)
Definition: d3d12.c:1590
static void d3d12_gfx_free(void *data)
Definition: d3d12.c:805
static bool d3d12_gfx_alive(void *data)
Definition: d3d12.c:1568
static void d3d12_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: d3d12.c:1811
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void * d3d12_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: d3d12.c:879
static bool d3d12_gfx_focus(void *data)
Definition: d3d12.c:1581
static void d3d12_gfx_set_nonblock_state(void *data, bool toggle)
Definition: d3d12.c:1562
static bool d3d12_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: d3d12.c:1136
static bool d3d12_gfx_suppress_screensaver(void *data, bool enable)
Definition: d3d12.c:1583
static bool d3d12_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: d3d12.c:327
static void d3d12_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: d3d12.c:1606
static bool d3d12_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: d3d12.c:1613