diff options
| author | bunnei <bunneidev@gmail.com> | 2020-01-04 14:05:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-04 14:05:17 -0500 |
| commit | cd0a7dfdbc3ed3ce83a2ad5bb143f46e4f92dfb8 (patch) | |
| tree | e60c9786f929a2b35c7f23ee7a7dbebcc14eb7a7 /src/video_core/shader/shader_ir.cpp | |
| parent | 624a0f7f3f4100fc56e3d70603a30384a21e7dc6 (diff) | |
| parent | 3dd6b55851978440f39487a6ad06b30b792b3b36 (diff) | |
Merge pull request #3258 from FernandoS27/shader-amend
Shader_IR: add the ability to amend code in the shader ir.
Diffstat (limited to 'src/video_core/shader/shader_ir.cpp')
| -rw-r--r-- | src/video_core/shader/shader_ir.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index 1d9825c76..31eecb3f4 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -446,4 +446,10 @@ Node ShaderIR::BitfieldInsert(Node base, Node insert, u32 offset, u32 bits) { Immediate(bits)); } +std::size_t ShaderIR::DeclareAmend(Node new_amend) { + const std::size_t id = amend_code.size(); + amend_code.push_back(new_amend); + return id; +} + } // namespace VideoCommon::Shader |
