summaryrefslogtreecommitdiff
path: root/src/video_core/textures/texture.h
diff options
context:
space:
mode:
authorGravatar Mat M2020-04-12 09:11:44 -0400
committerGravatar GitHub2020-04-12 09:11:44 -0400
commit4aec01b850cd11d4313fe168c8be09c0796f9c77 (patch)
treeb6c6b7ac0d40bb8dbe338ba9f5865321c0493783 /src/video_core/textures/texture.h
parentMerge pull request #3635 from FernandoS27/buffer-free (diff)
parentvideo_core: Add MSAA registers in 3D engine and TIC (diff)
downloadyuzu-4aec01b850cd11d4313fe168c8be09c0796f9c77.tar.gz
yuzu-4aec01b850cd11d4313fe168c8be09c0796f9c77.tar.xz
yuzu-4aec01b850cd11d4313fe168c8be09c0796f9c77.zip
Merge pull request #3644 from ReinUsesLisp/msaa
video_core: Add MSAA registers in 3D engine and TIC
Diffstat (limited to 'src/video_core/textures/texture.h')
-rw-r--r--src/video_core/textures/texture.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/video_core/textures/texture.h b/src/video_core/textures/texture.h
index 59b8a5e66..eba05aced 100644
--- a/src/video_core/textures/texture.h
+++ b/src/video_core/textures/texture.h
@@ -131,6 +131,20 @@ enum class SwizzleSource : u32 {
131 OneFloat = 7, 131 OneFloat = 7,
132}; 132};
133 133
134enum class MsaaMode : u32 {
135 Msaa1x1 = 0,
136 Msaa2x1 = 1,
137 Msaa2x2 = 2,
138 Msaa4x2 = 3,
139 Msaa4x2_D3D = 4,
140 Msaa2x1_D3D = 5,
141 Msaa4x4 = 6,
142 Msaa2x2_VC4 = 8,
143 Msaa2x2_VC12 = 9,
144 Msaa4x2_VC8 = 10,
145 Msaa4x2_VC24 = 11,
146};
147
134union TextureHandle { 148union TextureHandle {
135 TextureHandle(u32 raw) : raw{raw} {} 149 TextureHandle(u32 raw) : raw{raw} {}
136 150
@@ -197,6 +211,7 @@ struct TICEntry {
197 union { 211 union {
198 BitField<0, 4, u32> res_min_mip_level; 212 BitField<0, 4, u32> res_min_mip_level;
199 BitField<4, 4, u32> res_max_mip_level; 213 BitField<4, 4, u32> res_max_mip_level;
214 BitField<8, 4, MsaaMode> msaa_mode;
200 BitField<12, 12, u32> min_lod_clamp; 215 BitField<12, 12, u32> min_lod_clamp;
201 }; 216 };
202 217