glsl: Wip storage atomic ops
This commit is contained in:
parent
df793fc049
commit
3d9ecbe998
10 changed files with 414 additions and 327 deletions
|
@ -31,13 +31,6 @@ class EmitContext {
|
|||
public:
|
||||
explicit EmitContext(IR::Program& program, Bindings& bindings, const Profile& profile_);
|
||||
|
||||
// template <typename... Args>
|
||||
// void Add(const char* format_str, IR::Inst& inst, Args&&... args) {
|
||||
// code += fmt::format(format_str, reg_alloc.Define(inst), std::forward<Args>(args)...);
|
||||
// // TODO: Remove this
|
||||
// code += '\n';
|
||||
// }
|
||||
|
||||
template <Type type, typename... Args>
|
||||
void Add(const char* format_str, IR::Inst& inst, Args&&... args) {
|
||||
code += fmt::format(format_str, reg_alloc.Define(inst, type), std::forward<Args>(args)...);
|
||||
|
@ -106,6 +99,7 @@ private:
|
|||
void SetupExtensions(std::string& header);
|
||||
void DefineConstantBuffers();
|
||||
void DefineStorageBuffers();
|
||||
void DefineHelperFunctions();
|
||||
};
|
||||
|
||||
} // namespace Shader::Backend::GLSL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue