Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
added extensions .gs, .comp and .glslf.
See: https://stackoverflow.com/q/6432838
add disambiguation rule for .gs files:
if it starts with
#version <number>
, it's GLSL.This seems to work for most GLSL files with few exceptions
that are catched by the classifier.
added sample extrude_normal.gs from kyle-piddington/ShaderTool
(licensed under MIT):
https://github.com/kyle-piddington/ShaderTool/blob/c753a53bde6eab942da617adab9483c945f27f51/assets/shaders/extrude_normals.gs
added sample blend_120.glslf from gfx-rs/gfx (licensed under
Apache 2.0):
https://github.com/gfx-rs/gfx/blob/7b084cfbb95e3e4d1ea51e91746fc75b2efb3be3/examples/blend/shader/blend_120.glslf
test_heuristics.rb now supports alt_name to ake a different file name
for a fixture.
Checklist:
.comp
. See improve GLSL classification #4402 (comment)