glslang icon indicating copy to clipboard operation
glslang copied to clipboard

Add descriptions to GlslangToSpv.h

Open spencer-lunarg opened this issue 4 months ago • 0 comments

Inside https://github.com/KhronosGroup/glslang/blob/main/SPIRV/GlslangToSpv.h there is

struct SpvOptions {
    bool generateDebugInfo {false};
    bool stripDebugInfo {false};
    bool disableOptimizer {true};
    bool optimizeSize {false};
    bool disassemble {false};
    bool validate {false};
    bool emitNonSemanticShaderDebugInfo {false};
    bool emitNonSemanticShaderDebugSource{ false };
    bool compileOnly{false};
    bool optimizerAllowExpandedIDBound{false};
};

and no good way without reading the code or experimenting to know what these do.

Some simple comments on these to explain either what they do, or even the equivalent command line argument they emulate

spencer-lunarg avatar Oct 09 '24 21:10 spencer-lunarg