Function libcacaoasset::EncodeShader

Function Documentation

void libcacaoasset::EncodeShader(const Shader &shader, std::ostream *stream)

Export a shader object to a stream.

Parameters:
  • shader – The Shader to export

  • stream – The stream to write to

Throws:
  • std::runtime_error – If the stream pointer is invalid

  • std::runtime_error – If encoding fails