Enforce device-specific maximum sizes in createBuffer/createImage