From ce571cb6cad0b5e385a50490dd38d714468a4f42 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 1 Feb 2024 03:44:21 +0300 Subject: [PATCH] vk: Allow indexed lookup for sampler and IA binding points in overlay passes --- rpcs3/Emu/RSX/VK/VKOverlays.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/VK/VKOverlays.h b/rpcs3/Emu/RSX/VK/VKOverlays.h index 7b6efc7f68..edce672de8 100644 --- a/rpcs3/Emu/RSX/VK/VKOverlays.h +++ b/rpcs3/Emu/RSX/VK/VKOverlays.h @@ -96,6 +96,9 @@ namespace vk return {}; } + int sampler_location(int index) const { return 1 + index; } + int input_attachment_location(int index) const { return 1 + m_num_usable_samplers + index; } + template void upload_vertex_data(T* data, u32 count) { @@ -216,7 +219,7 @@ namespace vk float data[4]; } - config; + config = {}; video_out_calibration_pass();