Struct shaderc::CompilationArtifact [−][src]
pub struct CompilationArtifact { /* fields omitted */ }
An opaque object containing the results of compilation.
Methods
impl CompilationArtifact
[src]
impl CompilationArtifact
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Returns the number of bytes of the compilation output data.
pub fn as_binary(&self) -> &[u32]
[src]
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.
pub fn as_binary_u8(&self) -> &[u8]
[src]
pub fn as_binary_u8(&self) -> &[u8]
Returns the compilation output data as a binary slice. This method return a &u8 that implement the Read trait.
Panics
This method will panic if the compilation does not generate a binary output.
pub fn as_text(&self) -> String
[src]
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.
pub fn get_num_warnings(&self) -> u32
[src]
pub fn get_num_warnings(&self) -> u32
Returns the number of warnings generated during the compilation.
pub fn get_warning_messages(&self) -> String
[src]
pub fn get_warning_messages(&self) -> String
Returns the detailed warnings as a string.
Trait Implementations
impl Drop for CompilationArtifact
[src]
impl Drop for CompilationArtifact
Auto Trait Implementations
impl !Send for CompilationArtifact
impl !Send for CompilationArtifact
impl !Sync for CompilationArtifact
impl !Sync for CompilationArtifact