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
|
|
@ -54,18 +54,14 @@ public sealed class DirectionalShadowTransformBufferSetTests
|
|||
topologyBuildSequence: 7,
|
||||
transforms,
|
||||
ReadOnlySpan<int>.Empty);
|
||||
long before = GC.GetAllocatedBytesForCurrentThread();
|
||||
for (int iteration = 0; iteration < 256; iteration++)
|
||||
{
|
||||
buffers.Publish(
|
||||
ZeroAllocationProbe.AssertAllocatesNothing(
|
||||
"DirectionalShadowTransformBufferSet.Publish",
|
||||
() => buffers.Publish(
|
||||
warmed,
|
||||
topologyBuildSequence: 7,
|
||||
transforms,
|
||||
ReadOnlySpan<int>.Empty);
|
||||
}
|
||||
long allocated = GC.GetAllocatedBytesForCurrentThread() - before;
|
||||
|
||||
Assert.Equal(0, allocated);
|
||||
ReadOnlySpan<int>.Empty),
|
||||
batchSize: 256);
|
||||
Assert.Equal(buffersBefore, device.CreatedBuffers.Count);
|
||||
Assert.Equal(uploadsBefore, slotZero.UploadCount);
|
||||
Assert.Empty(device.OfKind<GpuRecordedHostStorageVisibility>());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue