mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-06 13:30:00 +00:00
test(agc): give the mock context the placeholder of an oversized V#
The mock graphics context set only the null V# placeholder, so binding an unregistered V# past the range limit now found no buffer. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
7bbbf70eda
commit
207b88fca9
1 file changed
+1
@@ -6273,6 +6273,7 @@ void expectSingleAccepted(const ShaderRecompiler::DescriptorBinding& binding, st
|
||||
mock = MockVulkan{};
|
||||
auto context = mockContext();
|
||||
context.emptyBuffer = reinterpret_cast<VkBuffer>(std::uintptr_t{0x1000});
|
||||
context.oversizedBuffer = reinterpret_cast<VkBuffer>(std::uintptr_t{0x2000});
|
||||
const auto color = AgcDriver::Graphics::DecodeState(makeState()).color;
|
||||
{ AgcDriver::Graphics::ShaderResources resources(context, vertex, fragment, color, 0, 0); }
|
||||
Require(mock.live == 0, std::string(what) + " leaked Vulkan objects");
|
||||
|
||||
Reference in new issue
Block a user