mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
glsl/cs: update main.cpp to use the ".comp" extension for compute shaders.
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
d861c2963a
commit
c15064c169
1 changed files with 2 additions and 0 deletions
|
|
@ -364,6 +364,8 @@ main(int argc, char **argv)
|
|||
shader->Type = GL_GEOMETRY_SHADER;
|
||||
else if (strncmp(".frag", ext, 5) == 0)
|
||||
shader->Type = GL_FRAGMENT_SHADER;
|
||||
else if (strncmp(".comp", ext, 5) == 0)
|
||||
shader->Type = GL_COMPUTE_SHADER;
|
||||
else
|
||||
usage_fail(argv[0]);
|
||||
shader->Stage = _mesa_shader_enum_to_shader_stage(shader->Type);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue