Browse Source

nsight_aftermath_tracker: Fix SPIR-V module writes

ReinUsesLisp 5 năm trước cách đây
mục cha
commit
8f099af6a8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video_core/vulkan_common/nsight_aftermath_tracker.cpp

+ 1 - 1
src/video_core/vulkan_common/nsight_aftermath_tracker.cpp

@@ -99,7 +99,7 @@ void NsightAftermathTracker::SaveShader(std::span<const u32> spirv) const {
         LOG_ERROR(Render_Vulkan, "Failed to dump SPIR-V module with hash={:016x}", hash.hash);
         return;
     }
-    if (file.Write(spirv) != spirv.size()) {
+    if (file.WriteSpan(spirv) != spirv.size()) {
         LOG_ERROR(Render_Vulkan, "Failed to write SPIR-V module with hash={:016x}", hash.hash);
         return;
     }