Export (0) Print
Expand All

direct3d_abort Function

Aborts the execution of a function with the restrict(amp) restriction clause. When the AMP runtime detects the call, it raises a runtime_exception exception with the error message "Reference Rasterizer: Shader abort instruction hit".

void direct3d_abort() restrict(amp);

This function has the following restrictions:

  1. The Debug configuration in Visual Studio is selected, i.e. the code is compiled with the _DEBUG preprocessor definition.

  2. The [accelerator_view] on which the kernel is invoked must be on an accelerator which supports the printf, errorf, and abort intrinsics. These are supported by the REF accelerator. For more information, see Using accelerator and accelerator_view Objects.

  3. The maximum number of parameters allowed is seven.

  4. There is no automatic widening or narrowing type conversion.

Header: amp.h

Namespace: Concurrency

Show:
© 2014 Microsoft