Lines Matching refs:TextureFormat
67 using tcu::TextureFormat;
135 static inline bool isFormatTypeUnsignedInteger (TextureFormat::ChannelType type) in isFormatTypeUnsignedInteger()
137 return type == TextureFormat::UNSIGNED_INT8 || in isFormatTypeUnsignedInteger()
138 type == TextureFormat::UNSIGNED_INT16 || in isFormatTypeUnsignedInteger()
139 type == TextureFormat::UNSIGNED_INT32; in isFormatTypeUnsignedInteger()
142 static inline bool isFormatTypeSignedInteger (TextureFormat::ChannelType type) in isFormatTypeSignedInteger()
144 return type == TextureFormat::SIGNED_INT8 || in isFormatTypeSignedInteger()
145 type == TextureFormat::SIGNED_INT16 || in isFormatTypeSignedInteger()
146 type == TextureFormat::SIGNED_INT32; in isFormatTypeSignedInteger()
149 static inline bool isFormatTypeInteger (TextureFormat::ChannelType type) in isFormatTypeInteger()
154 static inline bool isFormatTypeUnorm (TextureFormat::ChannelType type) in isFormatTypeUnorm()
156 return type == TextureFormat::UNORM_INT8 || in isFormatTypeUnorm()
157 type == TextureFormat::UNORM_INT16 || in isFormatTypeUnorm()
158 type == TextureFormat::UNORM_INT32; in isFormatTypeUnorm()
161 static inline bool isFormatTypeSnorm (TextureFormat::ChannelType type) in isFormatTypeSnorm()
163 return type == TextureFormat::SNORM_INT8 || in isFormatTypeSnorm()
164 type == TextureFormat::SNORM_INT16 || in isFormatTypeSnorm()
165 type == TextureFormat::SNORM_INT32; in isFormatTypeSnorm()
168 static inline bool isFormatSupportedForTextureBuffer (const TextureFormat& format) in isFormatSupportedForTextureBuffer()
172 case TextureFormat::RGB: in isFormatSupportedForTextureBuffer()
173 return format.type == TextureFormat::FLOAT || in isFormatSupportedForTextureBuffer()
174 format.type == TextureFormat::SIGNED_INT32 || in isFormatSupportedForTextureBuffer()
175 format.type == TextureFormat::UNSIGNED_INT32; in isFormatSupportedForTextureBuffer()
178 case TextureFormat::R: in isFormatSupportedForTextureBuffer()
179 case TextureFormat::RG: in isFormatSupportedForTextureBuffer()
180 case TextureFormat::RGBA: in isFormatSupportedForTextureBuffer()
181 return format.type == TextureFormat::UNORM_INT8 || in isFormatSupportedForTextureBuffer()
182 format.type == TextureFormat::HALF_FLOAT || in isFormatSupportedForTextureBuffer()
183 format.type == TextureFormat::FLOAT || in isFormatSupportedForTextureBuffer()
184 format.type == TextureFormat::SIGNED_INT8 || in isFormatSupportedForTextureBuffer()
185 format.type == TextureFormat::SIGNED_INT16 || in isFormatSupportedForTextureBuffer()
186 format.type == TextureFormat::SIGNED_INT32 || in isFormatSupportedForTextureBuffer()
187 format.type == TextureFormat::UNSIGNED_INT8 || in isFormatSupportedForTextureBuffer()
188 format.type == TextureFormat::UNSIGNED_INT16 || in isFormatSupportedForTextureBuffer()
189 format.type == TextureFormat::UNSIGNED_INT32; in isFormatSupportedForTextureBuffer()
196 static inline string getShaderImageFormatQualifier (const TextureFormat& format) in getShaderImageFormatQualifier()
203 case TextureFormat::R: orderPart = "r"; break; in getShaderImageFormatQualifier()
204 case TextureFormat::RGBA: orderPart = "rgba"; break; in getShaderImageFormatQualifier()
212 case TextureFormat::FLOAT: typePart = "32f"; break; in getShaderImageFormatQualifier()
213 case TextureFormat::HALF_FLOAT: typePart = "16f"; break; in getShaderImageFormatQualifier()
215 case TextureFormat::UNSIGNED_INT32: typePart = "32ui"; break; in getShaderImageFormatQualifier()
216 case TextureFormat::UNSIGNED_INT16: typePart = "16ui"; break; in getShaderImageFormatQualifier()
217 case TextureFormat::UNSIGNED_INT8: typePart = "8ui"; break; in getShaderImageFormatQualifier()
219 case TextureFormat::SIGNED_INT32: typePart = "32i"; break; in getShaderImageFormatQualifier()
220 case TextureFormat::SIGNED_INT16: typePart = "16i"; break; in getShaderImageFormatQualifier()
221 case TextureFormat::SIGNED_INT8: typePart = "8i"; break; in getShaderImageFormatQualifier()
223 case TextureFormat::UNORM_INT16: typePart = "16"; break; in getShaderImageFormatQualifier()
224 case TextureFormat::UNORM_INT8: typePart = "8"; break; in getShaderImageFormatQualifier()
226 case TextureFormat::SNORM_INT16: typePart = "16_snorm"; break; in getShaderImageFormatQualifier()
227 case TextureFormat::SNORM_INT8: typePart = "8_snorm"; break; in getShaderImageFormatQualifier()
237 static inline string getShaderSamplerOrImageType (TextureFormat::ChannelType formatType, TextureTyp… in getShaderSamplerOrImageType()
253 static inline string getShaderImageType (TextureFormat::ChannelType formatType, TextureType imageTy… in getShaderImageType()
258 static inline string getShaderSamplerType (TextureFormat::ChannelType formatType, TextureType image… in getShaderSamplerType()
294 static inline tcu::Texture1D* newOneLevelTexture1D (const tcu::TextureFormat& format, int w) in newOneLevelTexture1D()
301 static inline tcu::Texture2D* newOneLevelTexture2D (const tcu::TextureFormat& format, int w, int h) in newOneLevelTexture2D()
308 static inline tcu::TextureCube* newOneLevelTextureCube (const tcu::TextureFormat& format, int size) in newOneLevelTextureCube()
316 static inline tcu::Texture3D* newOneLevelTexture3D (const tcu::TextureFormat& format, int w, int h,… in newOneLevelTexture3D()
323 static inline tcu::Texture2DArray* newOneLevelTexture2DArray (const tcu::TextureFormat& format, int… in newOneLevelTexture2DArray()
581 LayeredImage (TextureType type, const TextureFormat& format, int w, int h, int d);
585 const TextureFormat& getFormat (void) const { return m_format; } in getFormat()
615 const TextureFormat m_format;
625 LayeredImage::LayeredImage (TextureType type, const TextureFormat& format, int w, int h, int d) in LayeredImage()
711 const TextureFormat format = glu::mapGLInternalFormat(internalFormat); in setTextureStorage()
833 const TextureFormat& textureFormat, in readIntegerTextureViaFBOAndVerify()
890 const TextureFormat& textureFormat, in readFloatOrNormTextureWithLookupsAndVerify()
1020 case TextureFormat::R: resultSliceAccess.setPixel(Vec4(clrData[0]), x, y); break; in readFloatOrNormTextureWithLookupsAndVerify()
1021 …case TextureFormat::RGBA: resultSliceAccess.setPixel(Vec4(clrData[0], clrData[1], clrData[2], clrD… in readFloatOrNormTextureWithLookupsAndVerify()
1041 const TextureFormat& textureFormat, in readBufferTextureWithMappingAndVerify()
1066 const TextureFormat& textureFormat, in readTextureAndVerify()
1121 …ImageStoreCase (Context& context, const char* name, const char* description, const TextureFormat& … in ImageStoreCase()
1133 const TextureFormat m_format;
1286 …e (Context& context, const char* name, const char* description, const TextureFormat& format, Textu… in ImageLoadAndStoreCase()
1296 …t, const char* name, const char* description, const TextureFormat& textureFormat, const TextureFor… in ImageLoadAndStoreCase()
1311 …template <TextureFormat::ChannelType ImageFormatType, typename TcuFloatType, typename TcuFloatStor…
1312 …static void replaceBadFloatReinterpretValues (LayeredImage& image, const TextureFormat& imageF…
1314 const TextureFormat m_textureFormat;
1315 const TextureFormat m_imageFormat;
1321 template <TextureFormat::ChannelType ImageFormatType, typename TcuFloatType, typename TcuFloatTypeS…
1322 …StoreCase::replaceBadFloatReinterpretValues (LayeredImage& image, const TextureFormat& imageFormat) in replaceBadFloatReinterpretValues()
1326 const int imageNumChannels = imageFormat.order == tcu::TextureFormat::R ? 1 in replaceBadFloatReinterpretValues()
1327 : imageFormat.order == tcu::TextureFormat::RGBA ? 4 in replaceBadFloatReinterpretValues()
1404 …if (m_imageFormat.type == TextureFormat::HALF_FLOAT && m_textureFormat.type != TextureFormat::HALF… in iterate()
1405 …replaceBadFloatReinterpretValues<TextureFormat::HALF_FLOAT, tcu::Float16, deUint16>(reference, m_i… in iterate()
1406 …else if (m_imageFormat.type == TextureFormat::FLOAT && m_textureFormat.type != TextureFormat::FLOA… in iterate()
1407 …replaceBadFloatReinterpretValues<TextureFormat::FLOAT, tcu::Float32, deUint32>(reference, m_imageF… in iterate()
1602 … (Context& context, const char* name, const char* description, const TextureFormat& format, Textu… in BinaryAtomicOperationCase()
1609 DE_ASSERT(m_format == TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32) || in BinaryAtomicOperationCase()
1610 m_format == TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32) || in BinaryAtomicOperationCase()
1611 …(m_format == TextureFormat(TextureFormat::R, TextureFormat::FLOAT) && m_operation == ATOMIC_OPERAT… in BinaryAtomicOperationCase()
1631 const TextureFormat m_format;
2110 … (Context& context, const char* name, const char* description, const TextureFormat& format, Textu… in AtomicCompSwapCase()
2116 DE_ASSERT(m_format == TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32) || in AtomicCompSwapCase()
2117 m_format == TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32)); in AtomicCompSwapCase()
2134 const TextureFormat m_format;
2517 …CoherenceCase (Context& context, const char* name, const char* description, const TextureFormat& f… in CoherenceCase()
2528 DE_ASSERT(m_format == TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32) || in CoherenceCase()
2529 m_format == TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32) || in CoherenceCase()
2530 m_format == TextureFormat(TextureFormat::R, TextureFormat::FLOAT)); in CoherenceCase()
2544 const TextureFormat m_format;
2726 …DE_ASSERT(resultSlice.getFormat() == TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32… in operator ()()
2762 …ImageSizeCase (Context& context, const char* name, const char* description, const TextureFormat& f… in ImageSizeCase()
2775 const TextureFormat m_format;
2878 …rCtx, glLog, *shaderOutResultTexture, TEXTURETYPE_2D, TextureFormat(TextureFormat::R, TextureForma… in iterate()
2983 …LayeredImage src(TEXTURETYPE_2D, TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32), 1… in iterate()
3143 …AndVerify(renderCtx, glLog, *texture, TEXTURETYPE_2D, TextureFormat(TextureFormat::R, TextureForma… in iterate()
3178 static const TextureFormat formats[] = in init()
3180 TextureFormat(TextureFormat::RGBA, TextureFormat::FLOAT), in init()
3181 TextureFormat(TextureFormat::RGBA, TextureFormat::HALF_FLOAT), in init()
3182 TextureFormat(TextureFormat::R, TextureFormat::FLOAT), in init()
3184 TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT32), in init()
3185 TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT16), in init()
3186 TextureFormat(TextureFormat::RGBA, TextureFormat::UNSIGNED_INT8), in init()
3187 TextureFormat(TextureFormat::R, TextureFormat::UNSIGNED_INT32), in init()
3189 TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT32), in init()
3190 TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT16), in init()
3191 TextureFormat(TextureFormat::RGBA, TextureFormat::SIGNED_INT8), in init()
3192 TextureFormat(TextureFormat::R, TextureFormat::SIGNED_INT32), in init()
3194 TextureFormat(TextureFormat::RGBA, TextureFormat::UNORM_INT8), in init()
3196 TextureFormat(TextureFormat::RGBA, TextureFormat::SNORM_INT8) in init()
3220 const TextureFormat& format = formats[formatNdx]; in init()
3238 if (format.order == TextureFormat::R) in init()
3248 if (format.type == TextureFormat::FLOAT && operation != ATOMIC_OPERATION_EXCHANGE) in init()
3280 …ew ImageLoadAndStoreCase(m_context, "restrict", "", TextureFormat(TextureFormat::RGBA, TextureForm… in init()
3287 const TextureFormat& texFmt = formats[texFmtNdx]; in init()
3288 const TextureFormat& imgFmt = formats[imgFmtNdx]; in init()
3337 …(new ImageSizeCase(m_context, caseName.c_str(), "", TextureFormat(TextureFormat::RGBA, TextureForm… in init()