Browse Source

video_core/texture: Add a raw representation of TSCEntry

nce_cpp
ReinUsesLisp 7 years ago
parent
commit
1fc1607e10
  1. 5
      src/video_core/textures/texture.h

5
src/video_core/textures/texture.h

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

Loading…
Cancel
Save