Skip to content

Commit

Permalink
Added GLSL/HLSL extensions
Browse files Browse the repository at this point in the history
Added the officially recognized file extensions for GLSL (OpenGL) and HLSL (DirectX) shader languages.

GLSL: comp, frag, geom, glsl, tesc, tese, vert
https://www.khronos.org/opengles/sdk/tools/Reference-Compiler/

HLSL: cso, hlsl
https://docs.microsoft.com/en-us/windows/desktop/direct3dhlsl/dx-graphics-hlsl-part1#using-shader-code-file-extensions
  • Loading branch information
TheRealBanana authored Nov 1, 2018
1 parent 39f1c75 commit 8ce6432
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,21 +168,21 @@ const insertLocForDir = () => {
*/
const acceptableExtensions = ['as', 'asm', 'asp', 'aspx',
'bash', 'bat',
'c', 'cbl', 'cc', 'cfc', 'clj', 'cs', 'css', 'cpp',
'c', 'cbl', 'cc', 'cfc', 'clj', 'cs', 'css', 'cpp', 'comp', 'cso',
'dart', 'd', 'do', 'dpr',
'el', 'ejs',
'f90',
'gitignore',
'h', 'hs', 'hpp', 'html', 'haml',
'f90', 'frag',
'gitignore', 'geom', 'glsl',
'h', 'hs', 'hpp', 'html', 'haml', 'hlsl',
'java', 'js', 'json', 'jsp', 'jade', 'jsx',
'lisp', 'lua', 'less',
'm', 'md', 'mk', 'mm',
'pas', 'php', 'pl', 'prl', 'pxd', 'py', 'pyx',
'r', 'rb',
's', 'ss', 'scala', 'ser', 'sh', 'sql', 'swift', 'svg', 'sass', 'scss',
'ts',
'tmpl', 'tpl', 'tsx',
'vb',
'tmpl', 'tpl', 'tsx', 'tese', 'tesc',
'vb', 'vert',
'win',
'xml',
'yaml', 'yml'];
Expand Down

0 comments on commit 8ce6432

Please sign in to comment.