diff options
| author | 2019-11-12 13:43:08 -0400 | |
|---|---|---|
| committer | 2019-11-14 11:15:27 -0400 | |
| commit | cd0f5dfc17209eab146879faad51186b130c4951 (patch) | |
| tree | 0185de18a433f22edb69260d3f54779419e2b807 /src/video_core/engines | |
| parent | Shader_IR: Implement FLO instruction. (diff) | |
| download | yuzu-cd0f5dfc17209eab146879faad51186b130c4951.tar.gz yuzu-cd0f5dfc17209eab146879faad51186b130c4951.tar.xz yuzu-cd0f5dfc17209eab146879faad51186b130c4951.zip | |
Shader_IR: Implement TXD instruction.
Diffstat (limited to 'src/video_core/engines')
| -rw-r--r-- | src/video_core/engines/shader_bytecode.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 16f410538..9c7b9b370 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h | |||
| @@ -1446,6 +1446,26 @@ union Instruction { | |||
| 1446 | } tlds; | 1446 | } tlds; |
| 1447 | 1447 | ||
| 1448 | union { | 1448 | union { |
| 1449 | BitField<28, 1, u64> is_array; | ||
| 1450 | BitField<29, 2, TextureType> texture_type; | ||
| 1451 | BitField<35, 1, u64> aoffi_flag; | ||
| 1452 | BitField<49, 1, u64> nodep_flag; | ||
| 1453 | |||
| 1454 | bool UsesMiscMode(TextureMiscMode mode) const { | ||
| 1455 | switch (mode) { | ||
| 1456 | case TextureMiscMode::AOFFI: | ||
| 1457 | return aoffi_flag != 0; | ||
| 1458 | case TextureMiscMode::NODEP: | ||
| 1459 | return nodep_flag != 0; | ||
| 1460 | default: | ||
| 1461 | break; | ||
| 1462 | } | ||
| 1463 | return false; | ||
| 1464 | } | ||
| 1465 | |||
| 1466 | } txd; | ||
| 1467 | |||
| 1468 | union { | ||
| 1449 | BitField<24, 2, StoreCacheManagement> cache_management; | 1469 | BitField<24, 2, StoreCacheManagement> cache_management; |
| 1450 | BitField<33, 3, ImageType> image_type; | 1470 | BitField<33, 3, ImageType> image_type; |
| 1451 | BitField<49, 2, OutOfBoundsStore> out_of_bounds_store; | 1471 | BitField<49, 2, OutOfBoundsStore> out_of_bounds_store; |