fix: 修复 CMakeLists.txt 路径并添加 stbi 库
This commit is contained in:
2
D3D12_engine_log.txt
Normal file
2
D3D12_engine_log.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
[2026-03-15 17:36:10] [DEBUG] [Rendering] [DEBUG] D3D12 Test Application Started
|
||||||
|
|
||||||
@@ -5,7 +5,13 @@ project(D3D12)
|
|||||||
add_executable(D3D12
|
add_executable(D3D12
|
||||||
WIN32
|
WIN32
|
||||||
main.cpp
|
main.cpp
|
||||||
${CMAKE_SOURCE_DIR}/engine/third_party/stbi/stb_image.cpp
|
${CMAKE_SOURCE_DIR}/MVS/D3D12/stbi/stb_image.cpp
|
||||||
|
)
|
||||||
|
|
||||||
|
target_include_directories(D3D12 PRIVATE
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}
|
||||||
|
${CMAKE_SOURCE_DIR}/MVS/D3D12/stbi
|
||||||
|
${CMAKE_SOURCE_DIR}/engine/include
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(D3D12 PRIVATE
|
target_compile_definitions(D3D12 PRIVATE
|
||||||
|
|||||||
2
tests/D3D12/stbi/stb_image.cpp
Normal file
2
tests/D3D12/stbi/stb_image.cpp
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
#define STB_IMAGE_IMPLEMENTATION
|
||||||
|
#include "stb_image.h"
|
||||||
7194
tests/D3D12/stbi/stb_image.h
Normal file
7194
tests/D3D12/stbi/stb_image.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user