Home
last modified time | relevance | path

Searched refs:GL_TEXTURE_2D (Results 1 – 25 of 537) sorted by relevance

12345678910>>...22

/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
DCopyCompressedTextureTest.cpp118 glBindTexture(GL_TEXTURE_2D, mTextures[0]); in TEST_P()
119 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
120 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in TEST_P()
121 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_P()
122 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
123 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, 4, 4, 0, in TEST_P()
127 glBindTexture(GL_TEXTURE_2D, mTextures[1]); in TEST_P()
128 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
129 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in TEST_P()
130 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
[all …]
DDXT1CompressedTextureTest.cpp72 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
73 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in TEST_P()
74 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in TEST_P()
75 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
76 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in TEST_P()
78 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_0_width, in TEST_P()
80 glCompressedTexImage2D(GL_TEXTURE_2D, 1, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_1_width, in TEST_P()
82 glCompressedTexImage2D(GL_TEXTURE_2D, 2, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_2_width, in TEST_P()
84 glCompressedTexImage2D(GL_TEXTURE_2D, 3, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_3_width, in TEST_P()
86 glCompressedTexImage2D(GL_TEXTURE_2D, 4, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, pixel_4_width, in TEST_P()
[all …]
DCopyTextureTest.cpp32 glBindTexture(GL_TEXTURE_2D, mTextures[1]); in testSetUp()
34 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in testSetUp()
35 glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in testSetUp()
36 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in testSetUp()
37 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in testSetUp()
41 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextures[1], in testSetUp()
76 glBindTexture(GL_TEXTURE_2D, sourceTexture); in testGradientDownsampleUniqueValues()
77 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 256, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, in testGradientDownsampleUniqueValues()
81 glBindTexture(GL_TEXTURE_2D, destTexture); in testGradientDownsampleUniqueValues()
82 glCopyTextureCHROMIUM(sourceTexture, 0, GL_TEXTURE_2D, destTexture, 0, destFormat, destType, in testGradientDownsampleUniqueValues()
[all …]
DETCTextureTest.cpp46 glBindTexture(GL_TEXTURE_2D, mTexture); in TEST_P()
49 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_ETC1_RGB8_LOSSY_DECODE_ANGLE, 4, 4, 0, in TEST_P()
55 glCompressedTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 4, 4, GL_ETC1_RGB8_LOSSY_DECODE_ANGLE, in TEST_P()
59 glCompressedTexImage2D(GL_TEXTURE_2D, 1, GL_ETC1_RGB8_LOSSY_DECODE_ANGLE, 2, 2, 0, in TEST_P()
63 glCompressedTexImage2D(GL_TEXTURE_2D, 2, GL_ETC1_RGB8_LOSSY_DECODE_ANGLE, 1, 1, 0, in TEST_P()
78 glBindTexture(GL_TEXTURE_2D, mTexture); in TEST_P()
86 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGB8_LOSSY_DECODE_ETC2_ANGLE, 8, 8, 0, in TEST_P()
92 glCompressedTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 8, 8, in TEST_P()
98 glCompressedTexImage2D(GL_TEXTURE_2D, 1, GL_COMPRESSED_RGB8_LOSSY_DECODE_ETC2_ANGLE, 4, 4, in TEST_P()
102 glCompressedTexImage2D(GL_TEXTURE_2D, 2, GL_COMPRESSED_RGB8_LOSSY_DECODE_ETC2_ANGLE, 2, 2, in TEST_P()
[all …]
DTextureTest.cpp161 glBindTexture(GL_TEXTURE_2D, mFramebufferColorTexture); in setUpFramebuffer()
162 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in setUpFramebuffer()
164 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in setUpFramebuffer()
168 glBindTexture(GL_TEXTURE_2D, 0); in setUpFramebuffer()
176 glBindTexture(GL_TEXTURE_2D, texture2D); in create2DTexture()
177 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in create2DTexture()
311 glBindTexture(GL_TEXTURE_2D, textures[0]); in testFloatCopySubImage()
314 glTexStorage2D(GL_TEXTURE_2D, 1, sourceImageFormat, 2, 2); in testFloatCopySubImage()
318 glTexStorage2DEXT(GL_TEXTURE_2D, 1, sourceImageFormat, 2, 2); in testFloatCopySubImage()
320 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in testFloatCopySubImage()
[all …]
DDepthStencilFormatsTest.cpp44 glBindTexture(GL_TEXTURE_2D, tex); in checkTexImageFormatSupport()
45 glTexImage2D(GL_TEXTURE_2D, 0, format, 1, 1, 0, format, type, nullptr); in checkTexImageFormatSupport()
57 glBindTexture(GL_TEXTURE_2D, tex); in checkTexStorageFormatSupport()
58 glTexStorage2DEXT(GL_TEXTURE_2D, 1, internalFormat, 1, 1); in checkTexStorageFormatSupport()
80 glBindTexture(GL_TEXTURE_2D, tex); in verifyDepthRenderBuffer()
81 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in verifyDepthRenderBuffer()
91 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0); in verifyDepthRenderBuffer()
250 glBindTexture(GL_TEXTURE_2D, tex); in depthStencilReadbackCase()
251 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in depthStencilReadbackCase()
252 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in depthStencilReadbackCase()
[all …]
DFramebufferTest.cpp81 glBindTexture(GL_TEXTURE_2D, mTexture); in testTextureFormat()
85 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, 1, 1); in testTextureFormat()
89 glTexStorage2DEXT(GL_TEXTURE_2D, 1, internalFormat, 1, 1); in testTextureFormat()
92 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTexture, 0); in testTextureFormat()
332 glBindTexture(GL_TEXTURE_2D, incompleteTexture); in TEST_P()
336 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, incompleteTexture, in TEST_P()
342 glBindTexture(GL_TEXTURE_2D, completeTexture); in TEST_P()
343 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8, getWindowWidth(), getWindowHeight()); in TEST_P()
347 glFramebufferTexture2D(GL_DRAW_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in TEST_P()
570 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
[all …]
DCopyTexImageTest.cpp47 glBindTexture(GL_TEXTURE_2D, mFboTextures[i]); in initializeResources()
48 glTexImage2D(GL_TEXTURE_2D, 0, format, kFboSizes[i], kFboSizes[i], 0, format, type, in initializeResources()
52 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in initializeResources()
53 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in initializeResources()
56 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in initializeResources()
80 glBindTexture(GL_TEXTURE_2D, texture); in verifyResults()
96 glBindTexture(GL_TEXTURE_2D, tex); in runCopyTexImageTest()
99 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in runCopyTexImageTest()
100 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in runCopyTexImageTest()
112 glCopyTexImage2D(GL_TEXTURE_2D, 0, format, 0, 0, kFboSizes[i], kFboSizes[i], 0); in runCopyTexImageTest()
[all …]
DSRGBTextureTest.cpp100 glBindTexture(GL_TEXTURE_2D, tex); in TEST_P()
103 glTexImage2D(GL_TEXTURE_2D, 0, getSRGB8TextureInternalFormat(), 1, 1, 0, in TEST_P()
109 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, getSRGB8TextureFormat(), GL_UNSIGNED_BYTE, in TEST_P()
114 glGenerateMipmap(GL_TEXTURE_2D); in TEST_P()
134 glBindTexture(GL_TEXTURE_2D, tex); in TEST_P()
137 glTexImage2D(GL_TEXTURE_2D, 0, getSRGBA8TextureInternalFormat(), 1, 1, 0, in TEST_P()
143 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, getSRGBA8TextureFormat(), GL_UNSIGNED_BYTE, in TEST_P()
147 glGenerateMipmap(GL_TEXTURE_2D); in TEST_P()
172 glBindTexture(GL_TEXTURE_2D, tex); in TEST_P()
175 glTexImage2D(GL_TEXTURE_2D, 0, getSRGBA8TextureInternalFormat(), 1, 1, 0, in TEST_P()
[all …]
DMipmapTest.cpp199 glBindTexture(GL_TEXTURE_2D, mTexture2D); in testSetUp()
200 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, getWindowWidth(), getWindowHeight(), 0, GL_RGB, in testSetUp()
202 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in testSetUp()
203 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in testSetUp()
510 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
511 glTexImage2D(GL_TEXTURE_2D, 2, GL_RGBA, 8, 8, 0, GL_RGBA, GL_UNSIGNED_BYTE, kRedData.data()); in TEST_P()
512 glTexImage2D(GL_TEXTURE_2D, 3, GL_RGBA, 4, 4, 0, GL_RGBA, GL_UNSIGNED_BYTE, kGreenData.data()); in TEST_P()
513 glTexImage2D(GL_TEXTURE_2D, 4, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, kBlueData.data()); in TEST_P()
516 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 2); in TEST_P()
517 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAX_LEVEL, 4); in TEST_P()
[all …]
DSixteenBppTextureTest.cpp95 glGenerateMipmap(GL_TEXTURE_2D); in simpleValidationBase()
113 glBindTexture(GL_TEXTURE_2D, 0); in simpleValidationBase()
114 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, tex, 0); in simpleValidationBase()
152 glBindTexture(GL_TEXTURE_2D, tex.get()); in TEST_P()
153 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 2, 2, 0, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, nullptr); in TEST_P()
154 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_P()
155 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
159 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 2, 2, GL_RGB, GL_UNSIGNED_SHORT_5_6_5, pixels); in TEST_P()
178 glBindTexture(GL_TEXTURE_2D, tex.get()); in TEST_P()
179 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_SHORT_5_5_5_1, nullptr); in TEST_P()
[all …]
DDrawBuffersTest.cpp67 glBindTexture(GL_TEXTURE_2D, mTextures[texIndex]); in setupTest()
68 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindowWidth(), getWindowHeight(), 0, GL_RGBA, in setupTest()
272 glBindTexture(GL_TEXTURE_2D, mTextures[0]); in TEST_P()
273 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, mTextures[0], 0); in TEST_P()
284 verifyAttachment2D(1, mTextures[0], GL_TEXTURE_2D, 0); in TEST_P()
304 glBindTexture(GL_TEXTURE_2D, mTextures[0]); in TEST_P()
305 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, mTextures[0], 0); in TEST_P()
319 verifyAttachment2D(1, mTextures[0], GL_TEXTURE_2D, 0); in TEST_P()
325 verifyAttachment2DColor(1, mTextures[0], GL_TEXTURE_2D, 0, GLColor(255u, 0, 0, 255u)); in TEST_P()
331 verifyAttachment2DColor(1, mTextures[0], GL_TEXTURE_2D, 0, GLColor(255u, 255u, 0, 255u)); in TEST_P()
[all …]
DS3TCTextureSizesTest.cpp81 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
82 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_P()
83 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
84 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
85 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in TEST_P()
90 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, 8, 8, 0, 32, in TEST_P()
95 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, 8, 4, 0, 16, in TEST_P()
100 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, 8, 4, 0, 16, in TEST_P()
105 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA_S3TC_DXT1_EXT, 4, 4, 0, 8, in TEST_P()
123 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
[all …]
DRobustResourceInitTest.cpp337 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
338 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 2, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
345 glTexParameteri(GL_TEXTURE_2D, GL_RESOURCE_INITIALIZED_ANGLE, GL_FALSE); in TEST_P()
348 glGetTexParameteriv(GL_TEXTURE_2D, GL_RESOURCE_INITIALIZED_ANGLE, &initState); in TEST_P()
353 glTexParameteri(GL_TEXTURE_2D, GL_RESOURCE_INITIALIZED_ANGLE, GL_TRUE); in TEST_P()
356 glGetTexParameteriv(GL_TEXTURE_2D, GL_RESOURCE_INITIALIZED_ANGLE, &initState); in TEST_P()
458 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
459 glTexStorage2D(GL_TEXTURE_2D, 4, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, 8, 8); in TEST_P()
460 glCompressedTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 8, 8, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, in TEST_P()
462 glCompressedTexSubImage2D(GL_TEXTURE_2D, 1, 0, 0, 4, 4, GL_COMPRESSED_RGB_S3TC_DXT1_EXT, in TEST_P()
[all …]
DMaxTextureSizeTest.cpp88 glBindTexture(GL_TEXTURE_2D, tex); in TEST_P()
90 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in TEST_P()
91 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in TEST_P()
92 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
93 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); in TEST_P()
113 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, in TEST_P()
150 glBindTexture(GL_TEXTURE_2D, tex); in TEST_P()
152 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); in TEST_P()
153 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); in TEST_P()
154 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); in TEST_P()
[all …]
DFramebufferFetchTest.cpp368 glBindTexture(GL_TEXTURE_2D, colorBufferTex); in BasicTest()
369 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kViewportWidth, kViewportHeight, 0, GL_RGBA, in BasicTest()
371 glBindTexture(GL_TEXTURE_2D, 0); in BasicTest()
372 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorBufferTex, in BasicTest()
402 glBindTexture(GL_TEXTURE_2D, colorBufferTex[0]); in MultipleRenderTargetTest()
403 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kViewportWidth, kViewportHeight, 0, GL_RGBA, in MultipleRenderTargetTest()
405 glBindTexture(GL_TEXTURE_2D, colorBufferTex[1]); in MultipleRenderTargetTest()
406 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kViewportWidth, kViewportHeight, 0, GL_RGBA, in MultipleRenderTargetTest()
408 glBindTexture(GL_TEXTURE_2D, colorBufferTex[2]); in MultipleRenderTargetTest()
409 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, kViewportWidth, kViewportHeight, 0, GL_RGBA, in MultipleRenderTargetTest()
[all …]
DReadOnlyFeedbackLoopTest.cpp64 glBindTexture(GL_TEXTURE_2D, colorTex); in TEST_P()
65 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
66 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_P()
67 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
70 glBindTexture(GL_TEXTURE_2D, depthTex); in TEST_P()
71 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH_COMPONENT, width, height, 0, GL_DEPTH_COMPONENT, in TEST_P()
73 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST); in TEST_P()
74 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST); in TEST_P()
81 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, colorTex, 0); in TEST_P()
83 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, depthTex, 0); in TEST_P()
[all …]
DStateChangeTest.cpp84 glBindTexture(GL_TEXTURE_2D, mTextures[0]); in TEST_P()
85 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
86 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextures[0], 0); in TEST_P()
92 glBindTexture(GL_TEXTURE_2D, mTextures[1]); in TEST_P()
93 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 16, 16, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
94 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextures[1], 0); in TEST_P()
101 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextures[0], 0); in TEST_P()
102 glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 16, 16, 0); in TEST_P()
103 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, mTextures[1], 0); in TEST_P()
115 glBindTexture(GL_TEXTURE_2D, mTextures[0]); in TEST_P()
[all …]
DSRGBFramebufferTest.cpp93 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
94 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA_EXT, 1, 1, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, in TEST_P()
99 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
134 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
135 glTexImage2D(GL_TEXTURE_2D, 0, GL_SRGB_ALPHA_EXT, 1, 1, 0, GL_SRGB_ALPHA_EXT, GL_UNSIGNED_BYTE, in TEST_P()
140 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
151 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
179 glBindTexture(GL_TEXTURE_2D, texture.get()); in TEST_P()
180 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 1, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
184 glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture.get(), 0); in TEST_P()
[all …]
DComputeShaderTest.cpp25 glBindTexture(GL_TEXTURE_2D, texture); in createMockOutputImage()
26 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, width, height); in createMockOutputImage()
43 glBindTexture(GL_TEXTURE_2D, texture[0]); in runSharedMemoryTest()
44 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
45 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, in runSharedMemoryTest()
50 glBindTexture(GL_TEXTURE_2D, texture[1]); in runSharedMemoryTest()
51 glTexStorage2D(GL_TEXTURE_2D, 1, internalFormat, kWidth, kHeight); in runSharedMemoryTest()
52 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, kWidth, kHeight, GL_RED_INTEGER, format, initData); in runSharedMemoryTest()
73 glFramebufferTexture2D(GL_READ_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, texture[1], in runSharedMemoryTest()
569 glBindTexture(GL_TEXTURE_2D, mTexture[0]); in TEST_P()
[all …]
DMultisampledRenderToTextureTest.cpp104 glBindTexture(GL_TEXTURE_2D, texture); in verifyResults()
263 glBindTexture(GL_TEXTURE_2D, texture); in TEST_P()
264 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 64, 64, 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in TEST_P()
270 glBindTexture(GL_TEXTURE_2D, depthTexture); in TEST_P()
271 glTexImage2D(GL_TEXTURE_2D, 0, GL_DEPTH24_STENCIL8, 64, 64, 0, GL_DEPTH_STENCIL, in TEST_P()
278 glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, in TEST_P()
286 glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT1, GL_TEXTURE_2D, in TEST_P()
294 glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, in TEST_P()
298 glFramebufferTexture2DMultisampleEXT(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_TEXTURE_2D, in TEST_P()
303 GL_TEXTURE_2D, depthTexture, 0, 4); in TEST_P()
[all …]
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
DTextureParameterTest.cpp38 glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, params); in TEST_P()
42 glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, params); in TEST_P()
46 glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, params); in TEST_P()
50 glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, params); in TEST_P()
54 glGetTexParameteriv(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, params); in TEST_P()
58 glGetTexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, params); in TEST_P()
75 glGetTexParameteriv(GL_TEXTURE_2D, 0, nullptr); in TEST_P()
79 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_CROP_RECT_OES, 3); in TEST_P()
83 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_BASE_LEVEL, 0); in TEST_P()
92 glTexParameteri(GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE); in TEST_P()
[all …]
/third_party/vk-gl-cts/modules/gles2/functional/
Des2fNegativeTextureApiTests.cpp135 glBindTexture(GL_TEXTURE_2D, texture); in init()
159 glCompressedTexImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, 0, 0); in init()
199 …glCompressedTexImage2D(GL_TEXTURE_2D, -1, compressedFormats[firstNonPalettedFormatNdx], 0, 0, 0, 0… in init()
248 glCompressedTexImage2D(GL_TEXTURE_2D, log2MaxTextureSize, compressedFormats[0], 0, 0, 0, 0, 0); in init()
283 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], -1, 0, 0, 0, 0); in init()
285 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], 0, -1, 0, 0, 0); in init()
287 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], -1, -1, 0, 0, 0); in init()
396 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], maxTextureSize, 0, 0, 0, 0); in init()
398 glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], 0, maxTextureSize, 0, 0, 0); in init()
400 …glCompressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormats[0], maxTextureSize, maxTextureSize, 0, … in init()
[all …]
/third_party/vk-gl-cts/modules/gles3/functional/
Des3fNegativeTextureApiTests.cpp165 glBindTexture(GL_TEXTURE_2D, texture[0]); in init()
176 glBindTexture(GL_TEXTURE_2D, texture[1]); in init()
201 glCompressedTexImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, 0, 0); in init()
203 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 0, 0, 0); in init()
205 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, 0, 0, 0, 0, 0); in init()
224 glCompressedTexImage2D(GL_TEXTURE_2D, -1, GL_COMPRESSED_RGBA8_ETC2_EAC, 0, 0, 0, 0, 0); in init()
244 …glCompressedTexImage2D(GL_TEXTURE_2D, log2MaxTextureSize, GL_COMPRESSED_RGB8_ETC2, 16, 16, 0, etc2… in init()
269 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, -1, 0, 0, 0, 0); in init()
271 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, 0, -1, 0, 0, 0); in init()
273 glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_COMPRESSED_RGBA8_ETC2_EAC, -1, -1, 0, 0, 0); in init()
[all …]
/third_party/vk-gl-cts/modules/gles31/functional/
Des31fNegativeTextureApiTests.cpp123 ctx.glBindTexture(GL_TEXTURE_2D, texture[0]); in bindtexture()
134 ctx.glBindTexture(GL_TEXTURE_2D, texture[1]); in bindtexture()
143 ctx.glBindTexture(GL_TEXTURE_2D, texture[2]); in bindtexture()
152 ctx.glBindTexture(GL_TEXTURE_2D, texture[3]); in bindtexture()
171 ctx.glBindTexture(GL_TEXTURE_2D, texture[4]); in bindtexture()
200 ctx.glCompressedTexImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, 0, 0); in compressedteximage2d_invalid_format()
202 ctx.glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 0, 0, 0, 0, 0); in compressedteximage2d_invalid_format()
204 ctx.glCompressedTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA32F, 0, 0, 0, 0, 0); in compressedteximage2d_invalid_format()
224 ctx.glCompressedTexImage2D(GL_TEXTURE_2D, -1, GL_COMPRESSED_RGBA8_ETC2_EAC, 0, 0, 0, 0, 0); in compressedteximage2d_neg_level()
245 …ctx.glCompressedTexImage2D(GL_TEXTURE_2D, log2MaxTextureSize, GL_COMPRESSED_RGB8_ETC2, 16, 16, 0, … in compressedteximage2d_max_level()
[all …]

12345678910>>...22