STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Typedefs | Functions
Concurrency::graphics::direct3d Namespace Reference

Typedefs

typedef graphics::uint_2 uint2
 
typedef graphics::uint_3 uint3
 
typedef graphics::uint_4 uint4
 
typedef graphics::int_2 int2
 
typedef graphics::int_3 int3
 
typedef graphics::int_4 int4
 
typedef graphics::float_2 float2
 
typedef graphics::float_3 float3
 
typedef graphics::float_4 float4
 
typedef graphics::unorm_2 unorm2
 
typedef graphics::unorm_3 unorm3
 
typedef graphics::unorm_4 unorm4
 
typedef graphics::norm_2 norm2
 
typedef graphics::norm_3 norm3
 
typedef graphics::norm_4 norm4
 
typedef graphics::double_2 double2
 
typedef graphics::double_3 double3
 
typedef graphics::double_4 double4
 

Functions

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) __CPU_ONLY
 Create an texture from a D3D texture interface pointer, optionally using the specified DXGI format for all views on this texture. More...
 
sampler make_sampler (_In_ IUnknown *_D3D_sampler) __CPU_ONLY
 Create a sampler from a D3D sampler state interface pointer. More...
 
_Ret_ IUnknown * get_sampler (const Concurrency::accelerator_view &_Av, const sampler &_Sampler) __CPU_ONLY
 Get the D3D sampler state interface on the given accelerator view that represents the specified sampler object. More...
 
template<typename _Value_type , int _Rank>
_Ret_ IUnknown * get_texture (const texture< _Value_type, _Rank > &_Texture) __CPU_ONLY
 Get the D3D texture interface underlying a texture. More...
 
template<typename _Value_type , int _Rank>
_Ret_ IUnknown * get_texture (const writeonly_texture_view< _Value_type, _Rank > &_Texture) __CPU_ONLY
 Get the D3D texture interface underlying a texture viewed by a writeonly_texture_view. More...
 
template<typename _Value_type , int _Rank>
_Ret_ IUnknown * get_texture (const texture_view< _Value_type, _Rank > &_Texture) __CPU_ONLY
 Get the D3D texture interface underlying a texture viewed by a texture_view. More...
 
uint4 msad4 (uint _Reference, uint2 _Source, uint4 _Accum) __GPU_ONLY
 Compares a 4-byte reference value and an 8-byte source value and accumulates a vector of 4 sums. Each sum corresponds to the masked sum of absolute differences of different byte alignments between the reference value and the source value. More...
 

Typedef Documentation

Function Documentation

_Ret_ IUnknown * Concurrency::graphics::direct3d::get_sampler ( const Concurrency::accelerator_view _Av,
const sampler &  _Sampler 
)
inline

Get the D3D sampler state interface on the given accelerator view that represents the specified sampler object.

Parameters
_AvA D3D accelerator view on which the D3D sampler state is to be created.
_SamplerA sampler object for which the underlying D3D sampler state interface is created.
Returns
The IUnknown interface pointer corresponding to the D3D sampler state that represents the given sampler.
4922  {
4923  return Concurrency::details::_D3D_interop::_Get_D3D_sampler(_Av, _Sampler._Get_sampler_ptr());
4924  }
Definition: amprt.h:2369
static _AMPIMP _Ret_ IUnknown *__cdecl _Get_D3D_sampler(const Concurrency::accelerator_view &_Av, _In_ _Sampler *_Sampler_ptr)
template<typename _Value_type , int _Rank>
_Ret_ IUnknown* Concurrency::graphics::direct3d::get_texture ( const texture< _Value_type, _Rank > &  _Texture)

Get the D3D texture interface underlying a texture.

Parameters
_RankThe rank of the texture to get underlying D3D texture of.
_Value_typeThe type of the elements in the texture to get underlying D3D texture of.
_TextureA texture on a D3D accelerator_view for which the underlying D3D texture interface is returned.
Returns
The IUnknown interface pointer corresponding to the D3D texture underlying the texture.
4825  {
4827  }
static _AMPIMP _Ret_ IUnknown *__cdecl _Get_D3D_texture(_In_ _Texture *_Texture_ptr)
_Ret_ _Texture * _Get_texture(const _Texture_type &_Tex) __CPU_ONLY
Definition: xxamp.h:1100
Definition: amprt.h:2152
template<typename _Value_type , int _Rank>
_Ret_ IUnknown* Concurrency::graphics::direct3d::get_texture ( const writeonly_texture_view< _Value_type, _Rank > &  _Texture)

Get the D3D texture interface underlying a texture viewed by a writeonly_texture_view.

Parameters
_RankThe rank of the texture to get underlying D3D texture of.
_Value_typeThe type of the elements in the texture to get underlying D3D texture of.
_TextureA writeonly_texture_view of a texture on a D3D accelerator_view for which the underlying D3D texture interface is returned.
Returns
The IUnknown interface pointer corresponding to the D3D texture underlying the texture.
4847  {
4849  }
_Ret_ _Texture * _Get_texture(const _Texture_type &_Tex) __CPU_ONLY
Definition: xxamp.h:1100
static _AMPIMP _Ret_ IUnknown *__cdecl _Get_D3D_buffer(_In_ _Buffer *_Buffer_ptr)
Definition: amprt.h:2152
template<typename _Value_type , int _Rank>
_Ret_ IUnknown* Concurrency::graphics::direct3d::get_texture ( const texture_view< _Value_type, _Rank > &  _Texture)

Get the D3D texture interface underlying a texture viewed by a texture_view.

Parameters
_RankThe rank of the texture to get underlying D3D texture of.
_Value_typeThe type of the elements in the texture to get underlying D3D texture of.
_TextureA texture_view of a texture on a D3D accelerator_view for which the underlying D3D texture interface is returned.
Returns
The IUnknown interface pointer corresponding to the D3D texture underlying the texture.
4868  {
4870  }
_Ret_ _Texture * _Get_texture(const _Texture_type &_Tex) __CPU_ONLY
Definition: xxamp.h:1100
static _AMPIMP _Ret_ IUnknown *__cdecl _Get_D3D_buffer(_In_ _Buffer *_Buffer_ptr)
Definition: amprt.h:2152
sampler Concurrency::graphics::direct3d::make_sampler ( _In_ IUnknown *  _D3D_sampler)
inline

Create a sampler from a D3D sampler state interface pointer.

Parameters
_D3D_samplerIUnknown interface pointer of the D3D sampler state to create the sampler from.
Returns
A sampler represents the provided D3D sampler state.
4936  {
4937  return sampler(_Sampler_descriptor(_Sampler::_Create(_D3D_interop::_Get_D3D_sampler_data_ptr(_D3D_sampler))));
4938  }
struct Concurrency::details::_Sampler_descriptor _Sampler_descriptor
template<typename _Value_type , int _Rank>
texture< _Value_type, _Rank > Concurrency::graphics::direct3d::make_texture ( const Concurrency::accelerator_view _Av,
_In_ IUnknown *  _D3D_texture,
DXGI_FORMAT  _View_format 
)

Create an texture from a D3D texture interface pointer, optionally using the specified DXGI format for all views on this texture.

Parameters
_RankThe rank of the texture to be created from the D3D texture.
_Value_typeThe type of the elements of the texture to be created from the D3D texture.
_AvA D3D accelerator view on which the texture is to be created.
_D3D_textureIUnknown interface pointer of the D3D texture to create the texture from.
_View_formatThe 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.
Returns
A texture using the provided D3D texture.
4898  {
4899  _Texture * _Tex_ptr = NULL;
4900 #pragma warning( suppress: 6326 ) // Potential comparison of a constant with another constant
4901  Concurrency::extent<_Rank> _Ext = Concurrency::graphics::details::_Make_texture<_Rank>(_Av, _D3D_texture,
4902  _Short_vector_type_traits<_Value_type>::_Format_base_type_id == _Double_type ? _Uint_type : _Short_vector_type_traits<_Value_type>::_Format_base_type_id,
4903  &_Tex_ptr, _View_format);
4904 
4905  _ASSERTE(_Tex_ptr);
4906  return texture<_Value_type, _Rank>(_Ext, _Texture_descriptor(_Tex_ptr));
4907  }
#define NULL
Definition: vcruntime.h:236
Definition: amprt.h:2152
Definition: amprt.h:293
The extent type represents an N-dimensional vector of int which specifies the bounds of an N-dimen...
Definition: amp.h:383
Definition: amprt.h:298
struct Concurrency::details::_Texture_descriptor _Texture_descriptor
uint4 Concurrency::graphics::direct3d::msad4 ( uint  _Reference,
uint2  _Source,
uint4  _Accum 
)
inline

Compares a 4-byte reference value and an 8-byte source value and accumulates a vector of 4 sums. Each sum corresponds to the masked sum of absolute differences of different byte alignments between the reference value and the source value.

Parameters
_ReferenceThe reference array of 4 bytes in one uint value
_SourceThe source array of 8 bytes in a vector of two uint values.
_AccumA vector of 4 values to be added to the masked sum of absolute differences of the different byte alignments between the reference value and the source value.
Returns
Returns a vector of 4 sums. Each sum corresponds to the masked sum of absolute differences of different byte alignments between the reference value and the source value.
4963  {
4964  uint4 _Tmp;
4965  __dp_d3d_msad4(reinterpret_cast<uint*>(&_Tmp), _Reference, _Source.x, _Source.y, _Accum.x, _Accum.y, _Accum.z, _Accum.w);
4966  return _Tmp;
4967  }
void __dp_d3d_msad4(_Out_ unsigned int *, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) __GPU_ONLY
graphics::uint_4 uint4
Definition: amp_short_vectors.h:23810