You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: wgpu-types/src/lib.rs
+45-10Lines changed: 45 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -290,12 +290,28 @@ bitflags::bitflags! {
290
290
/// Support for this feature guarantees availability of [`TextureUsages::COPY_SRC | TextureUsages::COPY_DST | TextureUsages::TEXTURE_BINDING`] for BCn formats.
291
291
/// [`Features::TEXTURE_ADAPTER_SPECIFIC_FORMAT_FEATURES`] may enable additional usages.
292
292
///
293
+
/// This feature guarantees availability of sliced-3d textures for BC formats when combined with TEXTURE_COMPRESSION_BC_SLICED_3D.
294
+
///
293
295
/// Supported Platforms:
294
296
/// - desktops
297
+
/// - Mobile (All Apple9 and some Apple7 and Apple8 devices)
295
298
///
296
299
/// This is a web and native feature.
297
300
constTEXTURE_COMPRESSION_BC = 1 << 2;
298
301
302
+
303
+
/// Allows the 3d dimension for textures with BC compressed formats.
304
+
///
305
+
/// This feature must be used in combination with TEXTURE_COMPRESSION_BC to enable 3D textures with BC compression.
306
+
/// It does not enable the BC formats by itself.
307
+
///
308
+
/// Supported Platforms:
309
+
/// - desktops
310
+
/// - Mobile (All Apple9 and some Apple7 and Apple8 devices)
311
+
///
312
+
/// This is a web and native feature.
313
+
constTEXTURE_COMPRESSION_BC_SLICED_3D = 1 << 3;
314
+
299
315
/// Enables ETC family of compressed textures. All ETC textures use 4x4 pixel blocks.
300
316
/// ETC2 RGB and RGBA1 are 8 bytes per block. RTC2 RGBA8 and EAC are 16 bytes per block.
301
317
///
@@ -310,7 +326,7 @@ bitflags::bitflags! {
310
326
/// - Mobile (some)
311
327
///
312
328
/// This is a web and native feature.
313
-
constTEXTURE_COMPRESSION_ETC2 = 1 << 3;
329
+
constTEXTURE_COMPRESSION_ETC2 = 1 << 4;
314
330
315
331
/// Enables ASTC family of compressed textures. ASTC textures use pixel blocks varying from 4x4 to 12x12.
316
332
/// Blocks are always 16 bytes.
@@ -326,7 +342,7 @@ bitflags::bitflags! {
326
342
/// - Mobile (some)
327
343
///
328
344
/// This is a web and native feature.
329
-
constTEXTURE_COMPRESSION_ASTC = 1 << 4;
345
+
constTEXTURE_COMPRESSION_ASTC = 1 << 5;
330
346
331
347
/// Enables use of Timestamp Queries. These queries tell the current gpu timestamp when
332
348
/// all work before the query is finished.
@@ -350,7 +366,7 @@ bitflags::bitflags! {
350
366
/// - Metal
351
367
///
352
368
/// This is a web and native feature.
353
-
constTIMESTAMP_QUERY = 1 << 5;
369
+
constTIMESTAMP_QUERY = 1 << 6;
354
370
355
371
/// Allows non-zero value for the `first_instance` member in indirect draw calls.
356
372
///
@@ -369,7 +385,7 @@ bitflags::bitflags! {
369
385
/// - OpenGL ES / WebGL
370
386
///
371
387
/// This is a web and native feature.
372
-
constINDIRECT_FIRST_INSTANCE = 1 << 6;
388
+
constINDIRECT_FIRST_INSTANCE = 1 << 7;
373
389
374
390
/// Allows shaders to acquire the FP16 ability
375
391
///
@@ -380,7 +396,7 @@ bitflags::bitflags! {
380
396
/// - Metal
381
397
///
382
398
/// This is a web and native feature.
383
-
constSHADER_F16 = 1 << 7;
399
+
constSHADER_F16 = 1 << 8;
384
400
385
401
386
402
/// Allows for usage of textures of format [`TextureFormat::Rg11b10Float`] as a render target
@@ -391,7 +407,7 @@ bitflags::bitflags! {
391
407
/// - Metal
392
408
///
393
409
/// This is a web and native feature.
394
-
constRG11B10UFLOAT_RENDERABLE = 1 << 8;
410
+
constRG11B10UFLOAT_RENDERABLE = 1 << 9;
395
411
396
412
/// Allows the [`wgpu::TextureUsages::STORAGE_BINDING`] usage on textures with format [`TextureFormat::Bgra8unorm`]
397
413
///
@@ -401,7 +417,7 @@ bitflags::bitflags! {
401
417
/// - Metal
402
418
///
403
419
/// This is a web and native feature.
404
-
constBGRA8UNORM_STORAGE = 1 << 9;
420
+
constBGRA8UNORM_STORAGE = 1 << 10;
405
421
406
422
407
423
/// Allows textures with formats "r32float", "rg32float", and "rgba32float" to be filterable.
@@ -413,9 +429,9 @@ bitflags::bitflags! {
413
429
/// - GL with one of `GL_ARB_color_buffer_float`/`GL_EXT_color_buffer_float`/`OES_texture_float_linear`
414
430
///
415
431
/// This is a web and native feature.
416
-
constFLOAT32_FILTERABLE = 1 << 10;
432
+
constFLOAT32_FILTERABLE = 1 << 11;
417
433
418
-
// Bits 11-19 available for webgpu features. Should you chose to use some of them for
434
+
// Bits 12-19 available for webgpu features. Should you chose to use some of them for
419
435
// for native features, don't forget to update `all_webgpu_mask` and `all_native_mask`
0 commit comments