Which layers of skin are affected by pressure sores?

All layers . Deep to superficial. But the primary problem is compromise of the vascular supply in the subcutaneous layers and secondarily in the dermis.
All. Pressure sores are complex wounds that commonly involve the entire thickness of the skin even if the surface appears intact.