SPV: Don't add clip/cull distance capabilities unless used.

These capabalities were added on declaration of the members, but
that is considered too aggressive, as those members are automatically
declared in some shaders that don't use them.  Now, actual access
is needed to make the capabalities be declared.
This commit is contained in:
John Kessenich
2016-05-16 19:22:05 -06:00
parent e5f29393da
commit ebb505355d
5 changed files with 27 additions and 11 deletions

View File

@@ -10,7 +10,6 @@ Linked vertex stage:
// Id's are bound by 103
Capability Shader
Capability ClipDistance
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Vertex 4 "main" 76 81