SPV: PrimitiveId in frag shader will emit Geometry capability

Using PrimitiveId in a fragment shader requires declaring
an OpCapability with either Geometry or Tessellation.
This commit is contained in:
Maciej Jesionowski
2016-09-26 16:49:09 +02:00
parent 5fc501ff07
commit 04b3e8746f
3 changed files with 21 additions and 3 deletions

View File

@@ -259,5 +259,7 @@ void main()
uo = u % i;
foo23();
doubles();
int id = gl_PrimitiveID;
}