Home
last modified time | relevance | path

Searched refs:textureData (Results 1 - 25 of 35) sorted by relevance

12

/third_party/skia/third_party/externals/dawn/src/tests/end2end/
H A DTextureFormatTests.cpp295 const std::vector<TextureData>& textureData, in DoFormatSamplingTest()
307 DoSampleTest(formatInfo, textureData.data(), textureData.size() * sizeof(TextureData), in DoFormatSamplingTest()
314 const std::vector<TextureData>& textureData, in DoFloatFormatSamplingTest()
324 DoFormatSamplingTest(formatInfo, textureData, expectedRenderData, in DoFloatFormatSamplingTest()
330 const std::vector<TextureData>& textureData, in DoFormatRenderingTest()
340 ExpandDataTo4Component(textureData, formatInfo.componentCount, garbageValues); in DoFormatRenderingTest()
358 std::vector<T> textureData = {0, 1, maxValue, maxValue}; in DoUnormTest() local
361 DoFormatSamplingTest(formatInfo, textureData, uncompressedData); in DoUnormTest()
362 DoFormatRenderingTest(formatInfo, uncompressedData, textureData); in DoUnormTest()
294 DoFormatSamplingTest(FormatTestInfo formatInfo, const std::vector<TextureData>& textureData, const std::vector<RenderData>& expectedRenderData, detail::Expectation* customExpectation = nullptr) DoFormatSamplingTest() argument
313 DoFloatFormatSamplingTest(FormatTestInfo formatInfo, const std::vector<TextureData>& textureData, const std::vector<float>& expectedRenderData, float floatTolerance = 0.0f) DoFloatFormatSamplingTest() argument
329 DoFormatRenderingTest(FormatTestInfo formatInfo, const std::vector<TextureData>& textureData, const std::vector<RenderData>& expectedRenderData, detail::Expectation* customExpectation = nullptr) DoFormatRenderingTest() argument
373 std::vector<T> textureData = {0, 1, -1, maxValue, minValue, T(minValue + 1), 0, 0}; DoSnormTest() local
388 std::vector<T> textureData = {0, 1, maxValue, maxValue}; DoUintTest() local
403 std::vector<T> textureData = {0, 1, maxValue, minValue}; DoSintTest() local
414 std::vector<float> textureData = {+0.0f, -0.0f, 1.0f, 1.0e-29f, DoFloat32Test() local
428 std::vector<uint16_t> textureData; DoFloat16Test() local
462 std::vector<uint8_t> textureData = {maxValue, 1, 0, maxValue}; TEST_P() local
622 std::vector<uint8_t> textureData = {0, 1, maxValue, 64, 35, 68, 152, 168}; TEST_P() local
648 std::vector<uint8_t> textureData = {0, 1, maxValue, 64, 35, 68, 152, 168}; TEST_P() local
678 std::vector<uint32_t> textureData = {MakeRGB10A2(0, 0, 0, 0), MakeRGB10A2(1023, 1023, 1023, 1), TEST_P() local
718 std::vector<uint32_t> textureData = { TEST_P() local
767 std::vector<uint32_t> textureData = { TEST_P() local
[all...]
H A DCopyTextureForBrowserTests.cpp76 std::vector<RGBA8> textureData(layout.texelBlockCount); in GetTextureData()
87 textureData[sliceOffset + rowOffset + x] = RGBA8( in GetTextureData()
95 textureData[sliceOffset + rowOffset + x] = RGBA8( in GetTextureData()
102 textureData[sliceOffset + rowOffset + x] = in GetTextureData()
114 textureData[sliceOffset + rowOffset + x] = in GetTextureData()
122 return textureData; in GetTextureData()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
H A DMultiviewTest.cpp71 std::vector<GLubyte> textureData; in CreateMultiviewBackingTextures() local
72 textureData.resize(viewWidth * height * numLayers * 4, 0u); in CreateMultiviewBackingTextures()
103 GL_UNSIGNED_BYTE, textureData.data()); in CreateMultiviewBackingTextures()
130 GL_DEPTH_COMPONENT, GL_FLOAT, textureData.data()); in CreateMultiviewBackingTextures()
155 GL_DEPTH_STENCIL, GL_UNSIGNED_INT_24_8, textureData.data()); in CreateMultiviewBackingTextures()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderrender/
H A DvktShaderRender.cpp981 const TextureData& textureData,
1004 for (TextureData::const_iterator mit = textureData.begin(); mit != textureData.end(); ++mit)
1039 for (size_t levelNdx = 0; levelNdx < textureData.size(); levelNdx++)
1041 const TextureLayerData& layerData = textureData[levelNdx];
1262 const TextureData& textureData,
1296 for (TextureData::const_iterator mit = textureData.begin(); mit != textureData.end(); ++mit)
1332 for (size_t levelNdx = 0; levelNdx < textureData.size(); levelNdx++)
1334 const TextureLayerData& layerData = textureData[levelNd
[all...]
H A DvktShaderRender.hpp558 const TextureData& textureData,
572 const TextureData& textureData,
585 const TextureData& textureData,
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderrender/
H A DvktShaderRender.cpp983 const TextureData& textureData,
1006 for (TextureData::const_iterator mit = textureData.begin(); mit != textureData.end(); ++mit)
1041 for (size_t levelNdx = 0; levelNdx < textureData.size(); levelNdx++)
1043 const TextureLayerData& layerData = textureData[levelNdx];
1264 const TextureData& textureData,
1298 for (TextureData::const_iterator mit = textureData.begin(); mit != textureData.end(); ++mit)
1334 for (size_t levelNdx = 0; levelNdx < textureData.size(); levelNdx++)
1336 const TextureLayerData& layerData = textureData[levelNd
[all...]
H A DvktShaderRender.hpp560 const TextureData& textureData,
574 const TextureData& textureData,
587 const TextureData& textureData,
/third_party/skia/third_party/externals/angle2/samples/multiple_contexts/
H A DMultipleContexts.cpp78 std::vector<uint8_t> textureData; in UpdateThreadLoop() local
83 textureData.insert(textureData.end(), bytes.begin(), bytes.end()); in UpdateThreadLoop()
88 GL_UNSIGNED_BYTE, textureData.data()); in UpdateThreadLoop()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DCopyTexImageTest.cpp578 const GLColor *textureData);
582 const GLColor *textureData);
586 const GLColor *textureData);
826 const GLColor *textureData) in initialize3DTexture()
830 GL_UNSIGNED_BYTE, textureData); in initialize3DTexture()
841 const GLColor *textureData) in initialize2DTexture()
845 textureData); in initialize2DTexture()
853 const GLColor *textureData) in initialize2DTextureUShort4444()
857 GL_UNSIGNED_SHORT_4_4_4_4, textureData); in initialize2DTextureUShort4444()
918 std::vector<GLColor> textureData(kImageWidt in TEST_P()
822 initialize3DTexture(GLTexture &texture, const GLsizei imageWidth, const GLsizei imageHeight, const GLsizei imageDepth, const GLColor *textureData) initialize3DTexture() argument
838 initialize2DTexture(GLTexture &texture, const GLsizei imageWidth, const GLsizei imageHeight, const GLColor *textureData) initialize2DTexture() argument
850 initialize2DTextureUShort4444(GLTexture &texture, const GLsizei imageWidth, const GLsizei imageHeight, const GLColor *textureData) initialize2DTextureUShort4444() argument
[all...]
H A DWebGLCompatibilityTest.cpp77 const T textureData[4], in TestFloatTextureFormat()
137 glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, 1, 1, 0, format, type, textureData); in TestFloatTextureFormat()
150 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 1, 1, format, type, textureData); in TestFloatTextureFormat()
3163 constexpr float textureData[] = {15.1f, 0.0f, 0.0f, 0.0f};
3164 constexpr float readPixelData[] = {textureData[0], textureData[0], textureData[0], 1.0f};
3180 textureData, readPixelData);
3191 render, textureData, readPixelData);
3198 constexpr float textureData[] in TEST_P() local
71 TestFloatTextureFormat(GLenum internalFormat, GLenum format, GLenum type, bool texturingEnabled, bool linearSamplingEnabled, bool renderingEnabled, const T textureData[4], const float floatData[4]) TestFloatTextureFormat() argument
3233 constexpr float textureData[] = {-0.21f, 15.1f, 0.0f, 0.0f}; TEST_P() local
3697 const GLushort textureData[] = { TEST_P() local
3757 const GLushort textureData[] = { TEST_P() local
3819 const GLushort textureData[] = { TEST_P() local
3881 const GLushort textureData[] = { TEST_P() local
[all...]
H A DIncompleteTextureTest.cpp121 std::vector<GLColor> textureData(kTextureSize * kTextureSize, GLColor::red); in TEST_P()
125 GL_UNSIGNED_BYTE, textureData.data()); in TEST_P()
141 GL_UNSIGNED_BYTE, textureData.data()); in TEST_P()
H A DReadPixelsTest.cpp877 std::vector<GLuint> textureData(layers * layerSize); in initializeTextureData()
883 std::fill(textureData.begin() + offset, textureData.begin() + offset + layerSize, in initializeTextureData()
888 GL_UNSIGNED_BYTE, textureData.data()); in initializeTextureData()
/third_party/skia/third_party/externals/angle2/src/tests/perf_tests/
H A DFramebufferAttachmentPerfTest.cpp92 std::vector<GLubyte> textureData(kTextureSize * kTextureSize * 4); in initTextures()
93 for (auto &byte : textureData) in initTextures()
102 GL_UNSIGNED_BYTE, textureData.data()); in initTextures()
H A DTexturesPerf.cpp217 std::vector<GLubyte> textureData(textureSize * textureSize * 4); in initTextures()
218 for (auto &byte : textureData) in initTextures()
234 GL_RGBA, GL_UNSIGNED_BYTE, textureData.data()); in initTextures()
H A DClearPerf.cpp132 std::vector<float> textureData(params.textureSize * params.textureSize * 4, 0.5); in drawBenchmark()
/third_party/skia/tests/
H A DTransferPixelsTest.cpp310 std::unique_ptr<char[]> textureData(new char[kTexDims.fHeight * textureDataRowBytes]); in basic_transfer_from_test()
312 textureData.get()); in basic_transfer_from_test()
314 data.fPixels = textureData.get(); in basic_transfer_from_test()
408 ComparePixels(GrCPixmap(textureDataInfo, textureData.get(), textureDataRowBytes), in basic_transfer_from_test()
444 textureData.get() + textureDataRowBytes * kPartialTop + textureDataBpp * kPartialLeft; in basic_transfer_from_test()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/gles1/
H A DDrawTextureTest.cpp76 std::array<GLColor, 2> textureData = { in TEST_P() local
82 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, 2, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, textureData.data()); in TEST_P()
/third_party/vk-gl-cts/modules/glshared/
H A DglsStateChangePerfTestCases.cpp343 vector<deUint8> textureData; in requireTextures() local
344 genTextureData(textureData, textureWidth, textureHeight); in requireTextures()
346 DE_ASSERT(textureData.size() == textureWidth * textureHeight * 4); in requireTextures()
358 gl.texImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE, &(textureData[0])); in requireTextures()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/texture/
H A DvktTextureTestUtil.cpp312 TextureBinding::TextureBinding (Context& context, VkDevice device, Allocator& allocator, const TestTextureSp& textureData, const TextureBinding::Type type, const vk::VkImageAspectFlags aspectMask, const TextureBinding::ImageBackingMode backingMode, const VkComponentMapping componentMapping) in TextureBinding() argument
318 , m_textureData (textureData) in TextureBinding()
333 void TextureBinding::updateTextureData (const TestTextureSp& textureData, const TextureBinding::Type textureType) in updateTextureData() argument
339 m_textureData = textureData; in updateTextureData()
347 const VkFormat format = textureData->isCompressed() ? mapCompressedTextureFormat(textureData->getCompressedLevel(0, 0).getFormat()) : mapTextureFormat(textureData->getTextureFormat()); in updateTextureData()
348 const tcu::UVec3 textureDimension = textureData->getTextureDimension(); in updateTextureData()
349 const deUint32 mipLevels = textureData->getNumLevels(); in updateTextureData()
350 const deUint32 arraySize = textureData in updateTextureData()
[all...]
H A DvktTextureTestUtil.hpp155 TextureBinding (Context& context, vk::VkDevice device, vk::Allocator& allocator, const TestTextureSp& textureData, const Type type,
169 void updateTextureData (const TestTextureSp& textureData, const Type type);
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcCompressedFormatTests.cpp1236 const auto textureData = loadImage(context.archive, compressedFormat, 0);
1239 DE_ASSERT((GLsizei)textureData.width == image[0].width && (GLsizei)textureData.height == image[0].height);
1257 gl.compressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormat, image[0].width, image[0].height, 0, textureData.data.size(), textureData.data.data());
1296 const auto textureData = loadImage(context.archive, compressedFormat, 0);
1303 DE_ASSERT((GLsizei)textureData.width == image[0].width && (GLsizei)textureData.height == image[0].height);
1317 gl.compressedTexImage2D(GL_TEXTURE_2D, 0, compressedFormat, image[0].width, image[0].height, 0, textureData.data.size(), textureData
[all...]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/texture/
H A DvktTextureTestUtil.cpp322 TextureBinding::TextureBinding (Context& context, VkDevice device, Allocator& allocator, const TestTextureSp& textureData, const TextureBinding::Type type, const vk::VkImageAspectFlags aspectMask, const TextureBinding::ImageBackingMode backingMode, const VkComponentMapping componentMapping) in TextureBinding() argument
328 , m_textureData (textureData) in TextureBinding()
343 void TextureBinding::updateTextureData (const TestTextureSp& textureData, const TextureBinding::Type textureType) in updateTextureData() argument
349 m_textureData = textureData; in updateTextureData()
357 const VkFormat format = textureData->isCompressed() ? mapCompressedTextureFormat(textureData->getCompressedLevel(0, 0).getFormat()) : mapTextureFormat(textureData->getTextureFormat()); in updateTextureData()
358 const tcu::UVec3 textureDimension = textureData->getTextureDimension(); in updateTextureData()
359 const deUint32 mipLevels = textureData->getNumLevels(); in updateTextureData()
360 const deUint32 arraySize = textureData in updateTextureData()
[all...]
/third_party/skia/gm/
H A Dbitmaprect.cpp105 const SkColor textureData[xSize][ySize] = { in make_3x3_bitmap() local
117 paint.setColor(textureData[x][y]); in make_3x3_bitmap()
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/
H A DesextcGeometryShaderLayeredRenderingBoundaryCondition.hpp61 const unsigned char* textureData, const unsigned char* referencePixel, int att,
H A DesextcGeometryShaderLayeredRenderingBoundaryCondition.cpp109 * @param textureData buffer with data read from texture
114 * @return true If all data in scope from textureData contains the same color as in referencePixel
119 const unsigned char* textureData, in comparePixels()
129 const unsigned char* renderedData = textureData + y * rowWidth + x * m_texture_components; in comparePixels()
117 comparePixels(glw::GLint width, glw::GLint height, glw::GLint pixelSize, const unsigned char* textureData, const unsigned char* referencePixel, int attachment, int layer) comparePixels() argument

Completed in 28 milliseconds

12