Lines Matching refs:GL_FRAMEBUFFER
43 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in checkBitCount()
92 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTexture, 0); in testTextureFormat()
138 glFramebufferRenderbuffer(GL_FRAMEBUFFER, attachmentType, GL_RENDERBUFFER, mRenderbuffer); in testRenderbufferMultisampleFormat()
147 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, in testZeroHeightRenderbuffer()
155 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer); in testSetUp()
295 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X, in TEST_P()
299 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
307 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
335 glBindFramebuffer(GL_FRAMEBUFFER, incompleteFBO); in TEST_P()
336 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, incompleteTexture, in TEST_P()
339 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
376 glBindFramebuffer(GL_FRAMEBUFFER, completeFBO); in TEST_P()
377 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
379 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
413 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
415 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderbuffer); in TEST_P()
417 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
422 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, attachments.data()); in TEST_P()
432 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
434 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, renderbuffer); in TEST_P()
436 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
441 glInvalidateSubFramebuffer(GL_FRAMEBUFFER, 1, attachments.data(), 5, 5, 10, 10); in TEST_P()
449 glBindFramebuffer(GL_FRAMEBUFFER, 0); in TEST_P()
462 glBindFramebuffer(GL_FRAMEBUFFER, 0); in TEST_P()
487 glBindFramebuffer(GL_FRAMEBUFFER, 0); in TEST_P()
553 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
557 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT, GL_RENDERBUFFER, in TEST_P()
559 EXPECT_GLENUM_NE(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
567 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
585 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 1); in TEST_P()
587 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
591 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
594 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 2); in TEST_P()
595 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
596 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 3); in TEST_P()
597 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
601 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 1); in TEST_P()
603 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
606 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 4); in TEST_P()
608 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
612 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
615 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 5); in TEST_P()
616 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
620 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 6); in TEST_P()
621 ExpectFramebufferCompleteOrUnsupported(GL_FRAMEBUFFER); in TEST_P()
632 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
645 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 1); in TEST_P()
646 EXPECT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
667 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
680 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 1); in TEST_P()
681 EXPECT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
700 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer.get()); in TEST_P()
709 glFramebufferTexture2D(GL_FRAMEBUFFER, attachment, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
721 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
722 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, renderbuffer); in TEST_P()
723 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
744 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
745 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texA, 0); in TEST_P()
746 glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, texB, 0, 0); in TEST_P()
747 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
760 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
779 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
797 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
816 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
833 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
840 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_RENDERBUFFER, rbo); in TEST_P()
847 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_RENDERBUFFER, rbo2); in TEST_P()
874 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
882 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, smallTexture, 0); in TEST_P()
883 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
898 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, largeTexture, 0); in TEST_P()
899 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
919 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
927 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, largeTexture, 0); in TEST_P()
928 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
943 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, smallTexture, 0); in TEST_P()
944 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
963 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
971 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in TEST_P()
972 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
987 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in TEST_P()
988 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1007 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
1015 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in TEST_P()
1016 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1031 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture, 0); in TEST_P()
1032 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1088 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + texIndex, GL_TEXTURE_2D, in TEST_P()
1142 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer.get()); in TEST_P()
1144 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, 1); in TEST_P()
1145 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, 1); in TEST_P()
1146 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1148 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, 0); in TEST_P()
1149 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, 0); in TEST_P()
1151 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1153 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, 1); in TEST_P()
1154 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, 0); in TEST_P()
1156 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1158 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, 0); in TEST_P()
1159 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, 1); in TEST_P()
1161 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1170 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer.get()); in TEST_P()
1192 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1194 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_RENDERBUFFER, in TEST_P()
1197 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1206 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer.get()); in TEST_P()
1225 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1227 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1230 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1240 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer.get()); in TEST_P()
1249 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1251 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_RENDERBUFFER, in TEST_P()
1254 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1263 glBindFramebuffer(GL_FRAMEBUFFER, mFramebuffer.get()); in TEST_P()
1268 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1272 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1275 glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
1287 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1293 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1295 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1307 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1308 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1309 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1334 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1340 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1342 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1355 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1356 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1357 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1386 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBORed.get()); in TEST_P()
1392 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1394 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1401 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBOGreen.get()); in TEST_P()
1407 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1409 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1420 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1421 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1422 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1447 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBORed.get()); in TEST_P()
1453 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1455 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1466 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO1); in TEST_P()
1467 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture1, 0); in TEST_P()
1468 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1483 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO2); in TEST_P()
1484 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture2, 0); in TEST_P()
1485 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1504 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1510 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1512 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1521 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1529 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveReadTexture, in TEST_P()
1537 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, resolveDrawTexture, in TEST_P()
1545 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1586 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1587 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1589 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1598 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1599 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 1); in TEST_P()
1600 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1631 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1637 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1639 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1645 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1647 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1663 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO1); in TEST_P()
1664 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture1, 0); in TEST_P()
1665 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1681 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO2); in TEST_P()
1682 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture2, 0); in TEST_P()
1683 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1712 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1718 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1720 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1726 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1728 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1744 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO1); in TEST_P()
1745 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture1, 0); in TEST_P()
1746 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1762 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO2); in TEST_P()
1763 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture2, 0); in TEST_P()
1764 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1784 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1790 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1792 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1804 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1805 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1806 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1844 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1850 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1852 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1858 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1860 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1876 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1877 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1878 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1912 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1918 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1920 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1932 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO); in TEST_P()
1933 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture, 0); in TEST_P()
1934 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1975 glBindFramebuffer(GL_FRAMEBUFFER, msaaFBO.get()); in TEST_P()
1981 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D_MULTISAMPLE, in TEST_P()
1983 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
1995 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO1); in TEST_P()
1996 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture1, 0); in TEST_P()
1997 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2022 glBindFramebuffer(GL_FRAMEBUFFER, resolveFBO2); in TEST_P()
2023 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, resolveTexture2, 0); in TEST_P()
2024 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2099 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_WIDTH, defaultWidth); in TEST_P()
2100 glFramebufferParameteri(GL_FRAMEBUFFER, GL_FRAMEBUFFER_DEFAULT_HEIGHT, defaultHeight); in TEST_P()
2101 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
2122 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
2141 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
2149 EXPECT_GLENUM_EQ(GL_FRAMEBUFFER_COMPLETE, glCheckFramebufferStatus(GL_FRAMEBUFFER)); in TEST_P()
2209 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
2210 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2213 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2223 glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, depthBuffer); in TEST_P()
2226 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2269 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2277 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2285 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0); in TEST_P()
2288 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2339 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer1); in TEST_P()
2347 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2355 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0); in TEST_P()
2356 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2359 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer2); in TEST_P()
2360 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0); in TEST_P()
2361 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2366 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer1); in TEST_P()
2381 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer2); in TEST_P()
2422 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2430 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2438 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0); in TEST_P()
2441 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2505 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2506 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2508 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2512 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, discard); in TEST_P()
2573 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer1); in TEST_P()
2574 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2576 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2578 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer2); in TEST_P()
2579 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2581 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2584 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer1); in TEST_P()
2602 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer2); in TEST_P()
2633 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2634 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2636 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2639 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2641 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, discard); in TEST_P()
2688 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2689 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2691 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2694 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2696 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, discard); in TEST_P()
2743 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2744 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2746 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2749 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2751 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, discard); in TEST_P()
2821 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2822 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 1); in TEST_P()
2824 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2826 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2899 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2900 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, 0); in TEST_P()
2901 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTexture, 0); in TEST_P()
2903 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
2906 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer); in TEST_P()
2948 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
2949 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texA, 0); in TEST_P()
2950 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, texB, 0); in TEST_P()
2957 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3001 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
3002 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color1, 0); in TEST_P()
3018 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color2, 0); in TEST_P()
3019 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3022 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, attachments.data()); in TEST_P()
3040 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, color1, 0); in TEST_P()
3041 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3042 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, attachments.data()); in TEST_P()
3091 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
3092 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTexture, in TEST_P()
3096 glFramebufferRenderbuffer(GL_FRAMEBUFFER, attachment2[i].attachment, GL_RENDERBUFFER, in TEST_P()
3100 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3110 glInvalidateFramebuffer(GL_FRAMEBUFFER, 1, discard); in TEST_P()
3213 glBindFramebuffer(GL_FRAMEBUFFER, framebuffer.get()); in TEST_P()
3215 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
3216 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3250 glBindFramebuffer(GL_FRAMEBUFFER, fbo); in TEST_P()
3251 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_CUBE_MAP_POSITIVE_X, in TEST_P()
3255 ASSERT_GLENUM_EQ(glCheckFramebufferStatus(GL_FRAMEBUFFER), in TEST_P()
3284 glBindFramebuffer(GL_FRAMEBUFFER, largeFbo); in TEST_P()
3290 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, largeTexture, 0); in TEST_P()
3291 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3299 glBindFramebuffer(GL_FRAMEBUFFER, smallFbo); in TEST_P()
3305 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, smallTexture, 0); in TEST_P()
3306 ASSERT_GL_FRAMEBUFFER_COMPLETE(GL_FRAMEBUFFER); in TEST_P()
3314 glBindFramebuffer(GL_FRAMEBUFFER, largeFbo); in TEST_P()
3353 glBindFramebuffer(GL_FRAMEBUFFER, fb); in TEST_P()
3359 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mutTex, 0); in TEST_P()
3365 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mutTex, 1); in TEST_P()