OCIO_ADD_GPU_TEST(Lut1DOp, scale_lut1d_4_generic_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_4.spi1d"); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateShaderDesc(); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(1e-4f); }
OCIO_ADD_GPU_TEST(Lut1DOp, not_linear_lut1d_5_generic_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_5.spi1d"); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateShaderDesc(); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(1e-3f); test.setRelativeComparison(true); }
OCIO_ADD_GPU_TEST(Lut1DOp, lut1d_3_big_nearest_generic_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_3.spi1d"); file->setInterpolation(OCIO::INTERP_NEAREST); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateShaderDesc(); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(1e-4f); }
OCIO_ADD_GPU_TEST(Lut1DOp, lut1d_3_big_inverse_generic_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_3.spi1d"); file->setDirection(OCIO::TRANSFORM_DIR_INVERSE); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateShaderDesc(); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(1e-4f); }
OCIO_ADD_GPU_TEST(Lut1DOp, lut1d_3_big_legacy_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_3.spi1d"); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateLegacyShaderDesc(2*LUT3D_EDGE_SIZE); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(1e-4f); }
OCIO_ADD_GPU_TEST(Lut1DOp, lut1d_2_inverse_legacy_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_2.spi1d"); file->setDirection(OCIO::TRANSFORM_DIR_INVERSE); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateLegacyShaderDesc(2*LUT3D_EDGE_SIZE); test.setContext(file->createEditableCopy(), shaderDesc); test.setErrorThreshold(5e-4f); }
OCIO_ADD_GPU_TEST(Lut1DOp, lut1d_1_small_legacy_shader) { OCIO::FileTransformRcPtr file = GetFileTransform("lut1d_1.spi1d"); OCIO::GpuShaderDescRcPtr shaderDesc = OCIO::GpuShaderDesc::CreateLegacyShaderDesc(2*LUT3D_EDGE_SIZE); test.setContext(file->createEditableCopy(), shaderDesc); // TODO: Investigate why the test needs such a threshold test.setErrorThreshold(3e-3f); }