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:
parent
5fc501ff07
commit
04b3e8746f
3 changed files with 21 additions and 3 deletions
|
|
@ -259,5 +259,7 @@ void main()
|
|||
uo = u % i;
|
||||
foo23();
|
||||
doubles();
|
||||
|
||||
int id = gl_PrimitiveID;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue