diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir/modifiers.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/modifiers.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/shader_recompiler/frontend/ir/modifiers.h b/src/shader_recompiler/frontend/ir/modifiers.h index 44652eae7..ad07700ae 100644 --- a/src/shader_recompiler/frontend/ir/modifiers.h +++ b/src/shader_recompiler/frontend/ir/modifiers.h | |||
| @@ -4,7 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include "common/bit_field.h" | ||
| 7 | #include "common/common_types.h" | 8 | #include "common/common_types.h" |
| 9 | #include "shader_recompiler/shader_info.h" | ||
| 8 | 10 | ||
| 9 | namespace Shader::IR { | 11 | namespace Shader::IR { |
| 10 | 12 | ||
| @@ -30,4 +32,12 @@ struct FpControl { | |||
| 30 | }; | 32 | }; |
| 31 | static_assert(sizeof(FpControl) <= sizeof(u32)); | 33 | static_assert(sizeof(FpControl) <= sizeof(u32)); |
| 32 | 34 | ||
| 35 | union TextureInstInfo { | ||
| 36 | u32 raw; | ||
| 37 | BitField<0, 8, TextureType> type; | ||
| 38 | BitField<8, 1, u32> has_bias; | ||
| 39 | BitField<16, 1, u32> has_lod_clamp; | ||
| 40 | }; | ||
| 41 | static_assert(sizeof(TextureInstInfo) <= sizeof(u32)); | ||
| 42 | |||
| 33 | } // namespace Shader::IR | 43 | } // namespace Shader::IR |