const tcu::PixelBufferAccess& errorMask,
const std::vector<CopyRegion>& regions)
{
- const tcu::Sampler sampler (tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ const tcu::Sampler sampler (tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
const tcu::IVec4 dstBitDepth (tcu::getTextureFormatBitDepth(result.getFormat()));
tcu::LookupPrecision precision;
const tcu::PixelBufferAccess& errorMask,
const std::vector<CopyRegion>& regions)
{
- const tcu::Sampler sampler (tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ const tcu::Sampler sampler (tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
tcu::IntLookupPrecision precision;
{
DE_ASSERT(filter == tcu::Sampler::LINEAR || filter == tcu::Sampler::CUBIC);
tcu::Sampler sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- filter, filter, 0.0f, false);
+ filter, filter, 0.0f, false, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
float sX = (float)regionExtent.x / (float)dst.getWidth();
float sY = (float)regionExtent.y / (float)dst.getHeight();
DE_ASSERT(filter == tcu::Sampler::NEAREST || filter == tcu::Sampler::LINEAR || filter == tcu::Sampler::CUBIC);
tcu::Sampler sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- filter, filter, 0.0f, false);
+ filter, filter, 0.0f, false, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
const float sX = (float)src.getWidth() / (float)dst.getWidth();
const float sY = (float)src.getHeight() / (float)dst.getHeight();
// Create sampler
{
- const tcu::Sampler sampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ const tcu::Sampler sampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
const tcu::TextureFormat texFormat = mapVkFormat(format);
const VkSamplerCreateInfo samplerParams = mapSampler(sampler, texFormat);
for (deUint32 i = 0; i < m_arraySize; i++)
{
const float borderValue = (float)((m_id + i) % 2);
- const tcu::Sampler sampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST, 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, Vec4(borderValue));
+ const tcu::Sampler sampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::CLAMP_TO_BORDER, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST, 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, Vec4(borderValue), true);
const tcu::TextureFormat texFormat = mapVkFormat(format);
const VkSamplerCreateInfo samplerParams = mapSampler(sampler, texFormat);
if (ndx % 2 == 0)
{
// linear, wrapping
- return tcu::Sampler(tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::LINEAR, tcu::Sampler::LINEAR);
+ return tcu::Sampler(tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::REPEAT_GL, tcu::Sampler::LINEAR, tcu::Sampler::LINEAR,
+ 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
}
else
{
// nearest, clamping
- return tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ return tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 0.0f, true, tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
}
}
m_testParams.usesMipMaps ? tcu::Sampler::LINEAR_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // minFilter
m_testParams.usesMipMaps ? tcu::Sampler::LINEAR_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // magFilter
0.0f, // lodTreshold
- true); // normalizeCoords
+ true, // normalizeCoords
+ tcu::Sampler::COMPAREMODE_NONE, // compare
+ 0, // compareChannel
+ tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), // borderColor
+ true); // seamlessCubeMap
const VkSamplerCreateInfo createInfo = vk::mapSampler(sampler, vk::mapVkFormat(m_colorFormat));
variables.descriptorSamplers.resize(variables.validDescriptorCount);
m_testParams.usesMipMaps ? tcu::Sampler::NEAREST_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // minFilter
m_testParams.usesMipMaps ? tcu::Sampler::NEAREST_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // magFilter
0.0f, // lodTreshold
- true); // normalizeCoords
+ true, // normalizeCoords
+ tcu::Sampler::COMPAREMODE_NONE, // compare
+ 0, // compareChannel
+ tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), // borderColor
+ true); // seamlessCubeMap
const VkSamplerCreateInfo createInfo = vk::mapSampler(sampler, vk::mapVkFormat(m_colorFormat));
variables.descriptorSamplers.push_back(ut::SamplerSp(new Move<VkSampler>(vk::createSampler(m_vki, m_vkd, &createInfo))));
}
m_testParams.usesMipMaps ? tcu::Sampler::NEAREST_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // minFilter
m_testParams.usesMipMaps ? tcu::Sampler::NEAREST_MIPMAP_NEAREST : tcu::Sampler::NEAREST, // magFilter
0.0f, // lodTreshold
- true); // normalizeCoords
+ true, // normalizeCoords
+ tcu::Sampler::COMPAREMODE_NONE, // compare
+ 0, // compareChannel
+ tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f), // borderColor
+ true); // seamlessCubeMap
const VkSamplerCreateInfo createInfo = vk::mapSampler(sampler, vk::mapVkFormat(m_colorFormat));
variables.descriptorSamplers.push_back(ut::SamplerSp(new Move<VkSampler>(vk::createSampler(m_vki, m_vkd, &createInfo))));
de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D();
const tcu::Sampler refSampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 00.0f /* LOD threshold */, true /* normalized coords */, tcu::Sampler::COMPAREMODE_NONE,
+ 0 /* cmp channel */, tcu::Vec4(0.0f) /* border color */, true /* seamless cube map */);
vk::Unique<vk::VkShaderModule> computeShader (vk::createShaderModule(vk, device, ctx.getBinaryCollection().get("comp"), 0));
de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D();
const tcu::Sampler refSampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 00.0f /* LOD threshold */, true /* normalized coords */, tcu::Sampler::COMPAREMODE_NONE,
+ 0 /* cmp channel */, tcu::Vec4(0.0f) /* border color */, true /* seamless cube map */);
vk::Move<vk::VkShaderModule> vertexShader = createShaderModule(vk, device, ctx.getBinaryCollection().get("vert"), 0);
vk::Move<vk::VkShaderModule> fragmentShader = createShaderModule(vk, device, ctx.getBinaryCollection().get("frag"), 0);
de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D();
const tcu::Sampler refSampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 00.0f /* LOD threshold */, true /* normalized coords */, tcu::Sampler::COMPAREMODE_NONE,
+ 0 /* cmp channel */, tcu::Vec4(0.0f) /* border color */, true /* seamless cube map */);
vk::Unique<vk::VkShaderModule> computeShader (vk::createShaderModule(vk, device, ctx.getBinaryCollection().get("comp"), 0));
de::MovePtr<tcu::Texture2D> texture2D = createTestTexture2D();
const tcu::Sampler refSampler = tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- tcu::Sampler::NEAREST, tcu::Sampler::NEAREST);
+ tcu::Sampler::NEAREST, tcu::Sampler::NEAREST,
+ 00.0f /* LOD threshold */, true /* normalized coords */, tcu::Sampler::COMPAREMODE_NONE,
+ 0 /* cmp channel */, tcu::Vec4(0.0f) /* border color */, true /* seamless cube map */);
vk::Unique<vk::VkShaderModule> computeShader (vk::createShaderModule(vk, device, ctx.getBinaryCollection().get("comp"), 0));
const tcu::Sampler refSampler = isShadowSampler(m_samplerType)
? tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
filterMode, filterMode, 0.0f, false /* non-normalized */,
- tcu::Sampler::COMPAREMODE_LESS)
+ tcu::Sampler::COMPAREMODE_LESS, 0, tcu::Vec4(0.0f), true)
: tcu::Sampler(tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE, tcu::Sampler::CLAMP_TO_EDGE,
- filterMode, filterMode);
+ filterMode, filterMode, 0.0f, true,
+ tcu::Sampler::COMPAREMODE_NONE, 0, tcu::Vec4(0.0f), true);
const DeviceInterface& vkd = m_context.getDeviceInterface();
const VkDevice device = m_context.getDevice();
tcu::Sampler::CLAMP_TO_EDGE,
tcu::Sampler::CLAMP_TO_EDGE,
tcu::Sampler::NEAREST,
- tcu::Sampler::NEAREST)));
+ tcu::Sampler::NEAREST,
+ 0.0f,
+ true,
+ tcu::Sampler::COMPAREMODE_NONE,
+ 0,
+ tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f),
+ true)));
m_textures.push_back(testTexture);
}
tcu::Sampler::CLAMP_TO_EDGE,
tcu::Sampler::CLAMP_TO_EDGE,
tcu::Sampler::LINEAR,
- tcu::Sampler::LINEAR)));
+ tcu::Sampler::LINEAR,
+ 0.0f,
+ true,
+ tcu::Sampler::COMPAREMODE_NONE,
+ 0,
+ tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f),
+ true)));
m_textures.push_back(brickTexture);
}
}
: m_baseParams.textureType == TEXTURETYPE_2D_ARRAY ? IVec3(7,7,7)
: IVec3(-1);
tcu::Sampler sampler;
- sampler.wrapS = m_baseParams.wrapS;
- sampler.wrapT = m_baseParams.wrapT;
- sampler.compare = m_baseParams.shadowCompareMode;
+ sampler.wrapS = m_baseParams.wrapS;
+ sampler.wrapT = m_baseParams.wrapT;
+ sampler.compare = m_baseParams.shadowCompareMode;
+ sampler.seamlessCubeMap = true;
if (isDepthFormat(m_baseParams.textureFormat))
{
MovePtr<tcu::Texture2D> texture = MovePtr<tcu::Texture2D>(new tcu::Texture2D(m_baseParams.textureFormat, m_textureSize.x(), m_textureSize.y()));
const tcu::Sampler sampler (m_baseParams.wrapS, m_baseParams.wrapT, tcu::Sampler::REPEAT_GL,
m_baseParams.minFilter, m_baseParams.magFilter,
- 0.0f /* LOD threshold */, true /* normalized coords */, m_baseParams.shadowCompareMode);
+ 0.0f /* LOD threshold */, true /* normalized coords */, m_baseParams.shadowCompareMode,
+ 0 /* compare channel */, tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f) /* border color */, true /* seamless cube*/);
{
const int levelBegin = ((m_baseParams.levelMode == LevelMode::NORMAL) ? m_baseParams.baseLevel : 0);
MovePtr<tcu::Texture2DArray> texture = MovePtr<tcu::Texture2DArray>(new tcu::Texture2DArray(m_baseParams.textureFormat, m_textureSize.x(), m_textureSize.y(), m_textureSize.z()));
const tcu::Sampler sampler (m_baseParams.wrapS, m_baseParams.wrapT, tcu::Sampler::REPEAT_GL,
m_baseParams.minFilter, m_baseParams.magFilter,
- 0.0f /* LOD threshold */, true /* normalized coords */, m_baseParams.shadowCompareMode);
+ 0.0f /* LOD threshold */, true /* normalized coords */, m_baseParams.shadowCompareMode,
+ 0 /* compare channel */, tcu::Vec4(0.0f, 0.0f, 0.0f, 0.0f) /* border color */, true /* seamless cube*/);
{
const int levelBegin = ((m_baseParams.levelMode == LevelMode::NORMAL) ? m_baseParams.baseLevel : 0);
normalizedCoords /* normalized coords */,
tcu::Sampler::COMPAREMODE_NONE /* no compare */,
0 /* compare channel */,
- tcu::Vec4(0.0f) /* border color, not used */);
+ tcu::Vec4(0.0f) /* border color, not used */,
+ true /* seamless cube map */);
}
/*--------------------------------------------------------------------*//*!