Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source not included with emitNonSemanticShaderDebugSource #3859

Open
spencer-lunarg opened this issue Feb 3, 2025 · 0 comments
Open

Source not included with emitNonSemanticShaderDebugSource #3859

spencer-lunarg opened this issue Feb 3, 2025 · 0 comments

Comments

@spencer-lunarg
Copy link
Contributor

If I have a simple shader like

#version 450
#extension GL_EXT_shader_8bit_storage: enable
#extension GL_EXT_shader_explicit_arithmetic_types_int8: enable
layout(push_constant) uniform PushConstant {
    int8_t x[4];
} data;

void main(){
    gl_Position = vec4(float(data.x[0]) * 0.0);
}

and run glslang -gVS I will see the OpString with all the source, but going

glslang::SpvOptions spv_options;
spv_options.emitNonSemanticShaderDebugSource = true;
glslang::GlslangToSpv(*program.getIntermediate(stage), spirv, &spv_options);

I only get

         %19 = OpString "// OpModuleProcessed client vulkan100
// OpModuleProcessed target-env vulkan1.0
// OpModuleProcessed entry-point main
#line 1
"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant