Its primary function is to act as a barrier against ... Conditions and disorders that affect the dermis layer include: The papillary dermis is the thin upper layer directly beneath the epidermis.