diff options
author | Subv <subv2112@gmail.com> | 2018-09-08 23:13:02 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-09-15 18:21:21 +0200 |
commit | c878a819d79da42bfdaefb8a1dea8a452c808df6 (patch) | |
tree | 33840b83f4cdd853e05907221e7be605e7ed6a31 /src/video_core/engines | |
parent | Merge pull request #1310 from lioncash/kernel-ns (diff) | |
download | yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar.gz yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar.bz2 yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar.lz yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar.xz yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.tar.zst yuzu-c878a819d79da42bfdaefb8a1dea8a452c808df6.zip |
Diffstat (limited to 'src/video_core/engines')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 58f2904ce..d6e2397f2 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -67,6 +67,13 @@ private: u64 value{}; }; +enum class AttributeSize : u64 { + Word = 0, + DoubleWord = 1, + TripleWord = 2, + QuadWord = 3, +}; + union Attribute { Attribute() = default; @@ -87,9 +94,10 @@ union Attribute { }; union { + BitField<20, 10, u64> immediate; BitField<22, 2, u64> element; BitField<24, 6, Index> index; - BitField<47, 3, u64> size; + BitField<47, 3, AttributeSize> size; } fmt20; union { |