occt: master d95f5ce1
Author | Committer | Branch | Timestamp | Parent |
---|---|---|---|---|
apn | master | 2019-02-26 10:56:03 | master 1e756cb9 | |
Changeset | 0029810: Visualization - Tool for debugging shaders A new tool for debugging shaders has been introduced. The new method OpenGl_ShaderProgram::UpdateDebugDump() allows dynamically dumping/restoring certain shader program (vertex and fragment shaders) to/from external file. The file name is generated from the program's name with suffix ".vs" or ".fs" for shader type. The environment variable CSF_ShadersDirectoryDump specifies the folder for dumps. If the file does not exist (first frame), then it is automatically saved. When the file date/time is changed in comparison with recent cached date, then the file will be automatically loaded from external file, thus this file can be modified in any editor. OpenGl_ShaderManager now generates a human-readable resource ids for standard GLSL programs. Draw Harness command vshader has been extended with arguments -list,-dump and -reload for debugging shaders within OpenGl_Context. |
|||
mod - src/Graphic3d/Graphic3d_ShaderProgram.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderManager.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderObject.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderObject.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderProgram.cxx | Diff File | |||
mod - src/OpenGl/OpenGl_ShaderProgram.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_View.hxx | Diff File | |||
mod - src/OpenGl/OpenGl_View_Raytrace.cxx | Diff File | |||
mod - src/Shaders/Declarations.glsl | Diff File | |||
mod - src/Shaders/DeclarationsImpl.glsl | Diff File | |||
mod - src/Shaders/Shaders_DeclarationsImpl_glsl.pxx | Diff File | |||
mod - src/Shaders/Shaders_Declarations_glsl.pxx | Diff File | |||
mod - src/ViewerTest/ViewerTest_OpenGlCommands.cxx | Diff File |