[GraphicsApiIndexable] Abstracted logic for indexing.