Function libcacaoasset::DecodeShader
Defined in File libcacaoasset.hpp
Function Documentation
-
Shader libcacaoasset::DecodeShader(std::istream *stream)
Decode a shader object from the stream data.
- Parameters:
stream – The stream to read data from (warning: this pointer becomes owned exclusively by this function and will be freed when it returns)
- Throws:
std::runtime_error – If the stream pointer is invalid
std::runtime_error – If the stream is not a valid shader
std::runtime_error – If decoding fails
- Returns:
The resulting shader object