[][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

impl !Send for CompilationArtifact

impl Unpin for CompilationArtifact

impl !Sync for CompilationArtifact

impl UnwindSafe for CompilationArtifact

impl RefUnwindSafe for CompilationArtifact

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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