This documentation is archived and is not being maintained.

create_accelerator_view Function

Creates an accelerator_view object from a pointer to a Direct3D device interface.

accelerator_view create_accelerator_view(
   IUnknown *_D3D_device
);

_D3D_device

The pointer to the Direct3D device interface.

The accelerator_view object created from the passed Direct3D device interface.

This function creates a new accelerator_view object from an existing pointer to a Direct3D device interface. If the function call succeeds, the reference count of the parameter is incremented by means of an AddRef call to the interface. You can safely release the object when it is no longer required in your DirectX code. If the method call fails, a runtime_exception is thrown.

The accelerator_view object that you create by using this function is thread safe. You must synchronize concurrent use of the accelerator_view object. Unsynchronized concurrent usage of the accelerator_view object and the raw ID3D11Device interface causes undefined behavior.

The C++ AMP runtime provides detailed error information in debug mode by using the D3D Debug layer if you use the D3D11_CREATE_DEVICE_DEBUG flag.

Header: amprt.h

Namespace: Concurrency::direct3d

Show: