Searched refs:TextureFormat (Results 1 - 25 of 235) sorted by relevance

12345678910

/external/deqp/modules/gles31/functional/
H A Des31fNegativeShaderImageLoadStoreTests.cpp85 std::string getShaderImageLayoutQualifier (const tcu::TextureFormat& format)
91 case tcu::TextureFormat::RGBA: qualifier << "rgba"; break;
92 case tcu::TextureFormat::R: qualifier << "r"; break;
100 case tcu::TextureFormat::FLOAT: qualifier << "32f"; break;
101 case tcu::TextureFormat::HALF_FLOAT: qualifier << "16f"; break;
102 case tcu::TextureFormat::UNORM_INT8: qualifier << "8"; break;
103 case tcu::TextureFormat::SNORM_INT8: qualifier << "8_snorm"; break;
104 case tcu::TextureFormat::SIGNED_INT32: qualifier << "32i"; break;
105 case tcu::TextureFormat::SIGNED_INT16: qualifier << "16i"; break;
106 case tcu::TextureFormat
[all...]
H A Des31fFboTestCase.hpp33 class TextureFormat;
59 void readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias);
63 void clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
H A Des31fShaderImageLoadStoreTests.cpp67 using tcu::TextureFormat;
135 static inline bool isFormatTypeUnsignedInteger (TextureFormat::ChannelType type)
137 return type == TextureFormat::UNSIGNED_INT8 ||
138 type == TextureFormat::UNSIGNED_INT16 ||
139 type == TextureFormat::UNSIGNED_INT32;
142 static inline bool isFormatTypeSignedInteger (TextureFormat::ChannelType type)
144 return type == TextureFormat::SIGNED_INT8 ||
145 type == TextureFormat::SIGNED_INT16 ||
146 type == TextureFormat::SIGNED_INT32;
149 static inline bool isFormatTypeInteger (TextureFormat
[all...]
/external/deqp/framework/opengl/
H A DgluTextureUtil.cpp38 * \brief Map tcu::TextureFormat to GL pixel transfer format.
46 TransferFormat getTransferFormat (tcu::TextureFormat texFormat)
48 using tcu::TextureFormat;
56 case TextureFormat::SIGNED_INT8:
57 case TextureFormat::SIGNED_INT16:
58 case TextureFormat::SIGNED_INT32:
59 case TextureFormat::UNSIGNED_INT8:
60 case TextureFormat::UNSIGNED_INT16:
61 case TextureFormat::UNSIGNED_INT32:
62 case TextureFormat
[all...]
H A DgluTextureUtil.hpp60 tcu::TextureFormat mapGLTransferFormat (deUint32 format, deUint32 dataType);
61 tcu::TextureFormat mapGLInternalFormat (deUint32 internalFormat);
69 TransferFormat getTransferFormat (tcu::TextureFormat format);
70 deUint32 getInternalFormat (tcu::TextureFormat format);
80 DataType getSampler1DType (tcu::TextureFormat format);
81 DataType getSampler2DType (tcu::TextureFormat format);
82 DataType getSamplerCubeType (tcu::TextureFormat format);
83 DataType getSampler1DArrayType (tcu::TextureFormat format);
84 DataType getSampler2DArrayType (tcu::TextureFormat format);
85 DataType getSampler3DType (tcu::TextureFormat forma
[all...]
/external/deqp/external/vulkancts/framework/vulkan/
H A DvkImageUtil.cpp62 const tcu::TextureFormat tcuFormat = mapVkFormat(format);
63 return tcuFormat.order == tcu::TextureFormat::D || tcuFormat.order == tcu::TextureFormat::S || tcuFormat.order == tcu::TextureFormat::DS;
70 case tcu::TextureFormat::sR:
71 case tcu::TextureFormat::sRG:
72 case tcu::TextureFormat::sRGB:
73 case tcu::TextureFormat::sRGBA:
74 case tcu::TextureFormat::sBGR:
75 case tcu::TextureFormat
[all...]
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineClearUtil.hpp36 tcu::Vec4 defaultClearColor (const tcu::TextureFormat& format);
37 tcu::IVec4 defaultClearColorInt (const tcu::TextureFormat& format);
38 tcu::UVec4 defaultClearColorUint (const tcu::TextureFormat& format);
H A DvktPipelineBlendTests.cpp125 static float getNormChannelThreshold (const tcu::TextureFormat& format, int numBits);
126 static tcu::Vec4 getFormatThreshold (const tcu::TextureFormat& format);
791 float BlendTestInstance::getNormChannelThreshold (const tcu::TextureFormat& format, int numBits)
805 tcu::Vec4 BlendTestInstance::getFormatThreshold (const tcu::TextureFormat& format)
808 using tcu::TextureFormat;
814 case TextureFormat::UNORM_BYTE_44:
818 case TextureFormat::UNORM_SHORT_565:
822 case TextureFormat::UNORM_SHORT_555:
826 case TextureFormat::UNORM_SHORT_4444:
830 case TextureFormat
[all...]
H A DvktPipelineImageUtil.hpp99 TestTexture (const tcu::TextureFormat& format, int width, int height, int depth);
118 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const = 0;
120 virtual const tcu::TextureFormat& getTextureFormat (void) const = 0;
141 TestTexture1D (const tcu::TextureFormat& format, int width);
150 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); }
153 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const;
162 TestTexture1DArray (const tcu::TextureFormat& format, int width, int arraySize);
172 virtual const tcu::TextureFormat& getTextureFormat (void) const { return m_texture.getFormat(); }
175 virtual de::MovePtr<TestTexture> copy (const tcu::TextureFormat) const;
184 TestTexture2D (const tcu::TextureFormat
[all...]
H A DvktPipelineMultisampleTestsUtil.cpp244 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType)
269 std::string getShaderImageDataType (const tcu::TextureFormat& format)
285 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format)
292 case tcu::TextureFormat::R: orderPart = "r"; break;
293 case tcu::TextureFormat::RG: orderPart = "rg"; break;
294 case tcu::TextureFormat::RGB: orderPart = "rgb"; break;
295 case tcu::TextureFormat::RGBA: orderPart = "rgba"; break;
304 case tcu::TextureFormat::FLOAT: typePart = "32f"; break;
305 case tcu::TextureFormat::HALF_FLOAT: typePart = "16f"; break;
307 case tcu::TextureFormat
[all...]
H A DvktPipelineMultisampleTestsUtil.hpp60 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType);
61 std::string getShaderImageDataType (const tcu::TextureFormat& format);
62 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format);
78 deUint32 getImageMipLevelSizeInBytes (const vk::VkExtent3D& baseExtents, const deUint32 layersCount, const tcu::TextureFormat& format, const deUint32 mipmapLevel, const deUint32 numSamples = 1u);
79 deUint32 getImageSizeInBytes (const vk::VkExtent3D& baseExtents, const deUint32 layersCount, const tcu::TextureFormat& format, const deUint32 mipmapLevelsCount = 1u, const deUint32 numSamples = 1u);
/external/deqp/framework/common/
H A DtcuTextureUtil.cpp102 bool isSRGB (TextureFormat format)
105 DE_STATIC_ASSERT(TextureFormat::CHANNELORDER_LAST == 21);
107 return format.order == TextureFormat::sR ||
108 format.order == TextureFormat::sRG ||
109 format.order == TextureFormat::sRGB ||
110 format.order == TextureFormat::sRGBA ||
111 format.order == TextureFormat::sBGR ||
112 format.order == TextureFormat::sBGRA;
115 tcu::Vec4 linearToSRGBIfNeeded (const TextureFormat& format, const tcu::Vec4& color)
120 bool isCombinedDepthStencilType (TextureFormat
[all...]
H A DtcuTexture.cpp274 inline float channelToFloat (const deUint8* value, TextureFormat::ChannelType type)
277 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
281 case TextureFormat::SNORM_INT8: return de::max(-1.0f, (float)*((const deInt8*)value) / 127.0f);
282 case TextureFormat::SNORM_INT16: return de::max(-1.0f, (float)*((const deInt16*)value) / 32767.0f);
283 case TextureFormat::SNORM_INT32: return de::max(-1.0f, (float)*((const deInt32*)value) / 2147483647.0f);
284 case TextureFormat::UNORM_INT8: return (float)*((const deUint8*)value) / 255.0f;
285 case TextureFormat::UNORM_INT16: return (float)*((const deUint16*)value) / 65535.0f;
286 case TextureFormat::UNORM_INT24: return (float)readUint24(value) / 16777215.0f;
287 case TextureFormat::UNORM_INT32: return (float)*((const deUint32*)value) / 4294967295.0f;
288 case TextureFormat
[all...]
H A DtcuSurface.hpp107 return ConstPixelBufferAccess(TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), m_width, m_height, 1, m_pixels.empty() ? DE_NULL : m_pixels.getPtr());
113 return PixelBufferAccess(TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), m_width, m_height, 1, m_pixels.empty() ? DE_NULL : m_pixels.getPtr());
H A DtcuTextureUtil.hpp42 bool isCombinedDepthStencilType (TextureFormat::ChannelType type);
43 bool hasStencilComponent (TextureFormat::ChannelOrder order);
44 bool hasDepthComponent (TextureFormat::ChannelOrder order);
51 bool isSRGB (TextureFormat format);
67 TextureChannelClass getTextureChannelClass (TextureFormat::ChannelType channelType);
81 bool isAccessValid (TextureFormat format, TextureAccessType type);
102 TextureFormatInfo getTextureFormatInfo (const TextureFormat& format);
103 IVec4 getTextureFormatBitDepth (const TextureFormat& format);
104 IVec4 getTextureFormatMantissaBitDepth (const TextureFormat& format);
105 BVec4 getTextureFormatChannelMask (const TextureFormat
[all...]
H A DtcuImageCompare.cpp220 TextureLevel errorMask (TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8), reference.getWidth(), reference.getHeight());
232 if (result.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8) && reference.getFormat() != TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8))
246 if (result.getFormat() != TextureFormat(TextureForma
[all...]
H A DtcuImageIO.cpp107 TextureFormat textureFormat;
114 textureFormat = TextureFormat(TextureFormat::RGB, TextureFormat::UNORM_INT8);
116 textureFormat = TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8);
135 static int textureFormatToPNGFormat (const TextureFormat& format)
137 if (format == TextureFormat(TextureFormat
[all...]
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
H A DvktSparseResourcesShaderIntrinsicsBase.hpp89 std::string getOpTypeImageComponent (const tcu::TextureFormat& format);
90 std::string getImageComponentTypeName (const tcu::TextureFormat& format);
91 std::string getImageComponentVec4TypeName (const tcu::TextureFormat& format);
94 const tcu::TextureFormat& format,
108 const tcu::TextureFormat& format)
121 const tcu::TextureFormat m_format;
131 const tcu::TextureFormat& format)
137 , m_residencyFormat(tcu::TextureFormat::R, tcu::TextureFormat::UNSIGNED_INT32)
157 const tcu::TextureFormat m_forma
[all...]
H A DvktSparseResourcesShaderIntrinsics.cpp55 static const tcu::TextureFormat formats[] =
57 tcu::TextureFormat(tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT32),
58 tcu::TextureFormat(tcu::TextureFormat::R, tcu::TextureFormat::SIGNED_INT16),
59 tcu::TextureFormat(tcu::TextureFormat::R, tcu::TextureFormat
[all...]
/external/deqp/external/vulkancts/modules/vulkan/image/
H A DvktImageTestsUtil.cpp963 std::string getShaderImageType (const tcu::TextureFormat& format, const ImageType imageType, const bool multisample)
1001 std::string getShaderImageFormatQualifier (const tcu::TextureFormat& format)
1008 case tcu::TextureFormat::R: orderPart = "r"; break;
1009 case tcu::TextureFormat::RG: orderPart = "rg"; break;
1010 case tcu::TextureFormat::RGB: orderPart = "rgb"; break;
1011 case tcu::TextureFormat::RGBA: orderPart = "rgba"; break;
1020 case tcu::TextureFormat::FLOAT: typePart = "32f"; break;
1021 case tcu::TextureFormat::HALF_FLOAT: typePart = "16f"; break;
1023 case tcu::TextureFormat::UNSIGNED_INT32: typePart = "32ui"; break;
1024 case tcu::TextureFormat
[all...]
/external/deqp/modules/gles3/functional/
H A Des3fFboTestCase.hpp33 class TextureFormat;
59 void readPixels (tcu::Surface& dst, int x, int y, int width, int height, const tcu::TextureFormat& format, const tcu::Vec4& scale, const tcu::Vec4& bias);
63 void clearColorBuffer (const tcu::TextureFormat& format, const tcu::Vec4& value = tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f));
/external/deqp/external/openglcts/modules/common/
H A DglcShaderMultisampleInterpolationTests.cpp217 tcu::TextureFormat const& texFormat, const char* m_sampler,
230 tcu::TextureFormat m_texFormat;
250 tcu::TextureFormat const& texFormat, const char* sampler, const char* outType, GLfloat min, GLfloat max,
299 if (((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::RGBA)) ||
300 ((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::RG)) ||
301 ((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::R)) ||
302 ((m_texFormat.type == tcu::TextureFormat
[all...]
/external/deqp/external/openglcts/modules/gles31/
H A Des31cSampleShadingTests.cpp170 GLenum internalFormat, tcu::TextureFormat const& texFormat, const char* m_sampler,
181 tcu::TextureFormat m_texFormat;
202 tcu::TextureFormat const& texFormat, const char* sampler,
244 if (((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::RGBA)) ||
245 ((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::RG)) ||
246 ((m_texFormat.type == tcu::TextureFormat::FLOAT) && (m_texFormat.order == tcu::TextureFormat::R)) ||
247 ((m_texFormat.type == tcu::TextureFormat
[all...]
/external/deqp/external/vulkancts/modules/vulkan/texture/
H A DvktSampleVerifierUtil.cpp654 bool isPackedType (const TextureFormat::ChannelType type)
656 DE_STATIC_ASSERT(TextureFormat::CHANNELTYPE_LAST == 40);
660 case TextureFormat::UNORM_BYTE_44:
661 case TextureFormat::UNORM_SHORT_565:
662 case TextureFormat::UNORM_SHORT_555:
663 case TextureFormat::UNORM_SHORT_4444:
664 case TextureFormat::UNORM_SHORT_5551:
665 case TextureFormat::UNORM_SHORT_1555:
666 case TextureFormat::UNORM_INT_101010:
667 case TextureFormat
[all...]
/external/deqp/modules/gles2/functional/
H A Des2fReadPixelsTests.cpp66 void getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize);
144 void ReadPixelsTest::getFormatInfo (tcu::TextureFormat& format, GLint& glFormat, GLint& glType, int& pixelSize)
161 format = tcu::TextureFormat(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8);
176 tcu::TextureFormat format(tcu::TextureFormat::RGBA, tcu::TextureFormat::UNORM_INT8);
224 tcu::Texture2D referenceRGBA8 (tcu::TextureFormat(tcu::TextureFormat
[all...]

Completed in 1901 milliseconds

12345678910