const glw::Functions& gl = m_renderCtx.getFunctions();
TestLog& log = m_testCtx.getLog();
const tcu::PixelFormat renderFormat = m_renderCtx.getRenderTarget().getPixelFormat();
- const tcu::Vec4 threshold = 0.02f * Vec4(1u << de::max(0, 8 - renderFormat.redBits),
- 1u << de::max(0, 8 - renderFormat.greenBits),
- 1u << de::max(0, 8 - renderFormat.blueBits),
- 1u << de::max(0, 8 - renderFormat.alphaBits));
+ const tcu::Vec4 threshold = 0.02f * UVec4(1u << de::max(0, 8 - renderFormat.redBits),
+ 1u << de::max(0, 8 - renderFormat.greenBits),
+ 1u << de::max(0, 8 - renderFormat.blueBits),
+ 1u << de::max(0, 8 - renderFormat.alphaBits)).asFloat();
const glu::ShaderProgram shader (m_renderCtx, genShaders(glu::getContextTypeGLSLVersion(m_renderCtx.getType())));
const RandomViewport viewport (m_renderCtx.getRenderTarget(), 256, 256, deStringHash(getName()));
};
TestPackage::TestPackage (tcu::TestContext& testCtx)
- : tcu::TestPackage (testCtx, "dE-IT", "drawElements Internal Tests")
- , m_archive (testCtx.getRootArchive(), "internal/")
+ : tcu::TestPackage(testCtx, "dE-IT", "drawElements Internal Tests")
{
}
#include "tcuDefs.hpp"
#include "tcuTestPackage.hpp"
-#include "tcuResource.hpp"
namespace dit
{
virtual void init (void);
tcu::TestCaseExecutor* createExecutor (void) const;
- tcu::Archive* getArchive (void) { return &m_archive; }
-
-private:
- tcu::ResourcePrefix m_archive;
};
} // dit