tcu::TestStatus iterate (void)
{
- // Check device for anisotropic filtering support
- if (!m_context.getDeviceFeatures().samplerAnisotropy)
- TCU_THROW(NotSupportedError, "Skipping anisotropic tests since the device does not support anisotropic filtering.");
-
TextureRenderer renderer (m_context, VK_SAMPLE_COUNT_1_BIT, ANISOTROPY_TEST_RESOLUTION, ANISOTROPY_TEST_RESOLUTION);
TestTexture2DSp texture = TestTexture2DSp(new pipeline::TestTexture2D(vk::mapVkFormat(VK_FORMAT_R8G8B8A8_UNORM), ANISOTROPY_TEST_RESOLUTION, ANISOTROPY_TEST_RESOLUTION));
{
return new FilteringAnisotropyInstance(context, m_refParams);
}
+
+ virtual void checkSupport (Context& context) const
+ {
+ // Check device for anisotropic filtering support.
+ if (!context.getDeviceFeatures().samplerAnisotropy)
+ TCU_THROW(NotSupportedError, "Skipping anisotropic tests since the device does not support anisotropic filtering.");
+ }
+
private :
const AnisotropyParams m_refParams;
};