This commit is contained in:
jacob 2025-06-08 16:22:58 -05:00
commit 5a05229267

View File

@ -27,8 +27,8 @@
#pragma comment(lib, "dxguid")
#pragma comment(lib, "d3dcompiler")
#define DX12_WAIT_FRAME_LATENCY 1
#define DX12_ALLOW_TEARING 1
//#define DX12_WAIT_FRAME_LATENCY 1
//#define DX12_ALLOW_TEARING 1
#define DX12_SWAPCHAIN_BUFFER_COUNT (3)
#define DX12_SWAPCHAIN_FLAGS ((DX12_ALLOW_TEARING * DXGI_SWAP_CHAIN_FLAG_ALLOW_TEARING) | (DX12_WAIT_FRAME_LATENCY * DXGI_SWAP_CHAIN_FLAG_FRAME_LATENCY_WAITABLE_OBJECT))
@ -134,6 +134,11 @@ struct gpu_startup_receipt gpu_startup(struct work_startup_receipt *work_sr, str
__prof;
(UNUSED)work_sr;
=======
INTERNAL void dx12_init_shaders(void);
struct gpu_startup_receipt gpu_startup(struct sys_window *window)
{
/* Initialize handles pool */
G.handle_entries_mutex = sys_mutex_alloc();
G.handle_entries_arena = arena_alloc(GIGABYTE(64));