Export (0) Print
Expand All

Concurrency::direct3d Namespace

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;

Name

Description

clamp Function

Overloaded. Clamps _X to the specified _Min and _Max range

countbits Function

Counts the number of set bits in _X

firstbithigh Function

Gets the location of the first set bit in _X, starting from the highest order bit and working downward

firstbitlow Function

Gets the location of the first set bit in _X, starting from the lowest order bit and working upward

get_buffer Function

Get the D3D buffer interface underlying an array.

mad Function

Overloaded. Performs an arithmetic multiply/add operation on three arguments: _X * _Y + _Z

make_array Function

Create an array from a D3D buffer interface pointer.

noise Function

Generates a random value by using the Perlin noise algorithm

radians Function

Converts _X from degrees to radians

reversebits Function

Reverses the order of the bits in _X

saturate Function

Clamps _X within the range of 0 to 1

sign Function

Overloaded. Returns the sign of the argument

smoothstep Function

Returns a smooth Hermite interpolation between 0 and 1, if _X is in the range [_Min, _Max].

step Function

Compares two values, returning 0 or 1 based on which value is greater

tile_barrier::wait_with_all_memory_fence Method

Blocks execution of all threads in a tile until all memory accesses have been completed and all threads in the tile have reached this call.

tile_barrier::wait_with_global_memory_fence Method

Blocks execution of all threads in a tile until all global memory accesses have been completed and all threads in the tile have reached this call.

tile_barrier::wait_with_tile_static_memory_fence Method

Blocks execution of all threads in a tile until all tile_static memory accesses have been completed and all threads in the tile have reached this call.

Header: amp.h

Namespace: Concurrency

Show:
© 2014 Microsoft