aboutsummaryrefslogtreecommitdiff
path: root/hello
diff options
context:
space:
mode:
Diffstat (limited to 'hello')
-rw-r--r--hello/CMakeLists.txt9
-rw-r--r--hello/main.cc9
2 files changed, 10 insertions, 8 deletions
diff --git a/hello/CMakeLists.txt b/hello/CMakeLists.txt
index 90a0d78..ac9f285 100644
--- a/hello/CMakeLists.txt
+++ b/hello/CMakeLists.txt
@@ -1,7 +1,10 @@
1cmake_minimum_required(VERSION 3.20) 1cmake_minimum_required(VERSION 3.25)
2 2
3add_executable(hello main.cc) 3project(hello)
4 4
5target_link_libraries(hello 5add_executable(hello
6 main.cc)
7
8target_link_libraries(hello PRIVATE
6 dxcommon 9 dxcommon
7 dxwindow) 10 dxwindow)
diff --git a/hello/main.cc b/hello/main.cc
index 8e41d4b..47a2aba 100644
--- a/hello/main.cc
+++ b/hello/main.cc
@@ -1,14 +1,13 @@
1#include <dxcommon.h> 1#include <dxcommon.h>
2#include <dxwindow.h>
3
4#include <d3d12.h>
5#include <dxgi1_4.h>
6#include <directx/d3dx12.h>
7 2
8#include <cassert> 3#include <cassert>
9#include <cstdio> 4#include <cstdio>
10 5
6import dxcommon;
7import dxwindow;
8
11using namespace dx; 9using namespace dx;
10using Microsoft::WRL::ComPtr;
12 11
13struct D3DSettings 12struct D3DSettings
14{ 13{