Hash :
327796df
Author :
Date :
2024-06-24T10:58:28
FrameCapture: Add a new CapturedTest for glActiveTexture This CL adds a new test focused on Reset of glActiveTexture. It doesn't just add a new frame since the original test was getting quite cluttered. This should provide a blueprint for adding more tests in the future. Test: capture_tests.py Bug: angleproject:345851268 Change-Id: Ieac29031f55ca133d81ce5ba26d45199de38e874 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5714395 Reviewed-by: Roman Lavrov <romanl@google.com> Commit-Queue: Cody Northrop <cnorthrop@google.com> Reviewed-by: Mark Łobodziński <mark@lunarg.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
#include "CapturedTest_ActiveTextures_ES3_Vulkan.h"
#include "trace_fixture.h"
#include "angle_trace_gl.h"
// Private Functions
void InitReplay(void)
{
// binaryDataFileName = CapturedTest_ActiveTextures_ES3_Vulkan.angledata
// maxClientArraySize = 72
// maxClientArraySize = 72
// readBufferSize = 276
// resourceIDBufferSize = 0
// contextID = 3
// maxBuffer = 0
// maxContext = 3
// maxFenceNV = 0
// maxFramebuffer = 2
// maxImage = 0
// maxMemoryObject = 0
// maxProgramPipeline = 0
// maxQuery = 0
// maxRenderbuffer = 0
// maxSampler = 0
// maxSemaphore = 0
// maxShaderProgram = 5
// maxSurface = 1
// maxSync = 0
// maxTexture = 3
// maxTransformFeedback = 0
// maxVertexArray = 0
// maxegl_Sync = 0
InitializeReplay4("CapturedTest_ActiveTextures_ES3_Vulkan.angledata", 72, 276, 0, 3, 0, 3, 0, 2, 0, 0, 0, 0, 0, 0, 0, 5, 1, 0, 3, 0, 0, 0);
}
// Public Functions
void ReplayFrame(uint32_t frameIndex)
{
switch (frameIndex)
{
case 1:
ReplayFrame1();
break;
case 2:
ReplayFrame2();
break;
case 3:
ReplayFrame3();
break;
case 4:
ReplayFrame4();
break;
default:
break;
}
}