Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions filament/backend/src/vulkan/VulkanExternalImageManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ void VulkanExternalImageManager::bindExternallySampledTexture(
// https://registry.khronos.org/vulkan/specs/latest/man/html/VkSamplerCreateInfo.html#VUID-VkSamplerCreateInfo-minFilter-01645
samplerParams.filterMag = SamplerMagFilter::NEAREST;
samplerParams.filterMin = SamplerMinFilter::NEAREST;
// If the sampler has a ycbcrConversion then anisotropic must be disabled and addressModeU,
// addressModeV and addressModeW must be VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE.
// https://docs.vulkan.org/spec/latest/chapters/samplers.html#VUID-VkSamplerCreateInfo-addressModeU-01646
samplerParams.wrapS = SamplerWrapMode::CLAMP_TO_EDGE;
samplerParams.wrapT = SamplerWrapMode::CLAMP_TO_EDGE;
samplerParams.wrapR = SamplerWrapMode::CLAMP_TO_EDGE;
samplerParams.anisotropyLog2 = 0;

VkSampler const sampler = mSamplerCache->getSampler({
.sampler = samplerParams,
Expand Down
Loading