| 4760 | } |
| 4761 | |
| 4762 | void GenerateEntryPoint(int mainFunctionID) |
| 4763 | { |
| 4764 | ctx.AddInstrEntryPoint(currentExecutionModel, mainFunctionID, interfaceIDs); |
| 4765 | if (currentExecutionModel == ExecutionModel::Fragment) |
| 4766 | { |
| 4767 | ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::OriginUpperLeft); |
| 4768 | } |
| 4769 | if (DepthReplacing) |
| 4770 | { |
| 4771 | ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::DepthReplacing); |
| 4772 | } |
| 4773 | if (LocalSize) |
| 4774 | { |
| 4775 | ctx.AddInstrExecutionMode(mainFunctionID, ExecutionMode::LocalSize, 256, 1, 1); |
| 4776 | } |
| 4777 | } |
| 4778 | |
| 4779 | int GenerateGlGlobalInvocationID() |
| 4780 | //return the ID of the gl_GlobalInvocationID variable |
no test coverage detected