[−][src]Enum spirv_tools::TargetEnv
Certain target environments impose additional restrictions on SPIR-V, so it's
often necessary to specify which one applies. Universal_*
implies an
environment-agnostic SPIR-V.
When an API method needs to derive a SPIR-V version from a target environment the method will choose the highest version of SPIR-V supported by the target environment. Examples: SPV_ENV_VULKAN_1_0 -> SPIR-V 1.0 SPV_ENV_VULKAN_1_1 -> SPIR-V 1.3 SPV_ENV_VULKAN_1_1_SPIRV_1_4 -> SPIR-V 1.4 SPV_ENV_VULKAN_1_2 -> SPIR-V 1.5
Consult the description of API entry points for specific rules.
Variants
SPIR-V 1.0 latest revision, no other restrictions.
Vulkan 1.0 latest revision.
SPIR-V 1.1 latest revision, no other restrictions.
OpenCL Full Profile 2.1 latest revision.
OpenCL Full Profile 2.2 latest revision.
OpenGL 4.0 plus GL_ARB_gl_spirv, latest revisions.
OpenGL 4.1 plus GL_ARB_gl_spirv, latest revisions.
OpenGL 4.2 plus GL_ARB_gl_spirv, latest revisions.
OpenGL 4.3 plus GL_ARB_gl_spirv, latest revisions.
OpenGL 4.5 plus GL_ARB_gl_spirv, latest revisions.
SPIR-V 1.2, latest revision, no other restrictions.
OpenCL Full Profile 1.2 plus cl_khr_il_program, latest revision.
OpenCL Embedded Profile 1.2 plus cl_khr_il_program, latest revision.
OpenCL Full Profile 2.0 plus cl_khr_il_program, latest revision.
OpenCL Embedded Profile 2.0 plus cl_khr_il_program, latest revision.
OpenCL Embedded Profile 2.1 latest revision.
OpenCL Embedded Profile 2.2 latest revision.
SPIR-V 1.3 latest revision, no other restrictions.
Vulkan 1.1 latest revision.
Work in progress WebGPU 1.0.
SPIR-V 1.4 latest revision, no other restrictions.
Vulkan 1.1 with VK_KHR_spirv_1_4, i.e. SPIR-V 1.4 binary.
SPIR-V 1.5 latest revision, no other restrictions.
Vulkan 1.2 latest revision.
Trait Implementations
impl Clone for TargetEnv
[src]
impl Copy for TargetEnv
[src]
impl Debug for TargetEnv
[src]
impl Default for TargetEnv
[src]
impl Display for TargetEnv
[src]
impl FromStr for TargetEnv
[src]
type Err = SpirvResult
The associated error which can be returned from parsing.
pub fn from_str(s: &str) -> Result<TargetEnv, <TargetEnv as FromStr>::Err>
[src]
impl PartialEq<TargetEnv> for TargetEnv
[src]
pub fn eq(&self, other: &TargetEnv) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for TargetEnv
[src]
Auto Trait Implementations
impl RefUnwindSafe for TargetEnv
[src]
impl Send for TargetEnv
[src]
impl Sync for TargetEnv
[src]
impl Unpin for TargetEnv
[src]
impl UnwindSafe for TargetEnv
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,