RetroArch
Macros | Functions | Variables
d3d11.c File Reference
#include <assert.h>
#include <string/stdstring.h>
#include <gfx/scaler/pixconv.h>
#include <retro_miscellaneous.h>
#include <file/file_path.h>
#include "../../driver.h"
#include "../../verbosity.h"
#include "../configuration.h"
#include "../../retroarch.h"
#include "../video_driver.h"
#include "../font_driver.h"
#include "../common/win32_common.h"
#include "../../performance_counters.h"
#include "../../menu/menu_driver.h"
#include "../video_shader_parse.h"
#include "../drivers_shader/slang_preprocess.h"
#include "../common/d3d_common.h"
#include "../common/d3d11_common.h"
#include "../common/dxgi_common.h"
#include "../common/d3dcompiler_common.h"
#include "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 dependency graph for d3d11.c:

Macros

#define CINTERFACE
 

Functions

static void d3d11_set_filtering (void *data, unsigned index, bool smooth)
 
static void d3d11_gfx_set_rotation (void *data, unsigned rotation)
 
static void d3d11_update_viewport (void *data, bool force_full)
 
static void d3d11_free_shader_preset (d3d11_video_t *d3d11)
 
static bool d3d11_gfx_set_shader (void *data, enum rarch_shader_type type, const char *path)
 
static void d3d11_gfx_free (void *data)
 
static voidd3d11_gfx_init (const video_info_t *video, const input_driver_t **input, void **input_data)
 
static void d3d11_init_history (d3d11_video_t *d3d11, unsigned width, unsigned height)
 
static void d3d11_init_render_targets (d3d11_video_t *d3d11, unsigned width, unsigned height)
 
static bool d3d11_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 d3d11_gfx_set_nonblock_state (void *data, bool toggle)
 
static bool d3d11_gfx_alive (void *data)
 
static bool d3d11_gfx_focus (void *data)
 
static bool d3d11_gfx_suppress_screensaver (void *data, bool enable)
 
static bool d3d11_gfx_has_windowed (void *data)
 
static struct video_shaderd3d11_gfx_get_current_shader (void *data)
 
static void d3d11_gfx_viewport_info (void *data, struct video_viewport *vp)
 
static bool d3d11_gfx_read_viewport (void *data, uint8_t *buffer, bool is_idle)
 
static void d3d11_set_menu_texture_frame (void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
 
static void d3d11_set_menu_texture_enable (void *data, bool state, bool full_screen)
 
static void d3d11_gfx_set_aspect_ratio (void *data, unsigned aspect_ratio_idx)
 
static void d3d11_gfx_apply_state_changes (void *data)
 
static void d3d11_gfx_set_osd_msg (void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
 
static void d3d11_gfx_show_mouse (void *data, bool state)
 
static uintptr_t d3d11_gfx_load_texture (void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
 
static void d3d11_gfx_unload_texture (void *data, uintptr_t handle)
 
static bool d3d11_get_hw_render_interface (void *data, const struct retro_hw_render_interface **iface)
 
static uint32_t d3d11_get_flags (void *data)
 
static void d3d11_gfx_get_poke_interface (void *data, const video_poke_interface_t **iface)
 

Variables

static D3D11Device cached_device_d3d11
 
static D3D_FEATURE_LEVEL cached_supportedFeatureLevel
 
static D3D11DeviceContext cached_context
 
static const video_poke_interface_t d3d11_poke_interface
 
video_driver_t video_d3d11
 

Macro Definition Documentation

◆ CINTERFACE

#define CINTERFACE

Function Documentation

◆ d3d11_free_shader_preset()

static void d3d11_free_shader_preset ( d3d11_video_t d3d11)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d11_get_flags()

static uint32_t d3d11_get_flags ( void data)
static

◆ d3d11_get_hw_render_interface()

static bool d3d11_get_hw_render_interface ( void data,
const struct retro_hw_render_interface **  iface 
)
static

◆ d3d11_gfx_alive()

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

◆ d3d11_gfx_apply_state_changes()

static void d3d11_gfx_apply_state_changes ( void data)
static

◆ d3d11_gfx_focus()

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

◆ d3d11_gfx_frame()

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

◆ d3d11_gfx_free()

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

◆ d3d11_gfx_get_current_shader()

static struct video_shader* d3d11_gfx_get_current_shader ( void data)
static

◆ d3d11_gfx_get_poke_interface()

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

◆ d3d11_gfx_has_windowed()

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

◆ d3d11_gfx_init()

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

◆ d3d11_gfx_load_texture()

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

◆ d3d11_gfx_read_viewport()

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

◆ d3d11_gfx_set_aspect_ratio()

static void d3d11_gfx_set_aspect_ratio ( void data,
unsigned  aspect_ratio_idx 
)
static

◆ d3d11_gfx_set_nonblock_state()

static void d3d11_gfx_set_nonblock_state ( void data,
bool  toggle 
)
static

◆ d3d11_gfx_set_osd_msg()

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

◆ d3d11_gfx_set_rotation()

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

◆ d3d11_gfx_set_shader()

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

◆ d3d11_gfx_show_mouse()

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

◆ d3d11_gfx_suppress_screensaver()

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

◆ d3d11_gfx_unload_texture()

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

◆ d3d11_gfx_viewport_info()

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

◆ d3d11_init_history()

static void d3d11_init_history ( d3d11_video_t d3d11,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d11_init_render_targets()

static void d3d11_init_render_targets ( d3d11_video_t d3d11,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d11_set_filtering()

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

◆ d3d11_set_menu_texture_enable()

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

◆ d3d11_set_menu_texture_frame()

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

◆ d3d11_update_viewport()

static void d3d11_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

◆ cached_context

D3D11DeviceContext cached_context
static

◆ cached_device_d3d11

D3D11Device cached_device_d3d11
static

◆ cached_supportedFeatureLevel

D3D_FEATURE_LEVEL cached_supportedFeatureLevel
static

◆ d3d11_poke_interface

const video_poke_interface_t d3d11_poke_interface
static
Initial value:
= {
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static void d3d11_set_menu_texture_frame(void *data, const void *frame, bool rgb32, unsigned width, unsigned height, float alpha)
Definition: d3d11.c:1526
static uintptr_t d3d11_gfx_load_texture(void *video_data, void *data, bool threaded, enum texture_filter_type filter_type)
Definition: d3d11.c:1598
static bool d3d11_get_hw_render_interface(void *data, const struct retro_hw_render_interface **iface)
Definition: d3d11.c:1655
static uint32_t d3d11_get_flags(void *data)
Definition: d3d11.c:1662
float win32_get_refresh_rate(void *data)
Definition: win32_common.c:1466
static struct video_shader * d3d11_gfx_get_current_shader(void *data)
Definition: d3d11.c:1501
static void d3d11_set_menu_texture_enable(void *data, bool state, bool full_screen)
Definition: d3d11.c:1552
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void d3d11_gfx_unload_texture(void *data, uintptr_t handle)
Definition: d3d11.c:1641
static void d3d11_set_filtering(void *data, unsigned index, bool smooth)
Definition: d3d11.c:222
static void d3d11_gfx_show_mouse(void *data, bool state)
Definition: d3d11.c:1596
static void d3d11_gfx_apply_state_changes(void *data)
Definition: d3d11.c:1574
static void d3d11_gfx_set_aspect_ratio(void *data, unsigned aspect_ratio_idx)
Definition: d3d11.c:1563
static void d3d11_gfx_set_osd_msg(void *data, video_frame_info_t *video_info, const char *msg, const void *params, void *font)
Definition: d3d11.c:1582

◆ video_d3d11

video_driver_t video_d3d11
Initial value:
= {
"d3d11",
NULL,
NULL,
}
static void d3d11_gfx_set_rotation(void *data, unsigned rotation)
Definition: d3d11.c:236
static bool d3d11_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: d3d11.c:1153
static bool d3d11_gfx_set_shader(void *data, enum rarch_shader_type type, const char *path)
Definition: d3d11.c:323
static void d3d11_gfx_get_poke_interface(void *data, const video_poke_interface_t **iface)
Definition: d3d11.c:1702
#define NULL
Pointer to 0.
Definition: gctypes.h:65
static void d3d11_gfx_set_nonblock_state(void *data, bool toggle)
Definition: d3d11.c:1463
static void * d3d11_gfx_init(const video_info_t *video, const input_driver_t **input, void **input_data)
Definition: d3d11.c:584
static bool d3d11_gfx_suppress_screensaver(void *data, bool enable)
Definition: d3d11.c:1488
static bool d3d11_gfx_has_windowed(void *data)
Definition: d3d11.c:1495
static bool d3d11_gfx_alive(void *data)
Definition: d3d11.c:1473
static bool d3d11_gfx_focus(void *data)
Definition: d3d11.c:1486
static void d3d11_gfx_free(void *data)
Definition: d3d11.c:514
static bool d3d11_gfx_read_viewport(void *data, uint8_t *buffer, bool is_idle)
Definition: d3d11.c:1518
static void d3d11_gfx_viewport_info(void *data, struct video_viewport *vp)
Definition: d3d11.c:1511