test(ci): harden scheduling and allocation gates
This commit is contained in:
parent
c4608b1127
commit
d123c4b67c
11 changed files with 101 additions and 87 deletions
|
|
@ -38,15 +38,11 @@ public sealed class VulkanDrawBindingStateTests
|
|||
var state = new VulkanDrawBindingState();
|
||||
state.MarkBound(pipelineLayout: 30, packGeneration: 8);
|
||||
|
||||
long before = GC.GetAllocatedBytesForCurrentThread();
|
||||
for (int iteration = 0; iteration < 10_000; iteration++)
|
||||
{
|
||||
Assert.False(state.RequiresBind(
|
||||
ZeroAllocationProbe.AssertAllocatesNothing(
|
||||
"VulkanDrawBindingState.RequiresBind",
|
||||
() => _ = state.RequiresBind(
|
||||
pipelineLayout: 30,
|
||||
packGeneration: 8));
|
||||
}
|
||||
long allocated = GC.GetAllocatedBytesForCurrentThread() - before;
|
||||
|
||||
Assert.Equal(0, allocated);
|
||||
packGeneration: 8),
|
||||
batchSize: 10_000);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue