Classes | Functions | Variables
imgui_impl_dx12.cpp File Reference
#include "imgui.h"
#include "imgui_impl_dx12.h"
#include <d3d12.h>
#include <dxgi1_4.h>
#include <d3dcompiler.h>
Include dependency graph for imgui_impl_dx12.cpp:

Go to the source code of this file.

Classes

struct  FrameResources
 
struct  VERTEX_CONSTANT_BUFFER
 

Functions

bool ImGui_ImplDX12_CreateDeviceObjects ()
 
static void ImGui_ImplDX12_CreateFontsTexture ()
 
bool ImGui_ImplDX12_Init (ID3D12Device *device, int num_frames_in_flight, DXGI_FORMAT rtv_format, ID3D12DescriptorHeap *cbv_srv_heap, D3D12_CPU_DESCRIPTOR_HANDLE font_srv_cpu_desc_handle, D3D12_GPU_DESCRIPTOR_HANDLE font_srv_gpu_desc_handle)
 
void ImGui_ImplDX12_InvalidateDeviceObjects ()
 
void ImGui_ImplDX12_NewFrame ()
 
void ImGui_ImplDX12_RenderDrawData (ImDrawData *draw_data, ID3D12GraphicsCommandList *ctx)
 
static void ImGui_ImplDX12_SetupRenderState (ImDrawData *draw_data, ID3D12GraphicsCommandList *ctx, FrameResources *fr)
 
void ImGui_ImplDX12_Shutdown ()
 
template<typename T >
static void SafeRelease (T *&res)
 

Variables

static UINT g_frameIndex = UINT_MAX
 
static D3D12_CPU_DESCRIPTOR_HANDLE g_hFontSrvCpuDescHandle = {}
 
static D3D12_GPU_DESCRIPTOR_HANDLE g_hFontSrvGpuDescHandle = {}
 
static UINT g_numFramesInFlight = 0
 
static ID3D12Device * g_pd3dDevice = NULL
 
static ID3D12Resource * g_pFontTextureResource = NULL
 
static FrameResourcesg_pFrameResources = NULL
 
static ID3D12PipelineState * g_pPipelineState = NULL
 
static ID3D10Blob * g_pPixelShaderBlob = NULL
 
static ID3D12RootSignature * g_pRootSignature = NULL
 
static ID3D10Blob * g_pVertexShaderBlob = NULL
 
static DXGI_FORMAT g_RTVFormat = DXGI_FORMAT_UNKNOWN
 

Function Documentation

◆ ImGui_ImplDX12_CreateDeviceObjects()

bool ImGui_ImplDX12_CreateDeviceObjects ( )

Definition at line 396 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_CreateFontsTexture()

static void ImGui_ImplDX12_CreateFontsTexture ( )
static

Definition at line 247 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_Init()

bool ImGui_ImplDX12_Init ( ID3D12Device *  device,
int  num_frames_in_flight,
DXGI_FORMAT  rtv_format,
ID3D12DescriptorHeap *  cbv_srv_heap,
D3D12_CPU_DESCRIPTOR_HANDLE  font_srv_cpu_desc_handle,
D3D12_GPU_DESCRIPTOR_HANDLE  font_srv_gpu_desc_handle 
)

Definition at line 616 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_InvalidateDeviceObjects()

void ImGui_ImplDX12_InvalidateDeviceObjects ( )

Definition at line 594 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_NewFrame()

void ImGui_ImplDX12_NewFrame ( )

Definition at line 658 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_RenderDrawData()

void ImGui_ImplDX12_RenderDrawData ( ImDrawData draw_data,
ID3D12GraphicsCommandList *  ctx 
)

Definition at line 130 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_SetupRenderState()

static void ImGui_ImplDX12_SetupRenderState ( ImDrawData draw_data,
ID3D12GraphicsCommandList *  ctx,
FrameResources fr 
)
static

Definition at line 73 of file imgui_impl_dx12.cpp.

◆ ImGui_ImplDX12_Shutdown()

void ImGui_ImplDX12_Shutdown ( )

Definition at line 646 of file imgui_impl_dx12.cpp.

◆ SafeRelease()

template<typename T >
static void SafeRelease ( T *&  res)
static

Definition at line 61 of file imgui_impl_dx12.cpp.

Variable Documentation

◆ g_frameIndex

UINT g_frameIndex = UINT_MAX
static

Definition at line 58 of file imgui_impl_dx12.cpp.

◆ g_hFontSrvCpuDescHandle

D3D12_CPU_DESCRIPTOR_HANDLE g_hFontSrvCpuDescHandle = {}
static

Definition at line 46 of file imgui_impl_dx12.cpp.

◆ g_hFontSrvGpuDescHandle

D3D12_GPU_DESCRIPTOR_HANDLE g_hFontSrvGpuDescHandle = {}
static

Definition at line 47 of file imgui_impl_dx12.cpp.

◆ g_numFramesInFlight

UINT g_numFramesInFlight = 0
static

Definition at line 57 of file imgui_impl_dx12.cpp.

◆ g_pd3dDevice

ID3D12Device* g_pd3dDevice = NULL
static

Definition at line 39 of file imgui_impl_dx12.cpp.

◆ g_pFontTextureResource

ID3D12Resource* g_pFontTextureResource = NULL
static

Definition at line 45 of file imgui_impl_dx12.cpp.

◆ g_pFrameResources

FrameResources* g_pFrameResources = NULL
static

Definition at line 56 of file imgui_impl_dx12.cpp.

◆ g_pPipelineState

ID3D12PipelineState* g_pPipelineState = NULL
static

Definition at line 43 of file imgui_impl_dx12.cpp.

◆ g_pPixelShaderBlob

ID3D10Blob* g_pPixelShaderBlob = NULL
static

Definition at line 41 of file imgui_impl_dx12.cpp.

◆ g_pRootSignature

ID3D12RootSignature* g_pRootSignature = NULL
static

Definition at line 42 of file imgui_impl_dx12.cpp.

◆ g_pVertexShaderBlob

ID3D10Blob* g_pVertexShaderBlob = NULL
static

Definition at line 40 of file imgui_impl_dx12.cpp.

◆ g_RTVFormat

DXGI_FORMAT g_RTVFormat = DXGI_FORMAT_UNKNOWN
static

Definition at line 44 of file imgui_impl_dx12.cpp.



libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03