summaryrefslogtreecommitdiffstats
path: root/src/video_core/engines
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-09-12 22:03:34 +0200
committerGitHub <noreply@github.com>2018-09-12 22:03:34 +0200
commitcc50857460a9ea6c64177e7362e28e3a262da3db (patch)
tree7cb3feb2d91132e2d3fc93397bb7f7ef22499cd9 /src/video_core/engines
parentMerge pull request #1303 from lioncash/error (diff)
parentImplemented Texture Processing Modes (diff)
downloadyuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar.gz
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar.bz2
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar.lz
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar.xz
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.tar.zst
yuzu-cc50857460a9ea6c64177e7362e28e3a262da3db.zip
Diffstat (limited to 'src/video_core/engines')
-rw-r--r--src/video_core/engines/shader_bytecode.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h
index 2db906ea5..58f2904ce 100644
--- a/src/video_core/engines/shader_bytecode.h
+++ b/src/video_core/engines/shader_bytecode.h
@@ -254,6 +254,15 @@ enum class TextureQueryType : u64 {
BorderColor = 22,
};
+enum class TextureProcessMode : u64 {
+ None = 0,
+ LZ = 1, // Unknown, appears to be the same as none.
+ LB = 2, // Load Bias.
+ LL = 3, // Load LOD (LevelOfDetail)
+ LBA = 6, // Load Bias. The A is unknown, does not appear to differ with LB
+ LLA = 7 // Load LOD. The A is unknown, does not appear to differ with LL
+};
+
enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, Flat = 2, Sc = 3 };
enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 };
@@ -573,6 +582,7 @@ union Instruction {
BitField<28, 1, u64> array;
BitField<29, 2, TextureType> texture_type;
BitField<31, 4, u64> component_mask;
+ BitField<55, 3, TextureProcessMode> process_mode;
bool IsComponentEnabled(size_t component) const {
return ((1ull << component) & component_mask) != 0;