RetroArch
Classes | Macros | Typedefs | Functions
d3d9_renderchain.h File Reference
#include <stdint.h>
#include <retro_common_api.h>
#include <retro_inline.h>
#include <boolean.h>
#include <d3d9.h>
#include "../common/d3d9_common.h"
#include "../../verbosity.h"
#include "../../libretro-common/lists/vector_list.c"
Include dependency graph for d3d9_renderchain.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  lut_info
 
struct  shader_pass
 
struct  D3D9Vertex
 
struct  d3d9_renderchain
 

Macros

#define D3D_DEFAULT_NONPOW2   ((UINT)-2)
 
#define D3D_FILTER_LINEAR   (3 << 0)
 
#define D3D_FILTER_POINT   (2 << 0)
 
#define D3D_PI   3.14159265358979323846264338327
 
#define VECTOR_LIST_TYPE   unsigned
 
#define VECTOR_LIST_NAME   unsigned
 
#define VECTOR_LIST_TYPE   struct lut_info
 
#define VECTOR_LIST_NAME   lut_info
 
#define VECTOR_LIST_TYPE   struct shader_pass
 
#define VECTOR_LIST_NAME   shader_pass
 

Typedefs

typedef struct d3d9_renderchain d3d9_renderchain_t
 

Functions

static INLINE void d3d9_renderchain_set_vertices_on_change (d3d9_renderchain_t *chain, struct shader_pass *pass, unsigned width, unsigned height, unsigned out_width, unsigned out_height, unsigned vp_width, unsigned vp_height, unsigned rotation)
 
static INLINE bool d3d9_renderchain_add_pass (d3d9_renderchain_t *chain, struct shader_pass *pass, const struct LinkInfo *info)
 
static INLINE bool d3d9_renderchain_add_lut (d3d9_renderchain_t *chain, const char *id, const char *path, bool smooth)
 
static INLINE void d3d9_renderchain_destroy_passes_and_luts (d3d9_renderchain_t *chain)
 
static INLINE void d3d9_renderchain_add_lut_internal (d3d9_renderchain_t *chain, unsigned index, unsigned i)
 
static INLINE void d3d9_renderchain_start_render (d3d9_renderchain_t *chain)
 
static INLINE void d3d9_renderchain_end_render (d3d9_renderchain_t *chain)
 
static INLINE void d3d9_renderchain_unbind_all (d3d9_renderchain_t *chain)
 
static INLINE bool d3d9_renderchain_set_pass_size (LPDIRECT3DDEVICE9 dev, struct shader_pass *pass, struct shader_pass *pass2, unsigned width, unsigned height)
 
static INLINE void d3d9_recompute_pass_sizes (LPDIRECT3DDEVICE9 dev, d3d9_renderchain_t *chain, d3d9_video_t *d3d)
 
static INLINE void d3d9_init_renderchain (d3d9_renderchain_t *chain)
 
static INLINE void d3d9_renderchain_blit_to_texture (LPDIRECT3DTEXTURE9 tex, const void *frame, unsigned tex_width, unsigned tex_height, unsigned width, unsigned height, unsigned last_width, unsigned last_height, unsigned pitch, unsigned pixel_size)
 

Macro Definition Documentation

◆ D3D_DEFAULT_NONPOW2

#define D3D_DEFAULT_NONPOW2   ((UINT)-2)

◆ D3D_FILTER_LINEAR

#define D3D_FILTER_LINEAR   (3 << 0)

◆ D3D_FILTER_POINT

#define D3D_FILTER_POINT   (2 << 0)

◆ D3D_PI

#define D3D_PI   3.14159265358979323846264338327

◆ VECTOR_LIST_NAME [1/3]

#define VECTOR_LIST_NAME   unsigned

◆ VECTOR_LIST_NAME [2/3]

#define VECTOR_LIST_NAME   lut_info

◆ VECTOR_LIST_NAME [3/3]

#define VECTOR_LIST_NAME   shader_pass

◆ VECTOR_LIST_TYPE [1/3]

#define VECTOR_LIST_TYPE   unsigned

◆ VECTOR_LIST_TYPE [2/3]

#define VECTOR_LIST_TYPE   struct lut_info

◆ VECTOR_LIST_TYPE [3/3]

#define VECTOR_LIST_TYPE   struct shader_pass

Typedef Documentation

◆ d3d9_renderchain_t

Function Documentation

◆ d3d9_init_renderchain()

static INLINE void d3d9_init_renderchain ( d3d9_renderchain_t chain)
static
Here is the caller graph for this function:

◆ d3d9_recompute_pass_sizes()

static INLINE void d3d9_recompute_pass_sizes ( LPDIRECT3DDEVICE9  dev,
d3d9_renderchain_t chain,
d3d9_video_t d3d 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_add_lut()

static INLINE bool d3d9_renderchain_add_lut ( d3d9_renderchain_t chain,
const char *  id,
const char *  path,
bool  smooth 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_add_lut_internal()

static INLINE void d3d9_renderchain_add_lut_internal ( d3d9_renderchain_t chain,
unsigned  index,
unsigned  i 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_add_pass()

static INLINE bool d3d9_renderchain_add_pass ( d3d9_renderchain_t chain,
struct shader_pass pass,
const struct LinkInfo info 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_blit_to_texture()

static INLINE void d3d9_renderchain_blit_to_texture ( LPDIRECT3DTEXTURE9  tex,
const void frame,
unsigned  tex_width,
unsigned  tex_height,
unsigned  width,
unsigned  height,
unsigned  last_width,
unsigned  last_height,
unsigned  pitch,
unsigned  pixel_size 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_destroy_passes_and_luts()

static INLINE void d3d9_renderchain_destroy_passes_and_luts ( d3d9_renderchain_t chain)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_end_render()

static INLINE void d3d9_renderchain_end_render ( d3d9_renderchain_t chain)
static
Here is the caller graph for this function:

◆ d3d9_renderchain_set_pass_size()

static INLINE bool d3d9_renderchain_set_pass_size ( LPDIRECT3DDEVICE9  dev,
struct shader_pass pass,
struct shader_pass pass2,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_set_vertices_on_change()

static INLINE void d3d9_renderchain_set_vertices_on_change ( d3d9_renderchain_t chain,
struct shader_pass pass,
unsigned  width,
unsigned  height,
unsigned  out_width,
unsigned  out_height,
unsigned  vp_width,
unsigned  vp_height,
unsigned  rotation 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d9_renderchain_start_render()

static INLINE void d3d9_renderchain_start_render ( d3d9_renderchain_t chain)
static
Here is the caller graph for this function:

◆ d3d9_renderchain_unbind_all()

static INLINE void d3d9_renderchain_unbind_all ( d3d9_renderchain_t chain)
static
Here is the call graph for this function:
Here is the caller graph for this function: