glsl: Implement derivatives and YDirection

plus some other misc additions/changed
This commit is contained in:
ameerj 2021-05-27 20:31:03 -04:00
parent ed14d31f66
commit a752ec88d0
8 changed files with 87 additions and 81 deletions

View file

@ -22,9 +22,10 @@ std::string_view InterpDecorator(Interpolation interp) {
}
} // namespace
EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_)
: info{program.info}, profile{profile_} {
std::string header = "#version 450\n";
EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_,
const RuntimeInfo& runtime_info_)
: info{program.info}, profile{profile_}, runtime_info{runtime_info_} {
std::string header = "";
SetupExtensions(header);
stage = program.stage;
switch (program.stage) {