Skip to content

Comments

gapit dump_resources: include shader type in file extension#2554

Merged
paulthomson merged 1 commit intogoogle:masterfrom
paulthomson:dump_shaders_type
Jan 22, 2019
Merged

gapit dump_resources: include shader type in file extension#2554
paulthomson merged 1 commit intogoogle:masterfrom
paulthomson:dump_shaders_type

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