• yuweih's avatar
    Script to inline shader into C header file · 26219410
    yuweih authored
    OpenGL compiles shader code as text at runtime. It is inconvienent to
    edit shader code as const char[] inside the C++ source code.
    
    This CL contains script that reads file contents, turns them into const
    char[], and combine them into a header file.
    
    BUG=385924
    
    Review-Url: https://codereview.chromium.org/2036023003
    Cr-Commit-Position: refs/heads/master@{#398142}
    26219410
shader_to_header.py 2.41 KB