RetroArch
Macros | Functions | Variables
d3d12_common.c File Reference
#include <boolean.h>
#include "d3d12_common.h"
#include "dxgi_common.h"
#include "d3dcompiler_common.h"
#include "../verbosity.h"
Include dependency graph for d3d12_common.c:

Macros

#define CINTERFACE
 

Functions

bool d3d12_init_base (d3d12_video_t *d3d12)
 
bool d3d12_init_queue (d3d12_video_t *d3d12)
 
bool d3d12_init_swapchain (d3d12_video_t *d3d12, int width, int height, void *corewindow)
 
static void d3d12_init_descriptor_heap (D3D12Device device, d3d12_descriptor_heap_t *out)
 
static void d3d12_release_descriptor_heap (d3d12_descriptor_heap_t *heap)
 
static D3D12_CPU_DESCRIPTOR_HANDLE d3d12_descriptor_heap_slot_alloc (d3d12_descriptor_heap_t *heap)
 
static void d3d12_descriptor_heap_slot_free (d3d12_descriptor_heap_t *heap, D3D12_CPU_DESCRIPTOR_HANDLE handle)
 
bool d3d12_create_root_signature (D3D12Device device, D3D12_ROOT_SIGNATURE_DESC *desc, D3D12RootSignature *out)
 
bool d3d12_init_descriptors (d3d12_video_t *d3d12)
 
static INLINE D3D12_GPU_DESCRIPTOR_HANDLE d3d12_create_sampler (D3D12Device device, D3D12_SAMPLER_DESC *desc, d3d12_descriptor_heap_t *heap)
 
void d3d12_init_samplers (d3d12_video_t *d3d12)
 
bool d3d12_init_pipeline (D3D12Device device, D3DBlob vs_code, D3DBlob ps_code, D3DBlob gs_code, D3D12_GRAPHICS_PIPELINE_STATE_DESC *desc, D3D12PipelineState *out)
 
D3D12_GPU_VIRTUAL_ADDRESS d3d12_create_buffer (D3D12Device device, UINT size_in_bytes, D3D12Resource *buffer)
 
void d3d12_release_texture (d3d12_texture_t *texture)
 
void d3d12_init_texture (D3D12Device device, d3d12_texture_t *texture)
 
void d3d12_update_texture (int width, int height, int pitch, DXGI_FORMAT format, const void *data, d3d12_texture_t *texture)
 
void d3d12_upload_texture (D3D12GraphicsCommandList cmd, d3d12_texture_t *texture, void *userdata)
 
void d3d12_create_fullscreen_quad_vbo (D3D12Device device, D3D12_VERTEX_BUFFER_VIEW *view, D3D12Resource *vbo)
 
DXGI_FORMAT d3d12_get_closest_match (D3D12Device device, D3D12_FEATURE_DATA_FORMAT_SUPPORT *desired)
 

Variables

D3D12_RENDER_TARGET_BLEND_DESC d3d12_blend_enable_desc
 

Macro Definition Documentation

◆ CINTERFACE

#define CINTERFACE

Function Documentation

◆ d3d12_create_buffer()

D3D12_GPU_VIRTUAL_ADDRESS d3d12_create_buffer ( D3D12Device  device,
UINT  size_in_bytes,
D3D12Resource buffer 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_create_fullscreen_quad_vbo()

void d3d12_create_fullscreen_quad_vbo ( D3D12Device  device,
D3D12_VERTEX_BUFFER_VIEW view,
D3D12Resource vbo 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_create_root_signature()

bool d3d12_create_root_signature ( D3D12Device  device,
D3D12_ROOT_SIGNATURE_DESC desc,
D3D12RootSignature out 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_create_sampler()

static INLINE D3D12_GPU_DESCRIPTOR_HANDLE d3d12_create_sampler ( D3D12Device  device,
D3D12_SAMPLER_DESC desc,
d3d12_descriptor_heap_t heap 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_descriptor_heap_slot_alloc()

static D3D12_CPU_DESCRIPTOR_HANDLE d3d12_descriptor_heap_slot_alloc ( d3d12_descriptor_heap_t heap)
static
Here is the caller graph for this function:

◆ d3d12_descriptor_heap_slot_free()

static void d3d12_descriptor_heap_slot_free ( d3d12_descriptor_heap_t heap,
D3D12_CPU_DESCRIPTOR_HANDLE  handle 
)
static
Here is the caller graph for this function:

◆ d3d12_get_closest_match()

DXGI_FORMAT d3d12_get_closest_match ( D3D12Device  device,
D3D12_FEATURE_DATA_FORMAT_SUPPORT desired 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_init_base()

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

◆ d3d12_init_descriptor_heap()

static void d3d12_init_descriptor_heap ( D3D12Device  device,
d3d12_descriptor_heap_t out 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_init_descriptors()

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

◆ d3d12_init_pipeline()

bool d3d12_init_pipeline ( D3D12Device  device,
D3DBlob  vs_code,
D3DBlob  ps_code,
D3DBlob  gs_code,
D3D12_GRAPHICS_PIPELINE_STATE_DESC desc,
D3D12PipelineState out 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_init_queue()

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

◆ d3d12_init_samplers()

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

◆ d3d12_init_swapchain()

bool d3d12_init_swapchain ( d3d12_video_t d3d12,
int  width,
int  height,
void corewindow 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_init_texture()

void d3d12_init_texture ( D3D12Device  device,
d3d12_texture_t texture 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_release_descriptor_heap()

static void d3d12_release_descriptor_heap ( d3d12_descriptor_heap_t heap)
inlinestatic
Here is the call graph for this function:

◆ d3d12_release_texture()

void d3d12_release_texture ( d3d12_texture_t texture)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_update_texture()

void d3d12_update_texture ( int  width,
int  height,
int  pitch,
DXGI_FORMAT  format,
const void data,
d3d12_texture_t texture 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ d3d12_upload_texture()

void d3d12_upload_texture ( D3D12GraphicsCommandList  cmd,
d3d12_texture_t texture,
void userdata 
)
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ d3d12_blend_enable_desc

D3D12_RENDER_TARGET_BLEND_DESC d3d12_blend_enable_desc
Initial value:
= {
}
Definition: d3d12.h:1219
Definition: d3d12.h:1243
#define FALSE
Definition: stb_vorbis.h:232
Definition: d3d12.h:1233
Definition: d3d12.h:1202
#define TRUE
Definition: stb_vorbis.h:231
Definition: d3d12.h:1201