diff options
Diffstat (limited to 'hello')
| -rw-r--r-- | hello/CMakeLists.txt | 9 | ||||
| -rw-r--r-- | hello/main.cc | 9 |
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 @@ | |||
| 1 | cmake_minimum_required(VERSION 3.20) | 1 | cmake_minimum_required(VERSION 3.25) |
| 2 | 2 | ||
| 3 | add_executable(hello main.cc) | 3 | project(hello) |
| 4 | 4 | ||
| 5 | target_link_libraries(hello | 5 | add_executable(hello |
| 6 | main.cc) | ||
| 7 | |||
| 8 | target_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 | ||
| 6 | import dxcommon; | ||
| 7 | import dxwindow; | ||
| 8 | |||
| 11 | using namespace dx; | 9 | using namespace dx; |
| 10 | using Microsoft::WRL::ComPtr; | ||
| 12 | 11 | ||
| 13 | struct D3DSettings | 12 | struct D3DSettings |
| 14 | { | 13 | { |
