Struct wgpu::CompilationInfo
source · 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§fn clone(&self) -> CompilationInfo
fn clone(&self) -> CompilationInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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 crate feature wgsl
and wgpu_core
only.
impl From<ShaderError<ParseError>> for CompilationInfo
Available on crate feature
wgsl
and wgpu_core
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 wgpu_core
or naga
only.
impl From<ShaderError<WithSpan<ValidationError>>> for CompilationInfo
Available on
wgpu_core
or naga
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)