ShaderDump.h 680 B

123456789101112131415161718192021222324252627
  1. // Copyright (C) 2009-present, Panagiotis Christopoulos Charitos and contributors.
  2. // All rights reserved.
  3. // Code licensed under the BSD License.
  4. // http://www.anki3d.org/LICENSE
  5. #include <AnKi/ShaderCompiler/ShaderBinary.h>
  6. #include <AnKi/Util/String.h>
  7. namespace anki {
  8. /// @addtogroup shader_compiler
  9. /// @{
  10. class ShaderDumpOptions
  11. {
  12. public:
  13. Bool m_writeGlsl = true;
  14. Bool m_writeSpirv = false;
  15. Bool m_maliStats = false;
  16. Bool m_amdStats = false;
  17. };
  18. /// Create a human readable representation of the shader binary.
  19. void dumpShaderBinary(const ShaderDumpOptions& options, const ShaderBinary& binary, ShaderCompilerString& humanReadable);
  20. /// @}
  21. } // end namespace anki