adding shader slot check and removing dx warning