mirror of
https://github.com/par274/sharpemu.git
synced 2026-07-31 06:59:45 +08:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user