[GPU] TextureCache::GetActiveTextureHostSwizzle

This commit is contained in:
Triang3l 2022-06-09 21:34:21 +03:00
parent 56f72da137
commit 78d1eb8bf8
1 changed files with 5 additions and 2 deletions

View File

@ -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);