summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/modifiers.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/frontend/ir/modifiers.h')
-rw-r--r--src/shader_recompiler/frontend/ir/modifiers.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/shader_recompiler/frontend/ir/modifiers.h b/src/shader_recompiler/frontend/ir/modifiers.h
index 5d7efa14c..77cda1f8a 100644
--- a/src/shader_recompiler/frontend/ir/modifiers.h
+++ b/src/shader_recompiler/frontend/ir/modifiers.h
@@ -34,14 +34,15 @@ static_assert(sizeof(FpControl) <= sizeof(u32));
34 34
35union TextureInstInfo { 35union TextureInstInfo {
36 u32 raw; 36 u32 raw;
37 BitField<0, 8, TextureType> type; 37 BitField<0, 16, u32> descriptor_index;
38 BitField<8, 1, u32> is_depth; 38 BitField<16, 3, TextureType> type;
39 BitField<9, 1, u32> has_bias; 39 BitField<19, 1, u32> is_depth;
40 BitField<10, 1, u32> has_lod_clamp; 40 BitField<20, 1, u32> has_bias;
41 BitField<11, 1, u32> relaxed_precision; 41 BitField<21, 1, u32> has_lod_clamp;
42 BitField<12, 2, u32> gather_component; 42 BitField<22, 1, u32> relaxed_precision;
43 BitField<14, 2, u32> num_derivates; 43 BitField<23, 2, u32> gather_component;
44 BitField<16, 3, ImageFormat> image_format; 44 BitField<25, 2, u32> num_derivates;
45 BitField<27, 3, ImageFormat> image_format;
45}; 46};
46static_assert(sizeof(TextureInstInfo) <= sizeof(u32)); 47static_assert(sizeof(TextureInstInfo) <= sizeof(u32));
47 48