fix(gpu): support Gen5 flat memory and 3D images (#587)

Vector-mesh UI text samples type-10 volume LUTs; treat MIMG DIM=2 as
Dim3D and transport depth through AGC and Vulkan so Z slices no longer
collapse into a single 2D plane.
This commit is contained in:
MarcelMediaDev
2026-07-24 13:44:58 +01:00
committed by GitHub
parent 21f964a0dc
commit 5228335f15
14 changed files with 1311 additions and 299 deletions
@@ -36,4 +36,23 @@ public sealed class VulkanGuestImageByteCountTests
expected,
VulkanVideoPresenter.GetGuestImageByteCount(format, width, height));
}
[Theory]
[InlineData(10u, 8u, 4u, 3u, 384UL)]
[InlineData(169u, 5u, 5u, 7u, 224UL)]
public void MultipliesSurfaceSizeByVolumeDepth(
uint format,
uint width,
uint height,
uint depth,
ulong expected)
{
Assert.Equal(
expected,
VulkanVideoPresenter.GetGuestImageByteCount(
format,
width,
height,
depth));
}
}