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.