Merge pull request #1211 from Triang3l/patch-1

[GPU] Add texture signedness enumeration
This commit is contained in:
Justin Moore 2018-09-06 19:26:06 -05:00 committed by GitHub
commit 413a04eb1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -63,6 +63,17 @@ enum class ClampMode : uint32_t {
kMirrorClampToBorder = 7,
};
// TEX_FORMAT_COMP, known as GPUSIGN on the Xbox 360.
enum class TextureSign : uint32_t {
kUnsigned = 0,
// Two's complement texture data.
kSigned = 1,
// 2*color-1 - http://xboxforums.create.msdn.com/forums/t/107374.aspx
kUnsignedBiased = 2,
// Linearized when sampled.
kGamma = 3,
};
enum class TextureFilter : uint32_t {
kPoint = 0,
kLinear = 1,