mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-11-14 20:32:51 +00:00
video_core/texture: Add a raw representation of TSCEntry
This commit is contained in:
parent
2ad44a453f
commit
8ebeb9ade2
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue