Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qsgcompressedtexture.cpp
Go to the documentation of this file.
1// Copyright (C) 2017 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5
7#include <QDebug>
8#include <QtQuick/private/qquickwindow_p.h>
9#include <QtQuick/private/qquickitem_p.h>
10#include <rhi/qrhi.h>
11
13
14Q_LOGGING_CATEGORY(QSG_LOG_TEXTUREIO, "qt.scenegraph.textureio");
15
16QSGCompressedTexture::QSGCompressedTexture(const QTextureFileData &texData)
17 : QSGTexture(*(new QSGTexturePrivate(this))),
18 m_textureData(texData)
19{
20 m_size = m_textureData.size();
21 m_hasAlpha = !formatIsOpaque(m_textureData.glInternalFormat());
22}
23
24QSGCompressedTexture::~QSGCompressedTexture()
25{
26 delete m_texture;
27}
28
29qint64 QSGCompressedTexture::comparisonKey() const
30{
31 if (m_texture)
32 return qint64(m_texture);
33
34 // two textures (and so materials) with not-yet-created texture underneath are never equal
35 return qint64(this);
36}
37
38QSize QSGCompressedTexture::textureSize() const
39{
40 return m_size;
41}
42
43bool QSGCompressedTexture::hasAlphaChannel() const
44{
45 return m_hasAlpha;
46}
47
48bool QSGCompressedTexture::hasMipmaps() const
49{
50 return false;
51}
52
54 // Copied from QOpenGLTexture.
55 // TODO: make a general solution that can be shared with QtQuick3D (QTBUG-82431)
56 enum {
57 NoFormat = 0, // GL_NONE
58
59 // Unsigned normalized formats
60 R8_UNorm = 0x8229, // GL_R8
61 RG8_UNorm = 0x822B, // GL_RG8
62 RGB8_UNorm = 0x8051, // GL_RGB8
63 RGBA8_UNorm = 0x8058, // GL_RGBA8
64
65 R16_UNorm = 0x822A, // GL_R16
66 RG16_UNorm = 0x822C, // GL_RG16
67 RGB16_UNorm = 0x8054, // GL_RGB16
68 RGBA16_UNorm = 0x805B, // GL_RGBA16
69
70 // Signed normalized formats
71 R8_SNorm = 0x8F94, // GL_R8_SNORM
72 RG8_SNorm = 0x8F95, // GL_RG8_SNORM
73 RGB8_SNorm = 0x8F96, // GL_RGB8_SNORM
74 RGBA8_SNorm = 0x8F97, // GL_RGBA8_SNORM
75
76 R16_SNorm = 0x8F98, // GL_R16_SNORM
77 RG16_SNorm = 0x8F99, // GL_RG16_SNORM
78 RGB16_SNorm = 0x8F9A, // GL_RGB16_SNORM
79 RGBA16_SNorm = 0x8F9B, // GL_RGBA16_SNORM
80
81 // Unsigned integer formats
82 R8U = 0x8232, // GL_R8UI
83 RG8U = 0x8238, // GL_RG8UI
84 RGB8U = 0x8D7D, // GL_RGB8UI
85 RGBA8U = 0x8D7C, // GL_RGBA8UI
86
87 R16U = 0x8234, // GL_R16UI
88 RG16U = 0x823A, // GL_RG16UI
89 RGB16U = 0x8D77, // GL_RGB16UI
90 RGBA16U = 0x8D76, // GL_RGBA16UI
91
92 R32U = 0x8236, // GL_R32UI
93 RG32U = 0x823C, // GL_RG32UI
94 RGB32U = 0x8D71, // GL_RGB32UI
95 RGBA32U = 0x8D70, // GL_RGBA32UI
96
97 // Signed integer formats
98 R8I = 0x8231, // GL_R8I
99 RG8I = 0x8237, // GL_RG8I
100 RGB8I = 0x8D8F, // GL_RGB8I
101 RGBA8I = 0x8D8E, // GL_RGBA8I
102
103 R16I = 0x8233, // GL_R16I
104 RG16I = 0x8239, // GL_RG16I
105 RGB16I = 0x8D89, // GL_RGB16I
106 RGBA16I = 0x8D88, // GL_RGBA16I
107
108 R32I = 0x8235, // GL_R32I
109 RG32I = 0x823B, // GL_RG32I
110 RGB32I = 0x8D83, // GL_RGB32I
111 RGBA32I = 0x8D82, // GL_RGBA32I
112
113 // Floating point formats
114 R16F = 0x822D, // GL_R16F
115 RG16F = 0x822F, // GL_RG16F
116 RGB16F = 0x881B, // GL_RGB16F
117 RGBA16F = 0x881A, // GL_RGBA16F
118
119 R32F = 0x822E, // GL_R32F
120 RG32F = 0x8230, // GL_RG32F
121 RGB32F = 0x8815, // GL_RGB32F
122 RGBA32F = 0x8814, // GL_RGBA32F
123
124 // Packed formats
125 RGB9E5 = 0x8C3D, // GL_RGB9_E5
126 RG11B10F = 0x8C3A, // GL_R11F_G11F_B10F
127 RG3B2 = 0x2A10, // GL_R3_G3_B2
128 R5G6B5 = 0x8D62, // GL_RGB565
129 RGB5A1 = 0x8057, // GL_RGB5_A1
130 RGBA4 = 0x8056, // GL_RGBA4
131 RGB10A2 = 0x906F, // GL_RGB10_A2UI
132
133 // Depth formats
134 D16 = 0x81A5, // GL_DEPTH_COMPONENT16
135 D24 = 0x81A6, // GL_DEPTH_COMPONENT24
136 D24S8 = 0x88F0, // GL_DEPTH24_STENCIL8
137 D32 = 0x81A7, // GL_DEPTH_COMPONENT32
138 D32F = 0x8CAC, // GL_DEPTH_COMPONENT32F
139 D32FS8X24 = 0x8CAD, // GL_DEPTH32F_STENCIL8
140 S8 = 0x8D48, // GL_STENCIL_INDEX8
141
142 // Compressed formats
143 RGB_DXT1 = 0x83F0, // GL_COMPRESSED_RGB_S3TC_DXT1_EXT
144 RGBA_DXT1 = 0x83F1, // GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
145 RGBA_DXT3 = 0x83F2, // GL_COMPRESSED_RGBA_S3TC_DXT3_EXT
146 RGBA_DXT5 = 0x83F3, // GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
147 R_ATI1N_UNorm = 0x8DBB, // GL_COMPRESSED_RED_RGTC1
148 R_ATI1N_SNorm = 0x8DBC, // GL_COMPRESSED_SIGNED_RED_RGTC1
149 RG_ATI2N_UNorm = 0x8DBD, // GL_COMPRESSED_RG_RGTC2
150 RG_ATI2N_SNorm = 0x8DBE, // GL_COMPRESSED_SIGNED_RG_RGTC2
151 RGB_BP_UNSIGNED_FLOAT = 0x8E8F, // GL_COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_ARB
152 RGB_BP_SIGNED_FLOAT = 0x8E8E, // GL_COMPRESSED_RGB_BPTC_SIGNED_FLOAT_ARB
153 RGB_BP_UNorm = 0x8E8C, // GL_COMPRESSED_RGBA_BPTC_UNORM_ARB
154 R11_EAC_UNorm = 0x9270, // GL_COMPRESSED_R11_EAC
155 R11_EAC_SNorm = 0x9271, // GL_COMPRESSED_SIGNED_R11_EAC
156 RG11_EAC_UNorm = 0x9272, // GL_COMPRESSED_RG11_EAC
157 RG11_EAC_SNorm = 0x9273, // GL_COMPRESSED_SIGNED_RG11_EAC
158 RGB8_ETC2 = 0x9274, // GL_COMPRESSED_RGB8_ETC2
159 SRGB8_ETC2 = 0x9275, // GL_COMPRESSED_SRGB8_ETC2
160 RGB8_PunchThrough_Alpha1_ETC2 = 0x9276, // GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2
161 SRGB8_PunchThrough_Alpha1_ETC2 = 0x9277, // GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2
162 RGBA8_ETC2_EAC = 0x9278, // GL_COMPRESSED_RGBA8_ETC2_EAC
163 SRGB8_Alpha8_ETC2_EAC = 0x9279, // GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC
164 RGB8_ETC1 = 0x8D64, // GL_ETC1_RGB8_OES
165 RGBA_ASTC_4x4 = 0x93B0, // GL_COMPRESSED_RGBA_ASTC_4x4_KHR
166 RGBA_ASTC_5x4 = 0x93B1, // GL_COMPRESSED_RGBA_ASTC_5x4_KHR
167 RGBA_ASTC_5x5 = 0x93B2, // GL_COMPRESSED_RGBA_ASTC_5x5_KHR
168 RGBA_ASTC_6x5 = 0x93B3, // GL_COMPRESSED_RGBA_ASTC_6x5_KHR
169 RGBA_ASTC_6x6 = 0x93B4, // GL_COMPRESSED_RGBA_ASTC_6x6_KHR
170 RGBA_ASTC_8x5 = 0x93B5, // GL_COMPRESSED_RGBA_ASTC_8x5_KHR
171 RGBA_ASTC_8x6 = 0x93B6, // GL_COMPRESSED_RGBA_ASTC_8x6_KHR
172 RGBA_ASTC_8x8 = 0x93B7, // GL_COMPRESSED_RGBA_ASTC_8x8_KHR
173 RGBA_ASTC_10x5 = 0x93B8, // GL_COMPRESSED_RGBA_ASTC_10x5_KHR
174 RGBA_ASTC_10x6 = 0x93B9, // GL_COMPRESSED_RGBA_ASTC_10x6_KHR
175 RGBA_ASTC_10x8 = 0x93BA, // GL_COMPRESSED_RGBA_ASTC_10x8_KHR
176 RGBA_ASTC_10x10 = 0x93BB, // GL_COMPRESSED_RGBA_ASTC_10x10_KHR
177 RGBA_ASTC_12x10 = 0x93BC, // GL_COMPRESSED_RGBA_ASTC_12x10_KHR
178 RGBA_ASTC_12x12 = 0x93BD, // GL_COMPRESSED_RGBA_ASTC_12x12_KHR
179 SRGB8_Alpha8_ASTC_4x4 = 0x93D0, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR
180 SRGB8_Alpha8_ASTC_5x4 = 0x93D1, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR
181 SRGB8_Alpha8_ASTC_5x5 = 0x93D2, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR
182 SRGB8_Alpha8_ASTC_6x5 = 0x93D3, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR
183 SRGB8_Alpha8_ASTC_6x6 = 0x93D4, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR
184 SRGB8_Alpha8_ASTC_8x5 = 0x93D5, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR
185 SRGB8_Alpha8_ASTC_8x6 = 0x93D6, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR
186 SRGB8_Alpha8_ASTC_8x8 = 0x93D7, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR
187 SRGB8_Alpha8_ASTC_10x5 = 0x93D8, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x5_KHR
188 SRGB8_Alpha8_ASTC_10x6 = 0x93D9, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x6_KHR
189 SRGB8_Alpha8_ASTC_10x8 = 0x93DA, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x8_KHR
190 SRGB8_Alpha8_ASTC_10x10 = 0x93DB, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_10x10_KHR
191 SRGB8_Alpha8_ASTC_12x10 = 0x93DC, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x10_KHR
192 SRGB8_Alpha8_ASTC_12x12 = 0x93DD, // GL_COMPRESSED_SRGB8_ALPHA8_ASTC_12x12_KHR
193
194 // sRGB formats
195 SRGB8 = 0x8C41, // GL_SRGB8
196 SRGB8_Alpha8 = 0x8C43, // GL_SRGB8_ALPHA8
197 SRGB_DXT1 = 0x8C4C, // GL_COMPRESSED_SRGB_S3TC_DXT1_EXT
198 SRGB_Alpha_DXT1 = 0x8C4D, // GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT
199 SRGB_Alpha_DXT3 = 0x8C4E, // GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT
200 SRGB_Alpha_DXT5 = 0x8C4F, // GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT
201 SRGB_BP_UNorm = 0x8E8D, // GL_COMPRESSED_SRGB_ALPHA_BPTC_UNORM_ARB
202
203 // ES 2 formats
204 DepthFormat = 0x1902, // GL_DEPTH_COMPONENT
205 AlphaFormat = 0x1906, // GL_ALPHA
206 RGBFormat = 0x1907, // GL_RGB
207 RGBAFormat = 0x1908, // GL_RGBA
208 LuminanceFormat = 0x1909, // GL_LUMINANCE
210
211 };
212}
213
214QSGCompressedTexture::FormatInfo QSGCompressedTexture::formatInfo(quint32 glTextureFormat)
215{
216 switch (glTextureFormat) {
217 case QInternalGLTextureFormat::RGB_DXT1:
218 return { QRhiTexture::BC1, false };
219 case QInternalGLTextureFormat::SRGB_DXT1:
220 return { QRhiTexture::BC1, true };
221
222 case QInternalGLTextureFormat::RGBA_DXT3:
223 return { QRhiTexture::BC2, false };
224 case QInternalGLTextureFormat::SRGB_Alpha_DXT3:
225 return { QRhiTexture::BC2, true };
226
227 case QInternalGLTextureFormat::RGBA_DXT5:
228 return { QRhiTexture::BC3, false };
229 case QInternalGLTextureFormat::SRGB_Alpha_DXT5:
230 return { QRhiTexture::BC3, true };
231
232 case QInternalGLTextureFormat::RGB8_ETC2:
233 return { QRhiTexture::ETC2_RGB8, false };
234 case QInternalGLTextureFormat::SRGB8_ETC2:
235 return { QRhiTexture::ETC2_RGB8, true };
236
237 case QInternalGLTextureFormat::RGB8_PunchThrough_Alpha1_ETC2:
238 return { QRhiTexture::ETC2_RGB8A1, false };
239 case QInternalGLTextureFormat::SRGB8_PunchThrough_Alpha1_ETC2:
240 return { QRhiTexture::ETC2_RGB8A1, true };
241
242 case QInternalGLTextureFormat::RGBA8_ETC2_EAC:
243 return { QRhiTexture::ETC2_RGBA8, false };
244 case QInternalGLTextureFormat::SRGB8_Alpha8_ETC2_EAC:
245 return { QRhiTexture::ETC2_RGBA8, true };
246
247 case QInternalGLTextureFormat::RGBA_ASTC_4x4:
248 return { QRhiTexture::ASTC_4x4, false };
249 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_4x4:
250 return { QRhiTexture::ASTC_4x4, true };
251
252 case QInternalGLTextureFormat::RGBA_ASTC_5x4:
253 return { QRhiTexture::ASTC_5x4, false };
254 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_5x4:
255 return { QRhiTexture::ASTC_5x4, true };
256
257 case QInternalGLTextureFormat::RGBA_ASTC_5x5:
258 return { QRhiTexture::ASTC_5x5, false };
259 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_5x5:
260 return { QRhiTexture::ASTC_5x5, true };
261
262 case QInternalGLTextureFormat::RGBA_ASTC_6x5:
263 return { QRhiTexture::ASTC_6x5, false };
264 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_6x5:
265 return { QRhiTexture::ASTC_6x5, true };
266
267 case QInternalGLTextureFormat::RGBA_ASTC_6x6:
268 return { QRhiTexture::ASTC_6x6, false };
269 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_6x6:
270 return { QRhiTexture::ASTC_6x6, true };
271
272 case QInternalGLTextureFormat::RGBA_ASTC_8x5:
273 return { QRhiTexture::ASTC_8x5, false };
274 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_8x5:
275 return { QRhiTexture::ASTC_8x5, true };
276
277 case QInternalGLTextureFormat::RGBA_ASTC_8x6:
278 return { QRhiTexture::ASTC_8x6, false };
279 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_8x6:
280 return { QRhiTexture::ASTC_8x6, true };
281
282 case QInternalGLTextureFormat::RGBA_ASTC_8x8:
283 return { QRhiTexture::ASTC_8x8, false };
284 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_8x8:
285 return { QRhiTexture::ASTC_8x8, true };
286
287 case QInternalGLTextureFormat::RGBA_ASTC_10x5:
288 return { QRhiTexture::ASTC_10x5, false };
289 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_10x5:
290 return { QRhiTexture::ASTC_10x5, true };
291
292 case QInternalGLTextureFormat::RGBA_ASTC_10x6:
293 return { QRhiTexture::ASTC_10x6, false };
294 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_10x6:
295 return { QRhiTexture::ASTC_10x6, true };
296
297 case QInternalGLTextureFormat::RGBA_ASTC_10x8:
298 return { QRhiTexture::ASTC_10x8, false };
299 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_10x8:
300 return { QRhiTexture::ASTC_10x8, true };
301
302 case QInternalGLTextureFormat::RGBA_ASTC_10x10:
303 return { QRhiTexture::ASTC_10x10, false };
304 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_10x10:
305 return { QRhiTexture::ASTC_10x10, true };
306
307 case QInternalGLTextureFormat::RGBA_ASTC_12x10:
308 return { QRhiTexture::ASTC_12x10, false };
309 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_12x10:
310 return { QRhiTexture::ASTC_12x10, true };
311
312 case QInternalGLTextureFormat::RGBA_ASTC_12x12:
313 return { QRhiTexture::ASTC_12x12, false };
314 case QInternalGLTextureFormat::SRGB8_Alpha8_ASTC_12x12:
315 return { QRhiTexture::ASTC_12x12, true };
316
317 default:
318 return { QRhiTexture::UnknownFormat, false };
319 }
320}
321
322QRhiTexture *QSGCompressedTexture::rhiTexture() const
323{
324 return m_texture;
325}
326
327void QSGCompressedTexture::commitTextureOperations(QRhi *rhi, QRhiResourceUpdateBatch *resourceUpdates)
328{
329 if (m_uploaded)
330 return;
331
332 m_uploaded = true; // even if fails, no point in trying again
333
334 if (!m_textureData.isValid()) {
335 qCDebug(QSG_LOG_TEXTUREIO, "Invalid texture data for %s", m_textureData.logName().constData());
336 return;
337 }
338
339 FormatInfo fmt = formatInfo(m_textureData.glInternalFormat());
340 if (fmt.rhiFormat == QRhiTexture::UnknownFormat) {
341 qWarning("Unknown compressed format 0x%x", m_textureData.glInternalFormat());
342 return;
343 }
344
345 if (!m_texture) {
346 QRhiTexture::Flags texFlags;
347 if (fmt.isSRGB)
348 texFlags |= QRhiTexture::sRGB;
349
350 if (!rhi->isTextureFormatSupported(fmt.rhiFormat, texFlags)) {
351 qCDebug(QSG_LOG_TEXTUREIO, "Compressed texture format possibly unsupported: 0x%x",
352 m_textureData.glInternalFormat());
353 // For the Metal backend, don't even try to create an unsupported texture
354 // since trying to do so is invalid.
355 if (rhi->backend() == QRhi::Metal) {
356 qWarning("Unsupported compressed texture format 0x%x", m_textureData.glInternalFormat());
357 return;
358 }
359 }
360
361 m_texture = rhi->newTexture(fmt.rhiFormat, m_size, 1, texFlags);
362 if (!m_texture->create()) {
363 qWarning("Failed to create QRhiTexture for compressed data with format 0x%x",
364 m_textureData.glInternalFormat());
365 delete m_texture;
366 m_texture = nullptr;
367 return;
368 }
369 }
370
371 // only upload mip level 0 since we never do mipmapping for compressed textures (for now?)
372 resourceUpdates->uploadTexture(
373 m_texture,
374 QRhiTextureUploadEntry(0, 0,
375 QRhiTextureSubresourceUploadDescription(
376 m_textureData.getDataView().toByteArray())));
377
378 m_textureData = QTextureFileData(); // Release this memory, not needed anymore
379}
380
381QTextureFileData QSGCompressedTexture::textureData() const
382{
383 return m_textureData;
384}
385
386bool QSGCompressedTexture::formatIsOpaque(quint32 glTextureFormat)
387{
388 switch (glTextureFormat) {
389 case QInternalGLTextureFormat::RGB_DXT1:
390 case QInternalGLTextureFormat::R_ATI1N_UNorm:
391 case QInternalGLTextureFormat::R_ATI1N_SNorm:
392 case QInternalGLTextureFormat::RG_ATI2N_UNorm:
393 case QInternalGLTextureFormat::RG_ATI2N_SNorm:
394 case QInternalGLTextureFormat::RGB_BP_UNSIGNED_FLOAT:
395 case QInternalGLTextureFormat::RGB_BP_SIGNED_FLOAT:
396 case QInternalGLTextureFormat::R11_EAC_UNorm:
397 case QInternalGLTextureFormat::R11_EAC_SNorm:
398 case QInternalGLTextureFormat::RG11_EAC_UNorm:
399 case QInternalGLTextureFormat::RG11_EAC_SNorm:
400 case QInternalGLTextureFormat::RGB8_ETC2:
401 case QInternalGLTextureFormat::SRGB8_ETC2:
402 case QInternalGLTextureFormat::RGB8_ETC1:
403 case QInternalGLTextureFormat::SRGB_DXT1:
404 return true;
405 break;
406 default:
407 return false;
408 }
409}
410
411QSGCompressedTextureFactory::QSGCompressedTextureFactory(const QTextureFileData &texData)
412 : m_textureData(texData)
413{
414}
415
416QSGTexture *QSGCompressedTextureFactory::createTexture(QQuickWindow *window) const
417{
418 if (!m_textureData.isValid())
419 return nullptr;
420
421 // attempt to atlas the texture
422 QSGRenderContext *context = QQuickWindowPrivate::get(window)->context;
423 QSGTexture *t = context->compressedTextureForFactory(this);
424 if (t)
425 return t;
426
427 return new QSGCompressedTexture(m_textureData);
428}
429
430int QSGCompressedTextureFactory::textureByteCount() const
431{
432 return m_textureData.getDataView().size();
433}
434
435QSize QSGCompressedTextureFactory::textureSize() const
436{
437 return m_textureData.size();
438}
439
440QT_END_NAMESPACE
441
442#include "moc_qsgcompressedtexture_p.cpp"
Combined button and popup list for selecting options.