fix: 修复 CMakeLists.txt 路径并添加 stbi 库

This commit is contained in:
2026-03-15 17:37:00 +08:00
parent 4881aee70a
commit 182025be6a
4 changed files with 7205 additions and 1 deletions

View File

@@ -5,7 +5,13 @@ project(D3D12)
add_executable(D3D12
WIN32
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

View File

@@ -0,0 +1,2 @@
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"

7194
tests/D3D12/stbi/stb_image.h Normal file

File diff suppressed because it is too large Load Diff