ANN: Examples for Physically Based Rendering

Yes, you can hack something easily if you have enough shader development skill.
Send your arrays to the shader inputs and modify the fragment shader code to get interpolated value from your custom vertex attributes to set roughness/metallic. You will need to modify the vertex shader as well to transfer your attribute to the fragment shader.