|
|
|
@ -692,6 +692,15 @@ bool TextureCacheRuntime::HasNativeASTC() const noexcept { |
|
|
|
return device.HasASTC(); |
|
|
|
} |
|
|
|
|
|
|
|
bool TextureCacheRuntime::SupportsLinearFilter(VideoCore::Surface::PixelFormat format) const noexcept { |
|
|
|
using VideoCore::Surface::GetFormatType; |
|
|
|
using VideoCore::Surface::IsPixelFormatInteger; |
|
|
|
if (IsPixelFormatInteger(format)) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
return GetFormatType(format) == VideoCore::Surface::SurfaceType::ColorTexture; |
|
|
|
} |
|
|
|
|
|
|
|
Image::Image(TextureCacheRuntime& runtime_, const VideoCommon::ImageInfo& info_, GPUVAddr gpu_addr_, |
|
|
|
VAddr cpu_addr_) |
|
|
|
: VideoCommon::ImageBase(info_, gpu_addr_, cpu_addr_), runtime{&runtime_} { |
|
|
|
|