Skip to content

remove webgpu target #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions spirv-tools-sys/src/shared.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ pub enum TargetEnv {
Universal_1_3,
/// Vulkan 1.1 latest revision.
Vulkan_1_1,
/// Work in progress WebGPU 1.0.
WebGPU_0,
/// SPIR-V 1.4 latest revision, no other restrictions.
Universal_1_4,
/// Vulkan 1.1 with `VK_KHR_spirv_1_4`, i.e. SPIR-V 1.4 binary.
Expand Down Expand Up @@ -109,7 +107,6 @@ impl TargetEnv {

TargetEnv::Vulkan_1_0 => (1, 0),
TargetEnv::Vulkan_1_1 => (1, 3),
TargetEnv::WebGPU_0 => (1, 3),
TargetEnv::Vulkan_1_1_Spirv_1_4 => (1, 4),
TargetEnv::Vulkan_1_2 => (1, 5),
TargetEnv::Vulkan_1_3 => (1, 6),
Expand Down Expand Up @@ -156,7 +153,6 @@ impl std::str::FromStr for TargetEnv {
"opengl4.2" => Self::OpenGL_4_2,
"opengl4.3" => Self::OpenGL_4_3,
"opengl4.5" => Self::OpenGL_4_5,
"webgpu0" => Self::WebGPU_0,
_ => return Err(SpirvResult::InvalidValue),
})
}
Expand Down Expand Up @@ -191,7 +187,6 @@ impl fmt::Display for TargetEnv {
Self::OpenGL_4_2 => "opengl4.2",
Self::OpenGL_4_3 => "opengl4.3",
Self::OpenGL_4_5 => "opengl4.5",
Self::WebGPU_0 => "webgpu0",
})
}
}
Expand Down
18 changes: 0 additions & 18 deletions src/opt/compiled.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,24 +162,6 @@ impl Optimizer for CompiledOptimizer {
self
}

// /// Registers passes that have been prescribed for converting from Vulkan to
// /// WebGPU. This sequence of passes is subject to constant review and will
// /// change from time to time.
// #[inline]
// pub fn register_vulkan_to_webgpu_passes(&mut self) -> &mut Self {
// unsafe { opt::optimizer_register_vulkan_to_webgpu_passes(self.inner) }
// self
// }

// /// Registers passes that have been prescribed for converting from WebGPU to
// /// Vulkan. This sequence of passes is subject to constant review and will
// /// change from time to time.
// #[inline]
// pub fn register_webgpu_to_vulkan_passes(&mut self) -> &mut Self {
// unsafe { opt::optimizer_register_webgpu_to_vulkan_passes(self.inner) }
// self
// }

/// Registers passes that attempt to legalize the generated code.
///
/// Note: this recipe is specially designed for legalizing SPIR-V. It should be
Expand Down
2 changes: 0 additions & 2 deletions src/opt/tool.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ pub struct ToolOptimizer {
passes: Vec<super::Passes>,
use_perf_passes: bool,
use_size_passes: bool,
//use_vulkan_to_webgpu: bool,
//use_webgpu_to_vulkan: bool,
legalize_hlsl: bool,
}

Expand Down
Loading