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/engines | |
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 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 766bb4f79..e4a9471b8 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -98,6 +98,10 @@ union Attribute { BitField<22, 2, u64> element; BitField<24, 6, Index> index; BitField<47, 3, AttributeSize> size; + + bool IsPhysical() const { + return element == 0 && static_cast<u64>(index.Value()) == 0; + } } fmt20; union { |