Skip to content

Commit

Permalink
remove unsupported targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mockersf committed Apr 13, 2021
1 parent cc7d6b4 commit a3306d7
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions crates/bevy_render/src/shader/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ pub enum ShaderError {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
)))]
/// shaderc error.
#[error("shaderc error: {}")]
Expand All @@ -49,9 +46,6 @@ pub enum ShaderError {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
)))]
#[error("Error initializing shaderc Compiler")]
ErrorInitializingShadercCompiler,
Expand All @@ -63,9 +57,6 @@ pub enum ShaderError {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
)))]
#[error("Error initializing shaderc CompileOptions")]
ErrorInitializingShadercCompileOptions,
Expand All @@ -77,9 +68,6 @@ pub enum ShaderError {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
))]
impl From<ShaderStage> for bevy_glsl_to_spirv::ShaderType {
fn from(s: ShaderStage) -> bevy_glsl_to_spirv::ShaderType {
Expand All @@ -97,9 +85,6 @@ impl From<ShaderStage> for bevy_glsl_to_spirv::ShaderType {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
))]
pub fn glsl_to_spirv(
glsl_source: &str,
Expand All @@ -117,9 +102,6 @@ pub fn glsl_to_spirv(
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
)))]
impl Into<shaderc::ShaderKind> for ShaderStage {
fn into(self) -> shaderc::ShaderKind {
Expand All @@ -138,9 +120,6 @@ impl Into<shaderc::ShaderKind> for ShaderStage {
all(target_arch = "aarch64", target_os = "android"),
all(target_arch = "armv7", target_os = "android"),
all(target_arch = "x86_64", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86", target_os = "windows", target_env = "msvc"),
all(target_arch = "x86_64", target_os = "windows", target_env = "gnu"),
all(target_arch = "x86", target_os = "windows", target_env = "gnu")
)))]
pub fn glsl_to_spirv(
glsl_source: &str,
Expand Down

0 comments on commit a3306d7

Please sign in to comment.