| 4777 | } |
| 4778 | |
| 4779 | int GenerateGlGlobalInvocationID() |
| 4780 | //return the ID of the gl_GlobalInvocationID variable |
| 4781 | { |
| 4782 | int GlobalInvocationID = ctx.AddInstrVariableDeclaration(0, GetTypeFromString("uvec3"), StorageClass::Input, "gl_GlobalInvocationID", 0); |
| 4783 | ctx.AddInstrDecorate(GlobalInvocationID, Decoration::BuiltIn, (int)BuiltIn::GlobalInvocationId); |
| 4784 | ctx.InterfaceNameToID["gl_GlobalInvocationID"] = GlobalInvocationID; |
| 4785 | return GlobalInvocationID; |
| 4786 | } |
| 4787 | |
| 4788 | int GenerateInterfaceForSingleVariable( |
| 4789 | String varName, |
no test coverage detected