Struct wgpu::CompilationMessage
source · pub struct CompilationMessage {
pub message: String,
pub message_type: CompilationMessageType,
pub location: Option<SourceLocation>,
}
Expand description
A single message from the shader compilation process.
Roughly corresponds to GPUCompilationMessage
,
except that the location uses UTF-8 for all positions.
Fields§
§message: String
The text of the message.
message_type: CompilationMessageType
The type of the message.
location: Option<SourceLocation>
Where in the source code the message points at.
Trait Implementations§
source§impl Clone for CompilationMessage
impl Clone for CompilationMessage
source§fn clone(&self) -> CompilationMessage
fn clone(&self) -> CompilationMessage
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 moreAuto Trait Implementations§
impl RefUnwindSafe for CompilationMessage
impl Send for CompilationMessage
impl Sync for CompilationMessage
impl Unpin for CompilationMessage
impl UnwindSafe for CompilationMessage
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