You have to math your own multiplexer to look at the various layers and decide what has precedence over what.