summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines/shader_bytecode.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-06-06 04:45:22 +0200
committerbunnei <bunneidev@gmail.com>2018-06-06 23:57:15 +0200
commit6e386a334b0e61305c7473f2a4676292d0e289bc (patch)
tree72db857a5347c5353030f582b6a502b6719e3266 /src/video_core/engines/shader_bytecode.h
parentnvdrv/devices/nvidia_ctrl_gpu : add IoctlCommands with their params (#524) (diff)
downloadyuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar.gz
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar.bz2
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar.lz
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar.xz
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.tar.zst
yuzu-6e386a334b0e61305c7473f2a4676292d0e289bc.zip
Diffstat (limited to 'src/video_core/engines/shader_bytecode.h')
-rw-r--r--src/video_core/engines/shader_bytecode.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 4eb507325..7a74771ce 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -109,11 +109,6 @@ union Sampler {
u64 value{};
};
-union Uniform {
- BitField<20, 14, u64> offset;
- BitField<34, 5, u64> index;
-};
-
} // namespace Shader
} // namespace Tegra
@@ -354,12 +349,21 @@ union Instruction {
}
} bra;
+ union {
+ BitField<20, 14, u64> offset;
+ BitField<34, 5, u64> index;
+ } cbuf34;
+
+ union {
+ BitField<20, 16, s64> offset;
+ BitField<36, 5, u64> index;
+ } cbuf36;
+
BitField<61, 1, u64> is_b_imm;
BitField<60, 1, u64> is_b_gpr;
BitField<59, 1, u64> is_c_gpr;
Attribute attribute;
- Uniform uniform;
Sampler sampler;
u64 value;