-
Notifications
You must be signed in to change notification settings - Fork 567
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2185 from KhronosGroup/perprimitive-fix
GLSL: Require mesh shader when using perprimitiveEXT in frag shader.
- Loading branch information
Showing
3 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
reference/shaders-no-opt/frag/mesh-shader-perprimitive.spv14.nocompat.vk.frag.vk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#version 450 | ||
#extension GL_EXT_mesh_shader : require | ||
|
||
layout(location = 0) out vec4 FragColor; | ||
layout(location = 0) flat perprimitiveEXT in uvec4 v; | ||
|
||
void main() | ||
{ | ||
FragColor = vec4(v); | ||
} | ||
|
10 changes: 10 additions & 0 deletions
10
shaders-no-opt/frag/mesh-shader-perprimitive.spv14.nocompat.vk.frag
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#version 450 | ||
#extension GL_EXT_mesh_shader : require | ||
|
||
layout(location = 0) perprimitiveEXT flat in uvec4 v; | ||
layout(location = 0) out vec4 FragColor; | ||
|
||
void main() | ||
{ | ||
FragColor = vec4(v); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters