mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-30 01:54:31 +01:00
Add supported caps info to naga backends (#9068)
* Initial commit * 3/5 done I think * Updated naga bin to use new caps * Made clippy shut up * Tried to fix dota2 validation error * HLSL list made, also formatted Cargo.toml * Made stuff work with snapshots * Added changelog and GLSL list * Updated message
This commit is contained in:
1 parent
6432094c9e
commit
fdd903e6e4
24 files changed
+377
-62
No files matched your search
@@ -1332,6 +1332,7 @@ bitflags_array! {
|
||||
/// Supported platforms:
|
||||
/// - desktops
|
||||
/// - some mobile chips
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const DEPTH_CLIP_CONTROL = WEBGPU_FEATURE_DEPTH_CLIP_CONTROL;
|
||||
@@ -1343,6 +1344,7 @@ bitflags_array! {
|
||||
/// - DX12
|
||||
/// - Metal
|
||||
/// - OpenGL
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
///
|
||||
@@ -1363,6 +1365,7 @@ bitflags_array! {
|
||||
/// Supported Platforms:
|
||||
/// - desktops
|
||||
/// - Mobile (All Apple9 and some Apple7 and Apple8 devices)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const TEXTURE_COMPRESSION_BC = WEBGPU_FEATURE_TEXTURE_COMPRESSION_BC;
|
||||
@@ -1376,6 +1379,7 @@ bitflags_array! {
|
||||
/// Supported Platforms:
|
||||
/// - desktops
|
||||
/// - Mobile (All Apple9 and some Apple7 and Apple8 devices)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const TEXTURE_COMPRESSION_BC_SLICED_3D = WEBGPU_FEATURE_TEXTURE_COMPRESSION_BC_SLICED_3D;
|
||||
@@ -1392,6 +1396,7 @@ bitflags_array! {
|
||||
/// Supported Platforms:
|
||||
/// - Vulkan on Intel
|
||||
/// - Mobile (some)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const TEXTURE_COMPRESSION_ETC2 = WEBGPU_FEATURE_TEXTURE_COMPRESSION_ETC2;
|
||||
@@ -1411,6 +1416,7 @@ bitflags_array! {
|
||||
/// Supported Platforms:
|
||||
/// - Vulkan on Intel
|
||||
/// - Mobile (some)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const TEXTURE_COMPRESSION_ASTC = WEBGPU_FEATURE_TEXTURE_COMPRESSION_ASTC;
|
||||
@@ -1425,6 +1431,7 @@ bitflags_array! {
|
||||
/// - Vulkan (some)
|
||||
/// - Metal on Apple3+
|
||||
/// - OpenGL/WebGL (some)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// Not Supported:
|
||||
/// - DX12
|
||||
@@ -1452,6 +1459,7 @@ bitflags_array! {
|
||||
/// - Vulkan
|
||||
/// - DX12
|
||||
/// - Metal
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
///
|
||||
@@ -1473,6 +1481,7 @@ bitflags_array! {
|
||||
/// - DX12
|
||||
/// - Metal on Apple3+ or Mac1+
|
||||
/// - OpenGL (Desktop 4.2+ with ARB_shader_draw_parameters only)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// Not Supported:
|
||||
/// - OpenGL ES / WebGL
|
||||
@@ -1490,6 +1499,7 @@ bitflags_array! {
|
||||
/// - Vulkan
|
||||
/// - Metal
|
||||
/// - DX12
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const SHADER_F16 = WEBGPU_FEATURE_SHADER_F16;
|
||||
@@ -1500,6 +1510,7 @@ bitflags_array! {
|
||||
/// - Vulkan
|
||||
/// - DX12
|
||||
/// - Metal
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
///
|
||||
@@ -1512,6 +1523,7 @@ bitflags_array! {
|
||||
/// - Vulkan
|
||||
/// - DX12
|
||||
/// - Metal
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
///
|
||||
@@ -1527,6 +1539,7 @@ bitflags_array! {
|
||||
/// - DX12
|
||||
/// - Metal on macOS or Apple9+ GPUs, optional on iOS/iPadOS with Apple7/8 GPUs
|
||||
/// - GL with one of `GL_ARB_color_buffer_float`/`GL_EXT_color_buffer_float`/`OES_texture_float_linear`
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const FLOAT32_FILTERABLE = WEBGPU_FEATURE_FLOAT32_FILTERABLE;
|
||||
@@ -1535,6 +1548,7 @@ bitflags_array! {
|
||||
///
|
||||
/// Supported Platforms:
|
||||
/// - Vulkan
|
||||
/// - WebGPU
|
||||
const FLOAT32_BLENDABLE = WEBGPU_FEATURE_FLOAT32_BLENDABLE;
|
||||
|
||||
/// Allows two outputs from a shader to be used for blending.
|
||||
@@ -1547,6 +1561,7 @@ bitflags_array! {
|
||||
/// - Metal (with MSL 1.2+)
|
||||
/// - Vulkan (with dualSrcBlend)
|
||||
/// - DX12
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const DUAL_SOURCE_BLENDING = WEBGPU_FEATURE_DUAL_SOURCE_BLENDING;
|
||||
@@ -1555,7 +1570,9 @@ bitflags_array! {
|
||||
///
|
||||
/// Supported platforms:
|
||||
/// - Vulkan (mainly on Desktop GPUs)
|
||||
/// - Metal
|
||||
/// - GL (Desktop or `GL_EXT_clip_cull_distance`)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// This is a web and native feature.
|
||||
const CLIP_DISTANCES = WEBGPU_FEATURE_CLIP_DISTANCES;
|
||||
@@ -1580,6 +1597,7 @@ bitflags_array! {
|
||||
/// - Vulkan
|
||||
/// - Metal
|
||||
/// - OpenGL (emulated with uniforms)
|
||||
/// - WebGPU
|
||||
///
|
||||
/// WebGPU support is currently a proposal and will be available in browsers in the future.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user