18 context.
fErrors->
error(
pos,
"discard statement is only permitted in fragment shaders");
26 return std::make_unique<DiscardStatement>(
pos);
static std::unique_ptr< Statement > Make(const Context &context, Position pos)
static std::unique_ptr< Statement > Convert(const Context &context, Position pos)
void error(Position position, std::string_view msg)
static bool IsFragment(ProgramKind kind)