Gets the 'hash' of this pass, ie a precomputed number to use for sorting.
This hash is used to sort passes, and for this reason the pass is hashed using firstly its index (so that all passes are rendered in order), then by the textures which it's TextureUnitState instances are using.