feat(render): implement Campaign AR and terrain fidelity
This commit is contained in:
parent
99cf26e00c
commit
7a5f96ede5
368 changed files with 50611 additions and 950 deletions
|
|
@ -0,0 +1,27 @@
|
|||
using AcDream.App.Rendering.Gpu.Vk;
|
||||
|
||||
namespace AcDream.App.Tests.Rendering.Gpu.Vk;
|
||||
|
||||
public sealed class VulkanDirectionalMultiviewContractTests
|
||||
{
|
||||
[Fact]
|
||||
public void LowMaskCoversBothAttachmentLayersInOneBarrierRange()
|
||||
{
|
||||
VulkanDirectionalMultiviewRange range =
|
||||
VulkanDirectionalMultiviewContract.Resolve(0b11, 2);
|
||||
|
||||
Assert.Equal(0u, range.BaseLayer);
|
||||
Assert.Equal(2u, range.LayerCount);
|
||||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData(0u)]
|
||||
[InlineData(0b01u)]
|
||||
[InlineData(0b10u)]
|
||||
[InlineData(0b111u)]
|
||||
public void PartialOrExtraMaskFailsBeforeRecording(uint viewMask)
|
||||
{
|
||||
Assert.Throws<NotSupportedException>(() =>
|
||||
VulkanDirectionalMultiviewContract.Resolve(viewMask, 2));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue