Cthulhu  0.2.10
Cthulhu compiler collection
draw.cpp File Reference
#include "draw/draw.hpp"
#include "imgui.h"
#include "backends/imgui_impl_win32.h"
#include "backends/imgui_impl_dx12.h"
#include "implot.h"
#include <d3d12.h>
#include <dxgi1_4.h>
#include <tchar.h>
Include dependency graph for draw.cpp:

Go to the source code of this file.

Data Structures

struct  FrameContext
 

Functions

bool CreateDeviceD3D (HWND hWnd)
 
void CleanupDeviceD3D ()
 
void CreateRenderTarget ()
 
void CleanupRenderTarget ()
 
void WaitForLastSubmittedFrame ()
 
FrameContextWaitForNextFrameResources ()
 
LRESULT WINAPI WndProc (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
bool CreateDeviceD3D (HWND hWnd, bool use_warp_adapter)
 
IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler (HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam)
 

Function Documentation

◆ CleanupDeviceD3D()

void CleanupDeviceD3D ( )

Definition at line 189 of file draw.cpp.

◆ CleanupRenderTarget()

void CleanupRenderTarget ( )

Definition at line 227 of file draw.cpp.

◆ CreateDeviceD3D() [1/2]

bool CreateDeviceD3D ( HWND  hWnd)

◆ CreateDeviceD3D() [2/2]

bool CreateDeviceD3D ( HWND  hWnd,
bool  use_warp_adapter 
)

Definition at line 63 of file draw.cpp.

◆ CreateRenderTarget()

void CreateRenderTarget ( )

Definition at line 216 of file draw.cpp.

◆ ImGui_ImplWin32_WndProcHandler()

IMGUI_IMPL_API LRESULT ImGui_ImplWin32_WndProcHandler ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

◆ WaitForLastSubmittedFrame()

void WaitForLastSubmittedFrame ( )

Definition at line 235 of file draw.cpp.

◆ WaitForNextFrameResources()

FrameContext * WaitForNextFrameResources ( )

Definition at line 251 of file draw.cpp.

◆ WndProc()

LRESULT WINAPI WndProc ( HWND  hWnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 282 of file draw.cpp.