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:
parent
e5f29393da
commit
ebb505355d
5 changed files with 27 additions and 11 deletions
|
|
@ -9,7 +9,6 @@ Linked geometry stage:
|
|||
|
||||
Capability Geometry
|
||||
Capability GeometryPointSize
|
||||
Capability ClipDistance
|
||||
Capability GeometryStreams
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ Linked vertex stage:
|
|||
// Id's are bound by 66
|
||||
|
||||
Capability Shader
|
||||
Capability ClipDistance
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 12 23 34 38 41 42 62 65
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ Linked vertex stage:
|
|||
// Id's are bound by 49
|
||||
|
||||
Capability Shader
|
||||
Capability ClipDistance
|
||||
Capability CullDistance
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Vertex 4 "main" 24
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue