diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-04-30 23:12:30 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2019-05-03 02:46:25 +0200 |
commit | 71aa9d08772eb07ccae7b141e032e6e7e57871a1 (patch) | |
tree | 8cd11960894f23ff14b0129c247f2927dc0e815c /src/video_core/shader/shader_ir.cpp | |
parent | gl_shader_decompiler: Abstract generic attribute operations (diff) | |
download | yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar.gz yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar.bz2 yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar.lz yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar.xz yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.tar.zst yuzu-71aa9d08772eb07ccae7b141e032e6e7e57871a1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/video_core/shader/shader_ir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/video_core/shader/shader_ir.cpp b/src/video_core/shader/shader_ir.cpp index 0307ae5b0..947a372a2 100644 --- a/src/video_core/shader/shader_ir.cpp +++ b/src/video_core/shader/shader_ir.cpp @@ -94,6 +94,11 @@ Node ShaderIR::GetInputAttribute(Attribute::Index index, u64 element, Node buffe return StoreNode(AbufNode(index, static_cast<u32>(element), buffer)); } +Node ShaderIR::GetPhysicalInputAttribute(Tegra::Shader::Register physical_address, Node buffer) { + use_physical_attributes = true; + return StoreNode(AbufNode(GetRegister(physical_address), buffer)); +} + Node ShaderIR::GetOutputAttribute(Attribute::Index index, u64 element, Node buffer) { if (index == Attribute::Index::ClipDistances0123 || index == Attribute::Index::ClipDistances4567) { |