Home
last modified time | relevance | path

Searched refs:texture2D (Results 1 - 25 of 45) sorted by relevance

12

/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
H A DvktProtectedMemStackTests.cpp101 const tcu::Texture2D& texture2D,
103 void calculateRef (tcu::Texture2D& texture2D);
213 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, m_params.imageWidth, m_params.imageHeight)); in createTestTexture2D()
215 texture2D->allocLevel(0); in createTestTexture2D()
217 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
221 return texture2D; in createTestTexture2D()
235 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in iterate() local
283 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in iterate()
329 calculateRef(*texture2D); in iterate()
353 result = validateResult(**imageDst, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in iterate()
362 calculateRef(tcu::Texture2D& texture2D) calculateRef() argument
372 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemWorkgroupStorageTests.cpp100 const tcu::Texture2D& texture2D,
102 void calculateRef (tcu::Texture2D& texture2D);
182 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, m_params.imageWidth, m_params.imageHeight)); in createTestTexture2D()
184 texture2D->allocLevel(0); in createTestTexture2D()
186 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
190 return texture2D; in createTestTexture2D()
204 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in iterate() local
256 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in iterate()
318 calculateRef(*texture2D); in iterate()
321 return validateResult(**imageDst, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in iterate()
324 calculateRef(tcu::Texture2D& texture2D) calculateRef() argument
341 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemShaderImageAccessTests.cpp252 void calculateAtomicRef (tcu::Texture2D& texture2D);
255 const tcu::Texture2D& texture2D,
484 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, IMAGE_WIDTH, IMAGE_HEIGHT)); in createTestTexture2D()
487 texture2D->allocLevel(0); in createTestTexture2D()
489 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
502 return texture2D; in createTestTexture2D()
527 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in executeComputeTest() local
574 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in executeComputeTest()
752 calculateAtomicRef(*texture2D); in executeComputeTest()
758 return validateResult(resultImage, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in executeComputeTest()
783 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); executeFragmentTest() local
1165 calculateAtomicRef(tcu::Texture2D& texture2D) calculateAtomicRef() argument
1182 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemUtils.cpp724 void uploadImage (ProtectedContext& ctx, vk::VkImage image, const tcu::Texture2D& texture2D) in uploadImage() argument
734 const deUint32 width = (deUint32)texture2D.getWidth(); in uploadImage()
735 const deUint32 height = (deUint32)texture2D.getHeight(); in uploadImage()
736 const deUint32 stagingBufferSize = width * height * tcu::getPixelSize(texture2D.getFormat()); in uploadImage()
746 const tcu::ConstPixelBufferAccess& access = texture2D.getLevel(0); in uploadImage()
H A DvktProtectedMemUtils.hpp154 const tcu::Texture2D& texture2D);
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/protected_memory/
H A DvktProtectedMemStackTests.cpp101 const tcu::Texture2D& texture2D,
103 void calculateRef (tcu::Texture2D& texture2D);
214 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, m_params.imageWidth, m_params.imageHeight)); in createTestTexture2D()
216 texture2D->allocLevel(0); in createTestTexture2D()
218 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
222 return texture2D; in createTestTexture2D()
236 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in iterate() local
284 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in iterate()
330 calculateRef(*texture2D); in iterate()
354 result = validateResult(**imageDst, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in iterate()
363 calculateRef(tcu::Texture2D& texture2D) calculateRef() argument
373 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemWorkgroupStorageTests.cpp100 const tcu::Texture2D& texture2D,
102 void calculateRef (tcu::Texture2D& texture2D);
183 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, m_params.imageWidth, m_params.imageHeight)); in createTestTexture2D()
185 texture2D->allocLevel(0); in createTestTexture2D()
187 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
191 return texture2D; in createTestTexture2D()
205 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in iterate() local
257 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in iterate()
319 calculateRef(*texture2D); in iterate()
322 return validateResult(**imageDst, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in iterate()
325 calculateRef(tcu::Texture2D& texture2D) calculateRef() argument
342 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemShaderImageAccessTests.cpp250 void calculateAtomicRef (tcu::Texture2D& texture2D);
253 const tcu::Texture2D& texture2D,
481 de::MovePtr<tcu::Texture2D> texture2D (new tcu::Texture2D(texFmt, IMAGE_WIDTH, IMAGE_HEIGHT)); in createTestTexture2D()
484 texture2D->allocLevel(0); in createTestTexture2D()
486 const tcu::PixelBufferAccess& level = texture2D->getLevel(0); in createTestTexture2D()
499 return texture2D; in createTestTexture2D()
524 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); in executeComputeTest() local
571 uploadImage(m_protectedContext, **unprotectedImage, *texture2D); in executeComputeTest()
716 calculateAtomicRef(*texture2D); in executeComputeTest()
722 return validateResult(resultImage, vk::VK_IMAGE_LAYOUT_GENERAL, *texture2D, refSample in executeComputeTest()
747 de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D(); executeFragmentTest() local
1129 calculateAtomicRef(tcu::Texture2D& texture2D) calculateAtomicRef() argument
1146 validateResult(vk::VkImage image, vk::VkImageLayout imageLayout, const tcu::Texture2D& texture2D, const tcu::Sampler& refSampler) validateResult() argument
[all...]
H A DvktProtectedMemUtils.cpp724 void uploadImage (ProtectedContext& ctx, vk::VkImage image, const tcu::Texture2D& texture2D) in uploadImage() argument
734 const deUint32 width = (deUint32)texture2D.getWidth(); in uploadImage()
735 const deUint32 height = (deUint32)texture2D.getHeight(); in uploadImage()
736 const deUint32 stagingBufferSize = width * height * tcu::getPixelSize(texture2D.getFormat()); in uploadImage()
746 const tcu::ConstPixelBufferAccess& access = texture2D.getLevel(0); in uploadImage()
H A DvktProtectedMemUtils.hpp154 const tcu::Texture2D& texture2D);
/third_party/vk-gl-cts/modules/gles2/functional/
H A Des2fShaderTextureFunctionTests.cpp187 inline Vec4 texture2D (const gls::ShaderEvalContext& c, float s, float t, float lod) { return c.textures[0].tex2D->sample(c.textures[0].sampler, s, t, lod); } in texture2D() function
191 static void evalTexture2D (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x(), c.in[0].y(), p.lod)*p.scale + p.bias; } in evalTexture2D()
194 static void evalTexture2DBias (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x(), c.in[0].y(), p.lod+c.in[1].x())*p.scale + p.bias; } in evalTexture2DBias()
197 static void evalTexture2DProj3 (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x()/c.in[0].z(), c.in[0].y()/c.in[0].z(), p.lod)*p.scale + p.bias; } in evalTexture2DProj3()
198 static void evalTexture2DProj3Bias (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x()/c.in[0].z(), c.in[0].y()/c.in[0].z(), p.lod+c.in[1].x())*p.scale + p.bias; } in evalTexture2DProj3Bias()
199 static void evalTexture2DProj (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x()/c.in[0].w(), c.in[0].y()/c.in[0].w(), p.lod)*p.scale + p.bias; } in evalTexture2DProj()
200 static void evalTexture2DProjBias (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x()/c.in[0].w(), c.in[0].y()/c.in[0].w(), p.lod+c.in[1].x())*p.scale + p.bias; } in evalTexture2DProjBias()
202 static void evalTexture2DLod (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x(), c.in[0].y(), c.in[1].x())*p.scale + p.bias; } in evalTexture2DLod()
205 static void evalTexture2DProjLod3 (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D(c, c.in[0].x()/c.in[0].z(), c.in[0].y()/c.in[0].z(), c.in[1].x())*p.scale + p.bias; } in evalTexture2DProjLod3()
206 static void evalTexture2DProjLod (gls::ShaderEvalContext& c, const TexLookupParams& p) { c.color = texture2D( in evalTexture2DProjLod3()
[all...]
H A Des2fShaderStructTests.cpp1903 << " ${DST} = vec4(texture2D(s.c, ${COORDS}.xy * s.b.xy + s.b.z).rgb, s.a);" in init()
1913 c.color.xyz() = c.texture2D(TEXTURE_BRICK, c.coords.swizzle(0,1) * 0.25f + 0.5f).swizzle(0,1,2); in init()
1935 << " ${DST} = vec4(texture2D(s.b.a, ${COORDS}.xy * s.b.b + s.a).rgb, s.c);" in init()
1946 c.color.xyz() = c.texture2D(TEXTURE_BRICK, c.coords.swizzle(0,1) * 0.25f + 0.5f).swizzle(0,1,2); in init()
1963 << " ${DST} = vec4(texture2D(s[1].c, ${COORDS}.xy * s[0].b.xy + s[1].b.z).rgb, s[0].a);" in init()
1976 c.color.xyz() = c.texture2D(TEXTURE_BRICK, c.coords.swizzle(0,1) * 0.25f + 0.5f).swizzle(0,1,2); in init()
1988 << " return texture2D(s.source, vec2(0.5));" in init()
2002 c.color.xyz() = c.texture2D(TEXTURE_BRICK, tcu::Vec2(0.5f, 0.5f)).swizzle(0,1,2); in init()
2014 << " return texture2D(s[0].source, vec2(0.5));" in init()
2028 c.color.xyz() = c.texture2D(TEXTURE_BRIC in init()
[all...]
H A Des2fShaderDiscardTests.cpp176 if (c.texture2D(0, c.coords.swizzle(0,1) * 0.25f + 0.5f).x() < 0.7f) in evalDiscardTexture()
353 case DISCARDMODE_TEXTURE: params["DISCARD"] = "if (texture2D(ut_brick, v_coords.xy*0.25+0.5).x < 0.7) discard"; break; in makeDiscardCase()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/d3d/d3d11/
H A DRenderTarget11.cpp40 ID3D11Texture2D *texture2D = d3d11::DynamicCastComObject<ID3D11Texture2D>(resource); in GetTextureProperties() local
41 if (texture2D) in GetTextureProperties()
44 texture2D->GetDesc(&texDesc); in GetTextureProperties()
45 SafeRelease(texture2D); in GetTextureProperties()
/third_party/skia/tests/
H A DTextureBindingsResetTest.cpp106 GrBackendTexture texture2D = dContext->createBackendTexture( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
110 REPORTER_ASSERT(reporter, texture2D.getGLTextureInfo(&info2D)); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
133 dContext->deleteBackendTexture(texture2D); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DWEBGLVideoTextureTest.cpp159 gl_FragColor = texture2D(s, texCoord); in TEST_P()
179 GLTexture texture2D; in TEST_P() local
181 glBindTexture(GL_TEXTURE_2D, texture2D); in TEST_P()
H A DMultithreadingTest.cpp138 GLuint texture2D; in create2DTexture() local
139 glGenTextures(1, &texture2D); in create2DTexture()
141 glBindTexture(GL_TEXTURE_2D, texture2D); in create2DTexture()
145 return texture2D; in create2DTexture()
H A DImageTest.cpp160 " gl_FragColor = texture2D(tex, texcoord);\n"
181 " gl_FragColor = texture2D(tex, texcoord);\n"
1126 EGLClientBuffer texture2D = reinterpretHelper<EGLClientBuffer>(glTexture2D.get()); in TEST_P() local
1133 EGL_GL_TEXTURE_2D_KHR, texture2D, nullptr); in TEST_P()
1140 EGL_GL_TEXTURE_2D_KHR, texture2D, nullptr); in TEST_P()
1145 image = eglCreateImageKHR(display, EGL_NO_CONTEXT, EGL_GL_TEXTURE_2D_KHR, texture2D, nullptr); in TEST_P()
1157 image = eglCreateImageKHR(display, context, EGL_GL_TEXTURE_2D_KHR, texture2D, badAttributes); in TEST_P()
1185 image = eglCreateImageKHR(display, context, EGL_GL_TEXTURE_2D_KHR, texture2D, nullptr); in TEST_P()
1198 image = eglCreateImageKHR(display, context, EGL_GL_TEXTURE_2D_KHR, texture2D, nullptr); in TEST_P()
1204 reinterpret_cast<EGLClientBuffer>(texture2D), nullpt in TEST_P()
1317 GLTexture texture2D; TEST_P() local
1413 GLTexture texture2D; TEST_P() local
[all...]
H A DTextureTest.cpp174 GLuint texture2D; in create2DTexture() local
175 glGenTextures(1, &texture2D); in create2DTexture()
176 glBindTexture(GL_TEXTURE_2D, texture2D); in create2DTexture()
179 return texture2D; in create2DTexture()
202 gl_FragColor = texture2D(tex, texcoord);
851 return texture2D(aTex, texcoord);
888 gl_FragColor = texture2D(tex2D, texcoord);
953 gl_FragColor = texture2D(tex2DArray[0], texcoord);
954 gl_FragColor += texture2D(tex2DArray[1], texcoord);
1028 return texture2D(aTex2DArra
2669 GLTexture texture2D; TEST_P() local
2703 GLTexture texture2D; TEST_P() local
5654 GLuint texture2D; TEST_P() local
[all...]
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcShaderStructTests.cpp1759 { c.color.xyz() = c.texture2D(TEXTURE_GRADIENT, c.coords.swizzle(0, 1) * 0.75f + 0.1f).swizzle(0, 1, 2); }); in init()
1790 { c.color.xyz() = c.texture2D(TEXTURE_GRADIENT, c.coords.swizzle(0, 1) * 0.75f + 0.1f).swizzle(0, 1, 2); }); in init()
1818 { c.color.xyz() = c.texture2D(TEXTURE_GRADIENT, c.coords.swizzle(0, 1) * 0.75f + 0.1f).swizzle(0, 1, 2); }); in init()
H A DglcShaderRenderCase.hpp215 tcu::Vec4 texture2D(int unitNdx, const tcu::Vec2& coords);
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fShaderDiscardTests.cpp156 if (c.texture2D(0, c.coords.swizzle(0,1) * 0.25f + 0.5f).x() < 0.7f) in evalDiscardTexture()
/third_party/vk-gl-cts/modules/glshared/
H A DglsShaderRenderCase.hpp167 tcu::Vec4 texture2D (int unitNdx, const tcu::Vec2& coords);
/third_party/vk-gl-cts/external/openglcts/modules/gles2/
H A Des2cTexture3DTests.cpp321 specializationMap["LOOKUP"] = "texture2D"; in renderQuad()
948 glu::Texture2D texture2D(m_context.getRenderContext(), m_format, m_type, m_width, m_height); in iterate()
957 texture2D.getRefTexture().allocLevel(levelNdx); in iterate()
958 const tcu::PixelBufferAccess& pba2D = texture2D.getRefTexture().getLevel(levelNdx); in iterate()
964 texture2D.upload(); in iterate()
986 gl.bindTexture(GL_TEXTURE_2D, texture2D.getGLTexture()); in iterate()
992 const tcu::TextureFormat textureFormat = texture2D.getRefTexture().getFormat(); in iterate()
1013 verifyTestResult(texCoord[0].getPtr(), rendered, texture2D.getRefTexture(), refParams, false); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRenderDiscardTests.cpp210 if (c.texture2D(0, c.coords.swizzle(0,1) * 0.25f + 0.5f).x() < 0.7f) in evalDiscardTexture()

Completed in 30 milliseconds

12