float calcRelEpsilon (VkFormat format, VkFilter filter, VkSamplerMipmapMode mipmapFilter)
{
+ // This should take into account the format at some point, but doesn't now
+ DE_UNREF(format);
+
// fp16 format approximates the minimum precision for internal calculations mandated by spec
const float fp16MachineEpsilon = 0.0009765625f;
for (int compNdx = 0; compNdx < Size; ++compNdx)
{
- result[compNdx] = deFloor(v[compNdx]);
+ result[compNdx] = (float)deFloor(v[compNdx]);
}
return result;
for (int compNdx = 0; compNdx < Size; ++compNdx)
{
- result[compNdx] = deCeil(v[compNdx]);
+ result[compNdx] = (float)deCeil(v[compNdx]);
}
return result;
deUint8 face,
std::ostream& report) const
{
+ // Will use this parameter once cubemapping is implemented completely
+ DE_UNREF(face);
+
Vec2 lodBounds;
if (m_sampleLookupSettings.lookupLodMode == LOOKUP_LOD_MODE_DERIVATIVES)
VkSamplerAddressMode wrappingMode)
: TextureFilteringTestCase (testCtx, name, desc)
- , m_testCtx (testCtx)
, m_format (format)
, m_dimensions (dimensions)
, m_magFilter (magFilter)
}
private:
- TestContext& m_testCtx;
TextureFormat m_format;
IVec3 m_dimensions;
VkFilter m_magFilter;