template <typename OutputElementType>

class CompilationResult

Defined at line 38 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

A CompilationResult contains the compiler output, compilation status,

and messages.

The compiler output is stored as an array of elements and accessed

via random access iterators provided by cbegin() and cend(). The iterators

are contiguous in the sense of "Contiguous Iterators: A Refinement of

Random Access Iterators", Nevin Liber, C++ Library Evolution Working

Group Working Paper N3884.

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3884.pdf

Methods begin() and end() are also provided to enable range-based for.

They are synonyms to cbegin() and cend(), respectively.

Public Methods

void CompilationResult<OutputElementType> (shaderc_compilation_result_t compilation_result)

Upon creation, the CompilationResult takes ownership of the

shaderc_compilation_result instance. During destruction of the

CompilationResult, the shaderc_compilation_result will be released.

Defined at line 48 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

void CompilationResult<OutputElementType> ()

Defined at line 50 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

void ~CompilationResult<OutputElementType> ()

Defined at line 51 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

void CompilationResult<OutputElementType> (CompilationResult<OutputElementType> && other)

Defined at line 53 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

CompilationResult<OutputElementType> & operator= (CompilationResult<OutputElementType> && other)

Defined at line 57 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

std::string GetErrorMessage ()

Returns any error message found during compilation.

Defined at line 67 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

shaderc_compilation_status GetCompilationStatus ()

Returns the compilation status, indicating whether the compilation

succeeded, or failed due to some reasons, like invalid shader stage or

compilation errors.

Defined at line 77 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

const_iterator cbegin ()

Returns a random access (contiguous) iterator pointing to the start

of the compilation output. It is valid for the lifetime of this object.

If there is no compilation result, then returns nullptr.

Defined at line 87 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

const_iterator cend ()

Returns a random access (contiguous) iterator pointing to the end of

the compilation output. It is valid for the lifetime of this object.

If there is no compilation result, then returns nullptr.

Defined at line 96 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

const_iterator begin ()

Returns the same iterator as cbegin().

Defined at line 104 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

const_iterator end ()

Returns the same iterator as cend().

Defined at line 106 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

size_t GetNumWarnings ()

Returns the number of warnings generated during the compilation.

Defined at line 109 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp

size_t GetNumErrors ()

Returns the number of errors generated during the compilation.

Defined at line 117 of file ../../third_party/shaderc/src/libshaderc/include/shaderc/shaderc.hpp