M2(DX9): dual-mode DX9 mock-game render backend
Add render_dx09.cpp (selectable as `dx9ex` / `dx9`): renders the animated pattern with Clear + ColorFill (D3D9's built-in rect fill -- no shaders) and presents through a real D3D9 / D3D9Ex device. Two modes so the two D3D9 capture paths each have a matching game. Smoke-verified: both present frames and exit cleanly. The capture hook + frame-decode test land next. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -5,12 +5,13 @@ add_executable(coop_mock_game
|
||||
render_backend.cpp
|
||||
render_dx11.cpp
|
||||
render_dx12.cpp
|
||||
render_dx10.cpp)
|
||||
render_dx10.cpp
|
||||
render_dx09.cpp)
|
||||
|
||||
# Reuses the shared ToneSource (also used by coop_tone + the audio hook self-test).
|
||||
target_include_directories(coop_mock_game PRIVATE ${CMAKE_SOURCE_DIR}/tools/audio_tone)
|
||||
|
||||
target_link_libraries(coop_mock_game PRIVATE d3d11 d3d12 d3d10 dxgi ole32)
|
||||
target_link_libraries(coop_mock_game PRIVATE d3d11 d3d12 d3d10 d3d9 dxgi ole32)
|
||||
set_target_properties(coop_mock_game PROPERTIES OUTPUT_NAME "coop_mock_game")
|
||||
|
||||
# Test fixture -> stage next to the tests (alongside coop_tone), not in the deployable root.
|
||||
|
||||
Reference in New Issue
Block a user