Commit 973bd4ba by Shahbaz Youssefi Committed by Commit Bot

Complete I/O block GLSL tests

The tests meant to perform a draw call and validate the correctness of the shaders. Bug: angleproject:3580 Change-Id: I3a008d204ae3d7dceb731ba7a815ab54f38c2920 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2599938Reviewed-by: 's avatarJonah Ryan-Davis <jonahr@google.com> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
parent aff17499
...@@ -9012,6 +9012,18 @@ void main() ...@@ -9012,6 +9012,18 @@ void main()
ANGLE_GL_PROGRAM_WITH_GS(program, kVS, kGS, kFS); ANGLE_GL_PROGRAM_WITH_GS(program, kVS, kGS, kFS);
EXPECT_GL_NO_ERROR(); EXPECT_GL_NO_ERROR();
GLTexture color;
glBindTexture(GL_TEXTURE_2D, color);
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, 1, 1);
GLFramebuffer fbo;
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color, 0);
drawQuad(program, "position", 0);
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::white);
} }
// Test varying packing in presence of multiple I/O blocks // Test varying packing in presence of multiple I/O blocks
...@@ -9081,6 +9093,18 @@ void main() ...@@ -9081,6 +9093,18 @@ void main()
ANGLE_GL_PROGRAM(program, kVS, kFS); ANGLE_GL_PROGRAM(program, kVS, kFS);
EXPECT_GL_NO_ERROR(); EXPECT_GL_NO_ERROR();
GLTexture color;
glBindTexture(GL_TEXTURE_2D, color);
glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, 1, 1);
GLFramebuffer fbo;
glBindFramebuffer(GL_FRAMEBUFFER, fbo);
glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color, 0);
drawQuad(program, "position", 0);
EXPECT_PIXEL_COLOR_EQ(0, 0, GLColor::white);
} }
// Validate that link fails with I/O block member name mismatches. // Validate that link fails with I/O block member name mismatches.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment