[GPU] TextureCache::GetActiveTextureHostSwizzle
This commit is contained in:
parent
56f72da137
commit
78d1eb8bf8
|
@ -98,8 +98,11 @@ class TextureCache {
|
||||||
|
|
||||||
// "ActiveTexture" means as of the latest RequestTextures call.
|
// "ActiveTexture" means as of the latest RequestTextures call.
|
||||||
|
|
||||||
// Returns the post-swizzle signedness of a currently bound texture (must be
|
uint8_t GetActiveTextureHostSwizzle(uint32_t fetch_constant_index) const {
|
||||||
// called after RequestTextures).
|
const TextureBinding* binding =
|
||||||
|
GetValidTextureBinding(fetch_constant_index);
|
||||||
|
return binding ? binding->host_swizzle : xenos::XE_GPU_TEXTURE_SWIZZLE_0000;
|
||||||
|
}
|
||||||
uint8_t GetActiveTextureSwizzledSigns(uint32_t fetch_constant_index) const {
|
uint8_t GetActiveTextureSwizzledSigns(uint32_t fetch_constant_index) const {
|
||||||
const TextureBinding* binding =
|
const TextureBinding* binding =
|
||||||
GetValidTextureBinding(fetch_constant_index);
|
GetValidTextureBinding(fetch_constant_index);
|
||||||
|
|
Loading…
Reference in New Issue