fix: game_test standalone D3D11 rendering verified, debug logs cleaned

- PS HLSL struct syntax incompatible with MinGW D3DCompile
- Use semantic params instead: float4 main(float4 pos:SV_POSITION, float4 col:COLOR)
- Separate error blobs for VS/PS compilation
- CMakeLists: add dxguid to scene_test target
- Verified: 4 colored 3D cubes render correctly
This commit is contained in:
shuiyu1123 committed 2026-07-11 18:01:51 +08:00
1 parent ac17c805f7
commit 2653926d85
1 file changed
+1 -1
+1 -1
View File
@@ -69,7 +69,7 @@ target_link_libraries(ly_interpreter Engine d3d11 dxgi d3dcompiler ole32 oleaut3
set_target_properties(ly_interpreter PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
add_executable(scene_test WIN32 Demo/game_test.c)
target_link_libraries(scene_test d3d11 dxgi d3dcompiler ole32 oleaut32 uuid gdi32 user32 kernel32 winmm)
target_link_libraries(scene_test d3d11 dxgi d3dcompiler dxguid ole32 oleaut32 uuid gdi32 user32 kernel32 winmm)
set_target_properties(scene_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/build)
add_executable(light_test WIN32 Demo/light_test.c)