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

gapit dump_resources: include shader type in file extension #2554

Merged
merged 1 commit into from
Jan 22, 2019

Conversation

paulthomson
Copy link
Contributor

@paulthomson paulthomson commented Jan 21, 2019

It can be useful to know the type of dumped shaders. This simple change adds the type as an extension. E.g. "Shader<2><125>.Fragment".

Copy link
Contributor

@AWoloszyn AWoloszyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing that may be a bit weird is
.SpirvBinary
.Spirv

As these may not be as obvious to users as we would like. I wonder if we just want to add an "Extension" field to the proto, then we can use the glslang types

.vert, .frag, .tessc, .tesse, .geom, .comp
And then
.spv (binary) .spvasm (text)

@paulthomson
Copy link
Contributor Author

OK I have done this (although I did not modify protos)

Copy link
Contributor

@AWoloszyn AWoloszyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome thanks!

@paulthomson paulthomson merged commit 176561a into google:master Jan 22, 2019
@paulthomson paulthomson deleted the dump_shaders_type branch January 22, 2019 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants