diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2021-04-11 07:50:30 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:27 +0200 |
commit | 479ca00071ccaab6ca9ac28daf375e1ed15dc447 (patch) | |
tree | 2054d994b73a6b1862099a95b069914a347e5e46 /src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | |
parent | spirv: Move phi node patching to a separate function (diff) | |
download | yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar.gz yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar.bz2 yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar.lz yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar.xz yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.tar.zst yuzu-479ca00071ccaab6ca9ac28daf375e1ed15dc447.zip |
Diffstat (limited to 'src/video_core/vulkan_common/nsight_aftermath_tracker.cpp')
-rw-r--r-- | src/video_core/vulkan_common/nsight_aftermath_tracker.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp index 758c038ba..209cb1e0a 100644 --- a/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp +++ b/src/video_core/vulkan_common/nsight_aftermath_tracker.cpp @@ -73,12 +73,11 @@ NsightAftermathTracker::~NsightAftermathTracker() { } } -void NsightAftermathTracker::SaveShader(const std::vector<u32>& spirv) const { +void NsightAftermathTracker::SaveShader(std::span<const u32> spirv) const { if (!initialized) { return; } - - std::vector<u32> spirv_copy = spirv; + std::vector<u32> spirv_copy(spirv.begin(), spirv.end()); GFSDK_Aftermath_SpirvCode shader; shader.pData = spirv_copy.data(); shader.size = static_cast<u32>(spirv_copy.size() * 4); |