ScriptableRenderPass with custom lighting

I would like to have a renderpass that only draws with some subset of the lights I have in my scene. Is it possible to do this by modifying the lightmap indices in the culling results?

bump