video_core/texture: Add a raw representation of TSCEntry

This commit is contained in:
ReinUsesLisp 2019-03-12 16:56:29 -03:00
parent 2ad44a453f
commit 8ebeb9ade2

View file

@ -282,6 +282,8 @@ enum class TextureMipmapFilter : u32 {
}; };
struct TSCEntry { struct TSCEntry {
union {
struct {
union { union {
BitField<0, 3, WrapMode> wrap_u; BitField<0, 3, WrapMode> wrap_u;
BitField<3, 3, WrapMode> wrap_v; BitField<3, 3, WrapMode> wrap_v;
@ -308,6 +310,9 @@ struct TSCEntry {
BitField<20, 8, u32> srgb_border_color_b; BitField<20, 8, u32> srgb_border_color_b;
}; };
std::array<f32, 4> border_color; std::array<f32, 4> border_color;
};
std::array<u32, 8> raw;
};
float GetMaxAnisotropy() const { float GetMaxAnisotropy() const {
return static_cast<float>(1U << max_anisotropy); return static_cast<float>(1U << max_anisotropy);