SPV: Add modes for spacing, depth, depth replacing, winding, and point mode.

This commit is contained in:
John Kessenich
2015-10-13 16:29:02 -06:00
parent f685df8c16
commit e690332c3c
7 changed files with 55 additions and 13 deletions

View File

@@ -16,6 +16,9 @@ Linked tessellation evaluation stage:
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 4 "main"
ExecutionMode 4 InputTriangles
ExecutionMode 4 SpacingFractionalOdd
ExecutionMode 4 VertexOrderCcw
ExecutionMode 4 PointMode
Name 4 "main"
Name 8 "a"
Name 13 "p"

View File

@@ -1,6 +1,5 @@
spv.depthOut.frag
WARNING: 0:3: varying deprecated in version 130; may be removed in future release
WARNING: 0:4: varying deprecated in version 130; may be removed in future release
Warning, version 450 is not yet complete; most version-specific features are present, but some are missing.
Linked fragment stage:
@@ -10,12 +9,14 @@ Linked fragment stage:
// Generated by (magic number): 51a00bb
// Id's are bound by 18
Source GLSL 130
Source GLSL 450
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
ExecutionMode 4 OriginLowerLeft
ExecutionMode 4 DepthAny
ExecutionMode 4 DepthReplacing
Name 4 "main"
Name 8 "gl_FragDepth"
Name 10 "Depth"

View File

@@ -1,7 +1,9 @@
#version 130
#version 450
varying vec4 Color;
varying float Depth;
in vec4 Color;
in float Depth;
layout(depth_any) out float gl_FragDepth;
void main()
{