mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 04:45:45 +01:00
Pica: Add texture type to state
This commit is contained in:
parent
86ecbdfa4d
commit
9cfebb9334
@ -138,6 +138,15 @@ struct Regs {
|
|||||||
INSERT_PADDING_WORDS(0x12);
|
INSERT_PADDING_WORDS(0x12);
|
||||||
|
|
||||||
struct TextureConfig {
|
struct TextureConfig {
|
||||||
|
enum TextureType : u32 {
|
||||||
|
Texture2D = 0,
|
||||||
|
TextureCube = 1,
|
||||||
|
Shadow2D = 2,
|
||||||
|
Projection2D = 3,
|
||||||
|
ShadowCube = 4,
|
||||||
|
Disabled = 5,
|
||||||
|
};
|
||||||
|
|
||||||
enum WrapMode : u32 {
|
enum WrapMode : u32 {
|
||||||
ClampToEdge = 0,
|
ClampToEdge = 0,
|
||||||
ClampToBorder = 1,
|
ClampToBorder = 1,
|
||||||
@ -168,6 +177,7 @@ struct Regs {
|
|||||||
BitField< 2, 1, TextureFilter> min_filter;
|
BitField< 2, 1, TextureFilter> min_filter;
|
||||||
BitField< 8, 2, WrapMode> wrap_t;
|
BitField< 8, 2, WrapMode> wrap_t;
|
||||||
BitField<12, 2, WrapMode> wrap_s;
|
BitField<12, 2, WrapMode> wrap_s;
|
||||||
|
BitField<28, 2, TextureType> type; ///< @note Only valid for texture 0 according to 3DBrew.
|
||||||
};
|
};
|
||||||
|
|
||||||
INSERT_PADDING_WORDS(0x1);
|
INSERT_PADDING_WORDS(0x1);
|
||||||
|
Loading…
Reference in New Issue
Block a user