A Pipeline object
the index of the layer
the texture that was set for the given layer of the pipeline or null if no texture was set.