Concurrency::direct3d Namespace

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The direct3d namespace provides functions that support D3D interoperability. It enables seamless use of D3D resources for compute in AMP code as well as allow use of resources created in AMP in D3D code, without creating redundant intermediate copies. You can incrementally accelerate the compute intensive sections of your DirectX applications by using C++ AMP and use the D3D API on data produced from AMP computations.

namespace direct3d;  

Classes

NameDescription
scoped_d3d_access_lock ClassAn RAII wrapper for a D3D access lock on an accelerator_view object.

Structures

NameDescription
adopt_d3d_access_lock_t StructureTag type to indicate the D3D access lock should be adopted rather than acquired.

Functions

NameDescription
abs FunctionReturns the absolute value of the argument
clamp FunctionOverloaded. Clamps _X to the specified _Min and _Max range
countbits FunctionCounts the number of set bits in _X
create_accelerator_view FunctionCreates an accelerator_view Class from a pointer to a Direct3D device interface
d3d_access_lock FunctionAcquires a lock on an accelerator_view for the purpose of safely performing D3D operations on resources shared with the accelerator_view
d3d_access_try_lock FunctionAttempt to acquire the D3D access lock on an accelerator_view without blocking.
d3d_access_unlock FunctionRelease the D3D access lock on the given accelerator_view.
firstbithigh FunctionGets the location of the first set bit in _X, starting from the highest order bit and working downward
firstbitlow FunctionGets the location of the first set bit in _X, starting from the lowest order bit and working upward
get_buffer FunctionGet the D3D buffer interface underlying an array.
imax FunctionCompares two values, returning the value which is greater.
imin FunctionCompares two values, returning the value which is smaller.
is_timeout_disabled FunctionReturns a boolean flag indicating if timeout is disabled for the specified accelerator_view.
mad FunctionOverloaded. Performs an arithmetic multiply/add operation on three arguments: _X * _Y + _Z
make_array FunctionCreate an array from a D3D buffer interface pointer.
noise FunctionGenerates a random value by using the Perlin noise algorithm
radians FunctionConverts _X from degrees to radians
rcp FunctionCalculates a fast, approximate reciprocal of the argument
reversebits FunctionReverses the order of the bits in _X
saturate FunctionClamps _X within the range of 0 to 1
sign FunctionOverloaded. Returns the sign of the argument
smoothstep FunctionReturns a smooth Hermite interpolation between 0 and 1, if _X is in the range [_Min, _Max].
step FunctionCompares two values, returning 0 or 1 based on which value is greater
umax FunctionCompares two unsigned values, returning the value which is greater.
umin FunctionCompares two unsigned values, returning the value which is smaller.

Header: amp.h

Namespace: Concurrency

Concurrency Namespace (C++ AMP)

Show: