void setDeferredAttachedTexture(Factory factory, Object? texture) { if (factory is DeferredSessionFactory) { factory.attachedTexture = texture; } }