fix(rendering): match empty packed submissions
The production dispatcher forces transparent deferral off when no top-level VAO was resolved, even if the frame alpha queue is active. Carry the same per-draw VAO sentinel into the compare-only packed classifier so its empty-submission state is exact rather than sampling only the later queue state.
This commit is contained in:
parent
29195fb255
commit
06e7754619
2 changed files with 43 additions and 4 deletions
|
|
@ -0,0 +1,23 @@
|
|||
using AcDream.App.Rendering.Wb;
|
||||
|
||||
namespace AcDream.App.Tests.Rendering.Wb;
|
||||
|
||||
public sealed class PackedDispatcherOracleTests
|
||||
{
|
||||
[Theory]
|
||||
[InlineData(0u, false, false)]
|
||||
[InlineData(0u, true, false)]
|
||||
[InlineData(7u, false, false)]
|
||||
[InlineData(7u, true, true)]
|
||||
public void TransparentDeferral_MatchesProductionNoVaoEarlyReturn(
|
||||
uint anyVao,
|
||||
bool alphaQueueCollecting,
|
||||
bool expected)
|
||||
{
|
||||
Assert.Equal(
|
||||
expected,
|
||||
WbDrawDispatcher.ShouldDeferPackedTransparent(
|
||||
anyVao,
|
||||
alphaQueueCollecting));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue