How to access sky segmentation mask texture

I’m trying to do some post processing on an effect with sky segmentation. As it’s a custom pipeline it seems like I need to inject the sky segmentation into the EffectComposer. I’m trying to get the mask with the line of code below, however it just seems to returning a black texture. Is there another way I should be accessing it?

const onUpdate = ({ processCpuResult }) => {
    if (processCpuResult.layerscontroller) {
      skyMask = processCpuResult.layerscontroller.layers.sky.texture
    }
  }