Share via


accelerator::has_display Data Member

Gets a Boolean value that indicates whether the accelerator can output to a display.

__declspec(property(get=get_has_display)) bool has_display;

Remarks

The value of the has_display property indicates whether the accelerator can output to a display, but it does not necessarily indicate that a display is physically attached to the accelerator.

For hardware accelerators, has_display is true only when a display device is attached to the accelerator. For the REF and WARP accelerators, has_display is always true because they are always capable of outputting to a display. For the CPU accelerator—which cannot output to a display—has_display is always false. Refer to the following table for a summary of this information.

Feature

CPU

REF

WARP

C++ AMP-capable hardware, no display attached

C++ AMP-capable hardware, display attached

has_display

false

true

true

false

true

The has_display property can be used to determine whether the operating system or other system software components might use the accelerator for display purposes. If you are using C++ AMP only for computation, you might prefer an accelerator that can't output to a display so that you can avoid contending for accelerator resources. But if you are using C++ AMP to visualize data, you might prefer an accelerator that can output to a display so that you don't have to copy the result from the accelerator just to display it.

Requirements

Header: amprt.h

Namespace: Concurrency

See Also

Reference

accelerator::get_has_display Method

accelerator Class