다음을 통해 공유


make_texture Function

Creates a texture object by using the specified parameters.

template<
   typename _Value_type,
   int _Rank
>
texture<_Value_type, _Rank> make_texture(
   const Concurrency::accelerator_view &_Av,
   _In_ IUnknown *_D3D_texture,
   DXGI_FORMAT _View_format = DXGI_FORMAT_UNKNOWN
) restrict(cpu);

Parameters

  • _Value_type
    The type of the elements in the texture.

  • _Rank
    The rank of the texture.

  • _Av
    A D3D accelerator view on which the texture is to be created.

  • _D3D_texture
    IUnknown interface pointer of the D3D texture to create the texture from.

  • _View_format
    The DXGI format to use for views created from this texture. Pass DXGI_FORMAT_UNKNOWN (the default) to derive the format from the underlying format of _D3D_texture and the _Value_type of this template. The provided format must be compatible with the underlying format of _D3D_texture.

Return Value

A texture using the provided D3D texture.

Requirements

Header: amp_graphics.h

Namespace: Concurrency::graphics::direct3d

See Also

Reference

Concurrency::graphics::direct3d Namespace