diff --git a/examples/runtime/shaders/metal/cs_assao_apply.bin b/examples/runtime/shaders/metal/cs_assao_apply.bin index 14bca91a1..735af55a6 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_apply.bin and b/examples/runtime/shaders/metal/cs_assao_apply.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_importance_map.bin b/examples/runtime/shaders/metal/cs_assao_generate_importance_map.bin index a9b12854f..98022b691 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_importance_map.bin and b/examples/runtime/shaders/metal/cs_assao_generate_importance_map.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_q0.bin b/examples/runtime/shaders/metal/cs_assao_generate_q0.bin index 0fd663254..39cf8566a 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_q0.bin and b/examples/runtime/shaders/metal/cs_assao_generate_q0.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_q1.bin b/examples/runtime/shaders/metal/cs_assao_generate_q1.bin index 589df255e..7dc0dcacd 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_q1.bin and b/examples/runtime/shaders/metal/cs_assao_generate_q1.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_q2.bin b/examples/runtime/shaders/metal/cs_assao_generate_q2.bin index 5e198bc74..fd0ddd17d 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_q2.bin and b/examples/runtime/shaders/metal/cs_assao_generate_q2.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_q3.bin b/examples/runtime/shaders/metal/cs_assao_generate_q3.bin index 27d067c0f..fb07e7232 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_q3.bin and b/examples/runtime/shaders/metal/cs_assao_generate_q3.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_generate_q3base.bin b/examples/runtime/shaders/metal/cs_assao_generate_q3base.bin index 62cc72c83..acf666066 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_generate_q3base.bin and b/examples/runtime/shaders/metal/cs_assao_generate_q3base.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_load_counter_clear.bin b/examples/runtime/shaders/metal/cs_assao_load_counter_clear.bin index 5099c3c6a..37b074691 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_load_counter_clear.bin and b/examples/runtime/shaders/metal/cs_assao_load_counter_clear.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_non_smart_apply.bin b/examples/runtime/shaders/metal/cs_assao_non_smart_apply.bin index ee5934287..8880f6388 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_non_smart_apply.bin and b/examples/runtime/shaders/metal/cs_assao_non_smart_apply.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_non_smart_blur.bin b/examples/runtime/shaders/metal/cs_assao_non_smart_blur.bin index b96b8a125..1c03354de 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_non_smart_blur.bin and b/examples/runtime/shaders/metal/cs_assao_non_smart_blur.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_non_smart_half_apply.bin b/examples/runtime/shaders/metal/cs_assao_non_smart_half_apply.bin index 1259defd7..e14f549ac 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_non_smart_half_apply.bin and b/examples/runtime/shaders/metal/cs_assao_non_smart_half_apply.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_a.bin b/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_a.bin index fdcbd0750..1fdb6f8f0 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_a.bin and b/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_a.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_b.bin b/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_b.bin index 507b3fccc..3bf101f37 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_b.bin and b/examples/runtime/shaders/metal/cs_assao_postprocess_importance_map_b.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_prepare_depth_mip.bin b/examples/runtime/shaders/metal/cs_assao_prepare_depth_mip.bin index abb2f70a5..e068dd0bf 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_prepare_depth_mip.bin and b/examples/runtime/shaders/metal/cs_assao_prepare_depth_mip.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_prepare_depths.bin b/examples/runtime/shaders/metal/cs_assao_prepare_depths.bin index 025dd9954..2a66b8370 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_prepare_depths.bin and b/examples/runtime/shaders/metal/cs_assao_prepare_depths.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals.bin b/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals.bin index 402e781b2..124c4b36b 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals.bin and b/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals_half.bin b/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals_half.bin index 87a30249a..9ad7f532e 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals_half.bin and b/examples/runtime/shaders/metal/cs_assao_prepare_depths_and_normals_half.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_prepare_depths_half.bin b/examples/runtime/shaders/metal/cs_assao_prepare_depths_half.bin index 46d0693a7..ac6f0078e 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_prepare_depths_half.bin and b/examples/runtime/shaders/metal/cs_assao_prepare_depths_half.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_smart_blur.bin b/examples/runtime/shaders/metal/cs_assao_smart_blur.bin index 851765104..fc99d0b3b 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_smart_blur.bin and b/examples/runtime/shaders/metal/cs_assao_smart_blur.bin differ diff --git a/examples/runtime/shaders/metal/cs_assao_smart_blur_wide.bin b/examples/runtime/shaders/metal/cs_assao_smart_blur_wide.bin index e5c527ace..b1476fd80 100644 Binary files a/examples/runtime/shaders/metal/cs_assao_smart_blur_wide.bin and b/examples/runtime/shaders/metal/cs_assao_smart_blur_wide.bin differ diff --git a/examples/runtime/shaders/metal/cs_indirect.bin b/examples/runtime/shaders/metal/cs_indirect.bin index ddd790ce3..ae6629794 100644 Binary files a/examples/runtime/shaders/metal/cs_indirect.bin and b/examples/runtime/shaders/metal/cs_indirect.bin differ diff --git a/examples/runtime/shaders/metal/cs_init_instances.bin b/examples/runtime/shaders/metal/cs_init_instances.bin index 533630606..cc23fccf6 100644 Binary files a/examples/runtime/shaders/metal/cs_init_instances.bin and b/examples/runtime/shaders/metal/cs_init_instances.bin differ diff --git a/examples/runtime/shaders/metal/cs_update_instances.bin b/examples/runtime/shaders/metal/cs_update_instances.bin index f9450f7df..3829ebb84 100644 Binary files a/examples/runtime/shaders/metal/cs_update_instances.bin and b/examples/runtime/shaders/metal/cs_update_instances.bin differ diff --git a/tools/shaderc/shaderc_spirv.cpp b/tools/shaderc/shaderc_spirv.cpp index 0463cbbb2..e704568b0 100644 --- a/tools/shaderc/shaderc_spirv.cpp +++ b/tools/shaderc/shaderc_spirv.cpp @@ -844,9 +844,6 @@ namespace bgfx { namespace spirv { unsigned binding = msl.get_decoration(resource.id, spv::DecorationBinding); msl.set_decoration(resource.id, spv::DecorationBinding, binding + 1); - - // workaround spirv -> msl codegen problem: same name was used as struct type and function parameter name - msl.set_name(resource.id, "_" + msl.get_name(resource.id)); } std::string source = msl.compile();