[][src]Struct shaderc::CompilationArtifact

pub struct CompilationArtifact { /* fields omitted */ }

An opaque object containing the results of compilation.

Methods

impl CompilationArtifact[src]

pub fn len(&self) -> usize[src]

Returns the number of bytes of the compilation output data.

pub fn as_binary(&self) -> &[u32][src]

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]

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]

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]

Returns the number of warnings generated during the compilation.

pub fn get_warning_messages(&self) -> String[src]

Returns the detailed warnings as a string.

Trait Implementations

impl Drop for CompilationArtifact[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]