diff --git a/filament/backend/src/BackendUtils.cpp b/filament/backend/src/BackendUtils.cpp index 6f91cb8530..d202ada97c 100644 --- a/filament/backend/src/BackendUtils.cpp +++ b/filament/backend/src/BackendUtils.cpp @@ -384,53 +384,53 @@ bool reshape(const PixelBufferDescriptor& data, PixelBufferDescriptor& reshaped) namespace utils { template<> -CString to_string(filament::backend::TextureUsage usage) noexcept { +CString to_string(filament::backend::TextureUsage value) noexcept { using namespace filament::backend; char string[7] = {'-', '-', '-', '-', '-', '-', 0}; - if (any(usage & TextureUsage::UPLOADABLE)) { + if (any(value & TextureUsage::UPLOADABLE)) { string[0]='U'; } - if (any(usage & TextureUsage::SAMPLEABLE)) { + if (any(value & TextureUsage::SAMPLEABLE)) { string[1]='S'; } - if (any(usage & TextureUsage::COLOR_ATTACHMENT)) { + if (any(value & TextureUsage::COLOR_ATTACHMENT)) { string[2]='c'; } - if (any(usage & TextureUsage::DEPTH_ATTACHMENT)) { + if (any(value & TextureUsage::DEPTH_ATTACHMENT)) { string[3]='d'; } - if (any(usage & TextureUsage::STENCIL_ATTACHMENT)) { + if (any(value & TextureUsage::STENCIL_ATTACHMENT)) { string[4] = 's'; } - if (any(usage & TextureUsage::SUBPASS_INPUT)) { + if (any(value & TextureUsage::SUBPASS_INPUT)) { string[5]='f'; } - return CString(string, 6); + return { string, 6 }; } template<> -CString to_string(filament::backend::TargetBufferFlags flags) noexcept { +CString to_string(filament::backend::TargetBufferFlags value) noexcept { using namespace filament::backend; char string[7] = {'-', '-', '-', '-', '-', '-', 0}; - if (any(flags & TargetBufferFlags::COLOR0)) { + if (any(value & TargetBufferFlags::COLOR0)) { string[0]='0'; } - if (any(flags & TargetBufferFlags::COLOR1)) { + if (any(value & TargetBufferFlags::COLOR1)) { string[1]='1'; } - if (any(flags & TargetBufferFlags::COLOR2)) { + if (any(value & TargetBufferFlags::COLOR2)) { string[2]='2'; } - if (any(flags & TargetBufferFlags::COLOR3)) { + if (any(value & TargetBufferFlags::COLOR3)) { string[3]='3'; } - if (any(flags & TargetBufferFlags::DEPTH)) { + if (any(value & TargetBufferFlags::DEPTH)) { string[4]='D'; } - if (any(flags & TargetBufferFlags::STENCIL)) { + if (any(value & TargetBufferFlags::STENCIL)) { string[5]='S'; } - return CString(string, 6); + return { string, 6 }; } } // namespace utils diff --git a/filament/src/PostProcessManager.cpp b/filament/src/PostProcessManager.cpp index a966b652e3..7685635308 100644 --- a/filament/src/PostProcessManager.cpp +++ b/filament/src/PostProcessManager.cpp @@ -1046,7 +1046,7 @@ FrameGraphId PostProcessManager::gaussianBlurPass(FrameGraph& [=](FrameGraphResources const& resources, auto const& data, DriverApi& driver) { - // don't use auto for those, b/c the can't resolve them + // don't use auto for those, b/c the ide can't resolve them using FGTD = FrameGraphTexture::Descriptor; using FGTSD = FrameGraphTexture::SubResourceDescriptor;