Choose as a setting for your tool 'Sample: All Layers'