Skip to content

Add descriptions to GlslangToSpv.h #3759

@spencer-lunarg

Description

@spencer-lunarg

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions