#[macro_export]
#[cfg(all(
feature = "dx12",
all(target_os = "windows", not(target_arch = "wasm32"))
))]
macro_rules! rendy_with_dx12_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(all(
feature = "dx12",
all(target_os = "windows", not(target_arch = "wasm32"))
)))]
macro_rules! rendy_with_dx12_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(all(
feature = "dx12",
all(target_os = "windows", not(target_arch = "wasm32"))
)))]
macro_rules! rendy_without_dx12_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(all(
feature = "dx12",
all(target_os = "windows", not(target_arch = "wasm32"))
))]
macro_rules! rendy_without_dx12_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(feature = "empty")]
macro_rules! rendy_with_empty_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(feature = "empty"))]
macro_rules! rendy_with_empty_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(feature = "empty"))]
macro_rules! rendy_without_empty_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(feature = "empty")]
macro_rules! rendy_without_empty_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(feature = "gl")]
macro_rules! rendy_with_gl_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(feature = "gl"))]
macro_rules! rendy_with_gl_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(feature = "gl"))]
macro_rules! rendy_without_gl_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(feature = "gl")]
macro_rules! rendy_without_gl_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(all(
feature = "metal",
any(
all(not(target_arch = "wasm32"), target_os = "macos"),
all(target_arch = "aarch64", target_os = "ios")
)
))]
macro_rules! rendy_with_metal_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(all(
feature = "metal",
any(
all(not(target_arch = "wasm32"), target_os = "macos"),
all(target_arch = "aarch64", target_os = "ios")
)
)))]
macro_rules! rendy_with_metal_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(all(
feature = "metal",
any(
all(not(target_arch = "wasm32"), target_os = "macos"),
all(target_arch = "aarch64", target_os = "ios")
)
)))]
macro_rules! rendy_without_metal_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(all(
feature = "metal",
any(
all(not(target_arch = "wasm32"), target_os = "macos"),
all(target_arch = "aarch64", target_os = "ios")
)
))]
macro_rules! rendy_without_metal_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(all(
feature = "vulkan",
all(
any(
target_os = "windows",
all(unix, not(any(target_os = "macos", target_os = "ios")))
),
not(target_arch = "wasm32")
)
))]
macro_rules! rendy_with_vulkan_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(all(
feature = "vulkan",
all(
any(
target_os = "windows",
all(unix, not(any(target_os = "macos", target_os = "ios")))
),
not(target_arch = "wasm32")
)
)))]
macro_rules! rendy_with_vulkan_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(all(
feature = "vulkan",
all(
any(
target_os = "windows",
all(unix, not(any(target_os = "macos", target_os = "ios")))
),
not(target_arch = "wasm32")
)
)))]
macro_rules! rendy_without_vulkan_backend {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(all(
feature = "vulkan",
all(
any(
target_os = "windows",
all(unix, not(any(target_os = "macos", target_os = "ios")))
),
not(target_arch = "wasm32")
)
))]
macro_rules! rendy_without_vulkan_backend {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(target_arch = "wasm32")]
macro_rules! rendy_wasm32 {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(target_arch = "wasm32"))]
macro_rules! rendy_wasm32 {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(target_arch = "wasm32")]
macro_rules! rendy_not_wasm32 {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(target_arch = "wasm32"))]
macro_rules! rendy_not_wasm32 {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(feature = "no-slow-safety-checks")]
macro_rules! rendy_without_slow_safety_checks {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(not(feature = "no-slow-safety-checks"))]
macro_rules! rendy_without_slow_safety_checks {
($($tt:tt)*) => {};
}
#[macro_export]
#[cfg(not(feature = "no-slow-safety-checks"))]
macro_rules! rendy_with_slow_safety_checks {
($($tt:tt)*) => { $($tt)* };
}
#[macro_export]
#[cfg(feature = "no-slow-safety-checks")]
macro_rules! rendy_with_slow_safety_checks {
($($tt:tt)*) => {};
}