Implemented TXQ dimension query type, used by SMO.

This commit is contained in:
FernandoS27
2018-09-07 19:53:06 -04:00
parent 82a313a14c
commit 073a21ac0b
2 changed files with 36 additions and 1 deletions

View File

@ -244,6 +244,16 @@ enum class TextureType : u64 {
TextureCube = 3,
};
enum class TextureQueryType : u64 {
Dimension = 1,
TextureType = 2,
SamplePosition = 5,
Filter = 16,
LevelOfDetail = 18,
Wrap = 20,
BorderColor = 22,
};
enum class IpaInterpMode : u64 { Linear = 0, Perspective = 1, Flat = 2, Sc = 3 };
enum class IpaSampleMode : u64 { Default = 0, Centroid = 1, Offset = 2 };
@ -518,6 +528,11 @@ union Instruction {
}
} tex;
union {
BitField<22, 6, TextureQueryType> query_type;
BitField<31, 4, u64> component_mask;
} txq;
union {
BitField<28, 1, u64> array;
BitField<29, 2, TextureType> texture_type;
@ -670,7 +685,7 @@ public:
LDG, // Load from global memory
STG, // Store in global memory
TEX,
TXQ, // Texture Query
TXQ, // Texture Query
TEXS, // Texture Fetch with scalar/non-vec4 source/destinations
TLDS, // Texture Load with scalar/non-vec4 source/destinations
TLD4, // Texture Load 4