Phase 4
Some checks failed
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m43s
CI / Windows Release Package (push) Has been cancelled

This commit is contained in:
Aiden
2026-05-11 18:25:47 +10:00
parent 20476bdf63
commit bfc32c4a1e
10 changed files with 313 additions and 119 deletions

View File

@@ -70,12 +70,14 @@ void TestInputUploadRequestUsesLatestValue()
firstRequest.inputFrame.bytes = &firstPixel;
firstRequest.inputFrame.width = 1920;
firstRequest.videoState.captureTextureWidth = 1920;
firstRequest.ownedBytes = { 1, 2, 3, 4 };
queue.RequestInputUpload(firstRequest);
RenderInputUploadRequest secondRequest;
secondRequest.inputFrame.bytes = &secondPixel;
secondRequest.inputFrame.width = 1280;
secondRequest.videoState.captureTextureWidth = 1280;
secondRequest.ownedBytes = { 5, 6 };
queue.RequestInputUpload(secondRequest);
const RenderCommandQueueMetrics metrics = queue.GetMetrics();
@@ -88,6 +90,7 @@ void TestInputUploadRequestUsesLatestValue()
Expect(request.inputFrame.bytes == &secondPixel, "latest input upload bytes pointer wins");
Expect(request.inputFrame.width == 1280, "latest input upload frame wins");
Expect(request.videoState.captureTextureWidth == 1280, "latest input upload state wins");
Expect(request.ownedBytes.size() == 2 && request.ownedBytes[0] == 5 && request.ownedBytes[1] == 6, "latest input upload owned bytes win");
Expect(!queue.TryTakeInputUpload(request), "input upload request is removed after consume");
}