From a9a26a36751d44d234a895f55813eec0b8891920 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 20:22:57 +0000 Subject: [PATCH 1/2] Initial plan From f57e4713b5784107bc134b00935be28cddbe1a6c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 2 Sep 2026 20:29:43 +0000 Subject: [PATCH 2/2] Fix iOS shader header generation Co-authored-by: JMillz269 <24706996+JMillz269@users.noreply.github.com> --- .github/workflows/build-ios-ipa.yml | 2 +- UnleashedRecomp/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-ios-ipa.yml b/.github/workflows/build-ios-ipa.yml index 6ea38d90..6bd22faa 100644 --- a/.github/workflows/build-ios-ipa.yml +++ b/.github/workflows/build-ios-ipa.yml @@ -66,7 +66,7 @@ jobs: ../.. # Build only the shader headers (this generates the .spirv.h files) - cmake --build . --target UnleashedRecomp 2>&1 | grep -E "Generating|spirv.h" || true + cmake --build . --target UnleashedRecompShaders cd ../.. echo "SPIR-V headers generated successfully" diff --git a/UnleashedRecomp/CMakeLists.txt b/UnleashedRecomp/CMakeLists.txt index 3a12863e..4d375dac 100644 --- a/UnleashedRecomp/CMakeLists.txt +++ b/UnleashedRecomp/CMakeLists.txt @@ -575,6 +575,7 @@ function(compile_shader FILE_PATH TARGET_NAME) DEPENDS ${HLSL_FILE_PATH} ) target_sources(UnleashedRecomp PRIVATE ${HLSL_FILE_PATH}.dxil.h) + set_property(GLOBAL APPEND PROPERTY UNLEASHED_RECOMP_SHADER_OUTPUTS ${HLSL_FILE_PATH}.dxil.h) endif() add_custom_command( OUTPUT ${HLSL_FILE_PATH}.spirv.h @@ -582,6 +583,7 @@ function(compile_shader FILE_PATH TARGET_NAME) DEPENDS ${HLSL_FILE_PATH} ) target_sources(UnleashedRecomp PRIVATE ${HLSL_FILE_PATH}.spirv.h) + set_property(GLOBAL APPEND PROPERTY UNLEASHED_RECOMP_SHADER_OUTPUTS ${HLSL_FILE_PATH}.spirv.h) endfunction() function(compile_vertex_shader FILE_PATH) @@ -616,6 +618,8 @@ compile_pixel_shader(resolve_msaa_depth_2x) compile_pixel_shader(resolve_msaa_depth_4x) compile_pixel_shader(resolve_msaa_depth_8x) +get_property(UNLEASHED_RECOMP_SHADER_OUTPUTS GLOBAL PROPERTY UNLEASHED_RECOMP_SHADER_OUTPUTS) +add_custom_target(UnleashedRecompShaders DEPENDS ${UNLEASHED_RECOMP_SHADER_OUTPUTS}) set(RESOURCES_SOURCE_PATH "${PROJECT_SOURCE_DIR}/../UnleashedRecompResources") set(RESOURCES_OUTPUT_PATH "${PROJECT_SOURCE_DIR}/res")