Skip to content

Commit 9fc5c31

Browse files
rudybearmeta-codesync[bot]
authored andcommitted
igl | vulkan | Suppress narrowing cast warnings in PlatformDevice::createTextureFromNativeDrawable()
Reviewed By: corporateshark Differential Revision: D110000143 fbshipit-source-id: 3ac95c91a5ed1af9ba1e22390657e1d76e51c472
1 parent d79f0d6 commit 9fc5c31

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎src/igl/vulkan/PlatformDevice.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ std::shared_ptr<ITexture> PlatformDevice::createTextureFromNativeDrawable(
117117
// allocate new drawable textures if its null or mismatches in size or format
118118
if (!result || width != result->getDimensions().width ||
119119
height != result->getDimensions().height || iglFormat != result->getFormat()) {
120-
// NOLINTNEXTLINE(clang-diagnostic-shorten-64-to-32)
120+
// NOLINTBEGIN(clang-diagnostic-shorten-64-to-32)
121121
const TextureDesc desc = TextureDesc::new2D(
122122
iglFormat, width, height, TextureDesc::TextureUsageBits::Attachment, "SwapChain Texture");
123+
// NOLINTEND(clang-diagnostic-shorten-64-to-32)
123124
nativeDrawableTextures_[currentImageIndex] =
124125
std::make_shared<Texture>(device_, std::move(vkTex), desc);
125126
}

0 commit comments

Comments
 (0)