glsl: Implement some attribute getters and setters

This commit is contained in:
ameerj 2021-05-26 00:16:20 -04:00
parent 5399906c26
commit 3d086e6130
10 changed files with 337 additions and 192 deletions

View file

@ -88,6 +88,11 @@ public:
Add<Type::F32x2>(format_str, inst, args...);
}
template <typename... Args>
void AddF32x4(const char* format_str, IR::Inst& inst, Args&&... args) {
Add<Type::F32x4>(format_str, inst, args...);
}
template <typename... Args>
void Add(const char* format_str, Args&&... args) {
code += fmt::format(format_str, std::forward<Args>(args)...);
@ -100,6 +105,10 @@ public:
const Info& info;
const Profile& profile;
Stage stage{};
std::string_view stage_name = "invalid";
std::string_view attrib_name = "invalid";
private:
void SetupExtensions(std::string& header);
void DefineConstantBuffers();