[shader_recompiler] Fix guest image byte count calculation for Vulkan video presenter (#395)

This commit is contained in:
Berk
2026-07-18 16:09:26 +03:00
committed by GitHub
parent 5309f384cf
commit a709ccca17
4 changed files with 348 additions and 43 deletions
+4 -1
View File
@@ -7920,7 +7920,10 @@ public static partial class AgcExports
return;
}
var byteCount = (ulong)target.Width * target.Height * 4;
var byteCount = VulkanVideoPresenter.GetGuestImageByteCount(
target.Format,
target.Width,
target.Height);
if (byteCount == 0 || byteCount > MaxPresentedTextureBytes)
{
return;