Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,3 @@ add_subdirectory(ShockGraph)
if(SHOCKGRAPH_BUILD_VISUAL_TESTS)
add_subdirectory(VisualTests)
endif()


set(COMPILE_COMMANDS_FILE "${CMAKE_BINARY_DIR}/compile_commands.json")
set(DESTINATION_FILE "${CMAKE_SOURCE_DIR}/compile_commands.json")

if(EXISTS "${CMAKE_BINARY_DIR}/compile_commands.json")
# Add a custom command to copy compile_commands.json after the build
add_custom_command(OUTPUT "${CMAKE_SOURCE_DIR}/compile_commands.json"
COMMAND ${CMAKE_COMMAND} -E copy
"${CMAKE_BINARY_DIR}/compile_commands.json"
"${CMAKE_SOURCE_DIR}"
DEPENDS "${CMAKE_BINARY_DIR}/compile_commands.json"
COMMENT "Copying compile_commands.json to source directory"
)

# Make sure the custom command runs as part of the build. This attaches the
# command to the ALL target, meaning it runs every time you build the project.
add_custom_target(CopyCompileCommands ALL
DEPENDS "${CMAKE_SOURCE_DIR}/compile_commands.json"
)
else()
message(STATUS "compile_commands.json not found in build directory. Skipping copy.")
endif()
7 changes: 7 additions & 0 deletions ShockGraph/TaskGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,13 @@ namespace PyroshockStudios {
}
mSwapChains.clear();
mInternalTasks.clear();
// Make sure to reset tasks as these may require setup again!
for (auto& task : mTasks) {
auto& setupData = task->GetTask()->mSetupData;
setupData.accelerationStructureDepends.clear();
setupData.bufferDepends.clear();
setupData.imageDepends.clear();
}
mTasks.clear();
mBatches.clear();
mAllTaskRefs.clear();
Expand Down
2 changes: 1 addition & 1 deletion vendor/PyroPlatform
2 changes: 1 addition & 1 deletion vendor/PyroRHI
Loading