Struct shaderc::CompilationArtifact
source · pub struct CompilationArtifact { /* private fields */ }
Expand description
An opaque object containing the results of compilation.
Implementations§
source§impl CompilationArtifact
impl CompilationArtifact
sourcepub fn as_binary(&self) -> &[u32]
pub fn as_binary(&self) -> &[u32]
Returns the compilation output data as a binary slice.
Panics
This method will panic if the compilation does not generate a binary output.
sourcepub fn as_binary_u8(&self) -> &[u8] ⓘ
pub fn as_binary_u8(&self) -> &[u8] ⓘ
sourcepub fn as_text(&self) -> String
pub fn as_text(&self) -> String
Returns the compilation output data as a text string.
Panics
This method will panic if the compilation does not generate a text output.
sourcepub fn get_num_warnings(&self) -> u32
pub fn get_num_warnings(&self) -> u32
Returns the number of warnings generated during the compilation.
sourcepub fn get_warning_messages(&self) -> String
pub fn get_warning_messages(&self) -> String
Returns the detailed warnings as a string.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CompilationArtifact
impl !Send for CompilationArtifact
impl !Sync for CompilationArtifact
impl Unpin for CompilationArtifact
impl UnwindSafe for CompilationArtifact
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