pub struct CompilationInfo {
pub messages: Vec<CompilationMessage>,
}Expand description
Compilation information for a shader module.
Corresponds to WebGPU GPUCompilationInfo.
The source locations use bytes, and index a UTF-8 encoded string.
Fields§
§messages: Vec<CompilationMessage>The messages from the shader compilation process.
Trait Implementations§
Source§impl Clone for CompilationInfo
impl Clone for CompilationInfo
Source§impl Debug for CompilationInfo
impl Debug for CompilationInfo
Source§impl From<CreateShaderModuleError> for CompilationInfo
Available on wgpu_core only.
impl From<CreateShaderModuleError> for CompilationInfo
Available on
wgpu_core only.Source§fn from(value: CreateShaderModuleError) -> Self
fn from(value: CreateShaderModuleError) -> Self
Converts to this type from the input type.
Source§impl From<ShaderError<Error>> for CompilationInfo
Available on crate feature spirv only.
impl From<ShaderError<Error>> for CompilationInfo
Available on crate feature
spirv only.Source§fn from(value: ShaderError<Error>) -> Self
fn from(value: ShaderError<Error>) -> Self
Converts to this type from the input type.
Source§impl From<ShaderError<ParseError>> for CompilationInfo
Available on wgpu_core and crate feature wgsl only.
impl From<ShaderError<ParseError>> for CompilationInfo
Available on
wgpu_core and crate feature wgsl only.Source§fn from(value: ShaderError<ParseError>) -> Self
fn from(value: ShaderError<ParseError>) -> Self
Converts to this type from the input type.
Source§impl From<ShaderError<ParseErrors>> for CompilationInfo
Available on crate feature glsl only.
impl From<ShaderError<ParseErrors>> for CompilationInfo
Available on crate feature
glsl only.Source§fn from(value: ShaderError<ParseErrors>) -> Self
fn from(value: ShaderError<ParseErrors>) -> Self
Converts to this type from the input type.
Source§impl From<ShaderError<WithSpan<ValidationError>>> for CompilationInfo
Available on naga or wgpu_core only.
impl From<ShaderError<WithSpan<ValidationError>>> for CompilationInfo
Available on
naga or wgpu_core only.Source§fn from(value: ShaderError<WithSpan<ValidationError>>) -> Self
fn from(value: ShaderError<WithSpan<ValidationError>>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CompilationInfo
impl RefUnwindSafe for CompilationInfo
impl Send for CompilationInfo
impl Sync for CompilationInfo
impl Unpin for CompilationInfo
impl UnsafeUnpin for CompilationInfo
impl UnwindSafe for CompilationInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CommonTraits for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more