Checks if the program description has at least one entry point of a given type.
| 381 | |
| 382 | /// Checks if the program description has at least one entry point of a given type. |
| 383 | bool hasEntryPoint(ShaderType stage) const |
| 384 | { |
| 385 | for (const auto& group : entryPointGroups) |
| 386 | for (const auto& entryPoint : group.entryPoints) |
| 387 | if (entryPoint.type == stage) |
| 388 | return true; |
| 389 | return false; |
| 390 | } |
| 391 | |
| 392 | /// Set the global type conformances. |
| 393 | ProgramDesc& setTypeConformances(TypeConformanceList conformances) |