[PATCH 3/6] vkd3d-dxbc: Introduce a helper function to apply actions.