Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • Test
  • validate-shaders.sh
Find file
BlameHistoryPermalink
  • LoopDawg's avatar
    Add script to crank test shaders through spirv-val · 4ec680e1
    LoopDawg authored Oct 19, 2017
    This script will crank a supplied set of glslang test shaders through the
    spirv-val tool, reporting on the results.
    
    There are some important things to note:
    
    * Like 'runtests', this must be invoked from the 'Test' subdirectory.
    
    * This is mostly useful on the hlsl.* tests, although it is not strictly
    limited to those.  The reason is that most of the glsl tests either contain
    validation error cases, and so fail to compile, or are not using a #version
    compatible with producing SPIR-V modules.
    
    * Some tests, such as negative tests, or most of the glsl tests, have
    intentional compilation errors.  This script treats that as OK.  Failures
    are successfully compiling shaders which proceed to fail spirv-val.
    
    * spirv-val is looked for in either the External directory, or if not
    found there, in a sibling directory of glslang, and if not found there
    either, in /usr/local/bin.
    
    * There are a bunch of command line options.  ./validate-shaders.sh --help
    will describe them.
    
    Some examples to try:
    
       ./validate-shaders.sh hlsl.*   # exercise all hlsl.* tests.
       ./validate-shaders.sh --terse hlsl.*  # same, but tersely.
    
       # dump validator results for problems in something.frag:
       ./validate-shaders.sh --quiet --dump-val something.frag
    4ec680e1
validate-shaders.sh 8.35 KB
EditWeb IDE
×

Replace validate-shaders.sh

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.