Skip to content
  • Alejandro Piñeiro's avatar
    util: Add utilities to handle shader_test files · 606e40b2
    Alejandro Piñeiro authored
    
    
    This method would allow to use source files in the common shader_test
    format by tests that are not the shader_runner.
    
    This is useful if we want to implement a custom test based on the info
    at shader_test, but without adding that custom support to
    shader_runner. And it is specially useful for custom tests that we
    want to test on GLSL and SPIR-V.
    
    It is worth to note that although the method loads "shader_test"
    files, for those custom tests make more sense to call them
    "shader_source" files, as for those, the file would work as just the
    source.
    
    v2: fix memory leak (Antia Puentes)
    
    Acked-by: default avatarTimothy Arceri <tarceri@itsqueeze.com>
    606e40b2