MIME Type for Shader Code

Is there any installed MIME type for the source code of the OpenGL shader program? I know that the official IANA table does not seem to mention one such, so for this it would be necessary to be experimental ( x-… ) or some subtype of the provider ( vnd.… ), possibly of the main type text/… According to What is the correct file extension for GLSL shaders? It seems that for them there is no installed file name extension, but for me this is a completely separate problem.

Background:
Sometimes I want to include shader code in the <script> for some WebGL application, and I want to write the type= attribute of this tag in a way that is semantically as reasonable as possible, although at the moment I can "I think of any the significant difference that such a choice could make (unless I call it text/javascript or something like that is stupid). But, nevertheless, it would be nice to correspond to any tools that could develop over time, based on currently established standard x, which I do not know yet.

+6
source share
1 answer

Khronos' draft glTF project uses text/plain for GLSL files.

+8
source

Source: https://habr.com/ru/post/983539/


All Articles