STLdoc
STLdocumentation
|
A sampler class aggregates sampling configuration information to be used for texture sampling. More...
#include <amp_graphics.h>
Public Member Functions | |
sampler () __CPU_ONLY | |
Constructs a sampler with default filter mode (filter_lienar, same for min, mag, mip), addressing mode (address_clamp, same for all dimensions), and border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)). More... | |
sampler (filter_mode _Filter_mode) __CPU_ONLY | |
Constructs a sampler with specified filter mode (same for min, mag, mip), but with default addressing mode (address_clamp, same for all dimensions) and border color ( float_4(0.0f, 0.0f, 0.0f, 0.0f)). More... | |
sampler (address_mode _Address_mode, float_4 _Border_color=float_4(0.0f, 0.0f, 0.0f, 0.0f)) __CPU_ONLY | |
Constructs a sampler with default filter mode (filter_linear, same for min, mag, mip), but specified addressing mode (same for all dimensions) and border color. More... | |
sampler (filter_mode _Filter_mode, address_mode _Address_mode, float_4 _Border_color=float_4(0.0f, 0.0f, 0.0f, 0.0f)) __CPU_ONLY | |
Constructs a sampler with specified filter mode (same for min, mag, mip), addressing mode (same for all dimensions) and the border color. More... | |
sampler (const sampler &_Other) __GPU | |
Copy constructor. More... | |
sampler (sampler &&_Other) __GPU | |
Move constructor. More... | |
sampler & | operator= (const sampler &_Other) __GPU |
Assignment operator. More... | |
sampler & | operator= (sampler &&_Other) __GPU |
Move assignment operator. More... | |
__declspec(property(get=get_filter_mode)) Concurrency Concurrency::graphics::filter_mode | get_filter_mode () const __GPU |
Returns the sampler's filter mode More... | |
__declspec(property(get=get_address_mode)) Concurrency Concurrency::graphics::address_mode | get_address_mode () const __GPU |
Returns the sampler's address mode More... | |
__declspec(property(get=get_border_color)) Concurrency Concurrency::graphics::float_4 | get_border_color () const __GPU |
Returns the sampler's border value More... | |
Private Types | |
typedef Concurrency::details::_Sampler_descriptor | _Sampler_descriptor |
Private Member Functions | |
sampler (const _Sampler_descriptor &_Descriptor) __CPU_ONLY | |
_Ret_ _Sampler * | _Get_sampler_ptr () const __CPU_ONLY |
void | _Initialize () __CPU_ONLY |
const _Sampler_descriptor & | _Get_descriptor () const __GPU_ONLY |
Private Attributes | |
_Sampler_descriptor | _M_sampler_descriptor |
Concurrency::graphics::filter_mode | _M_filter_mode |
Concurrency::graphics::address_mode | _M_address_mode |
float_4 | _M_border_color |
Friends | |
template<typename _Value_type , int _Rank> | |
class | texture_view |
sampler | direct3d::make_sampler (_In_ IUnknown *_D3D_sampler) __CPU_ONLY |
_Ret_ IUnknown * | direct3d::get_sampler (const Concurrency::accelerator_view &_Av, const sampler &_Sampler) __CPU_ONLY |
A sampler class aggregates sampling configuration information to be used for texture sampling.
|
private |
|
inline |
Constructs a sampler with default filter mode (filter_lienar, same for min, mag, mip), addressing mode (address_clamp, same for all dimensions), and border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)).
|
inline |
Constructs a sampler with specified filter mode (same for min, mag, mip), but with default addressing mode (address_clamp, same for all dimensions) and border color ( float_4(0.0f, 0.0f, 0.0f, 0.0f)).
_Filter_mode | The filter mode to be used in sampling. |
|
inline |
Constructs a sampler with default filter mode (filter_linear, same for min, mag, mip), but specified addressing mode (same for all dimensions) and border color.
_Address_mode | The addressing mode to be used in sampling for all dimensions. |
_Border_color | The border color to be used if address mode is address_border. If not specified, default value is float_4(0.f, 0.f, 0.f, 0.f). |
|
inline |
Constructs a sampler with specified filter mode (same for min, mag, mip), addressing mode (same for all dimensions) and the border color.
_Filter_mode | The filter mode to be used in sampling. |
_Address_mode | The addressing mode to be used in sampling for all dimensions. |
_Border_color | The border color to be used if address mode is address_border. If not specified, default value is float_4(0.f, 0.f, 0.f, 0.f). |
|
inline |
Copy constructor.
_Other | An object of type sampler from which to initialize this new sampler. |
|
inline |
Move constructor.
_Other | The sampler to move from. |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
inline |
Returns the sampler's address mode
|
inline |
Returns the sampler's border value
|
inline |
Returns the sampler's filter mode
Assignment operator.
_Other | An object of type sampler from which to copy into this sampler. |
Move assignment operator.
_Other | An object of type sampler to move from. |
|
friend |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |