Skip to content

Commit

Permalink
gapit dump_resources: include shader type in file extension
Browse files Browse the repository at this point in the history
  • Loading branch information
paulthomson committed Jan 21, 2019
1 parent a59acde commit 5a102f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/gapit/dump_shaders.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ func (verb *dumpShadersVerb) Run(ctx context.Context, flags flag.FlagSet) error
}

shaderSource := resourceData.(*api.ResourceData).GetShader().GetSource()
filename := file.SanitizePath(v.GetHandle())
shaderType := resourceData.(*api.ResourceData).GetShader().GetType()
filename := file.SanitizePath(v.GetHandle() + "." + shaderType.String())
f, err := os.Create(filename)
if err != nil {
log.E(ctx, "Could open file to write %s %v", v.GetHandle(), err)
Expand Down

0 comments on commit 5a102f3

Please sign in to comment.