sampler::sampler Constructor
Constructs an instance of the sampler Class.
sampler() restrict(cpu); // [1] default constructor
sampler( // [2] constructor
filter_mode _Filter_mode
) restrict(cpu);
sampler( // [3] constructor
address_mode _Address_mode,
float_4 _Border_color = float_4(0.0f, 0.0f, 0.0f, 0.0f)
) restrict(cpu);
sampler( // [4] constructor
filter_mode _Filter_mode,
address_mode _Address_mode,
float_4 _Border_color = float_4(0.0f, 0.0f, 0.0f, 0.0f)
) restrict(cpu);
sampler( // [5] copy constructor
const sampler& _Other
) restrict(amp, cpu);
sampler( // [6] move constructor
sampler &&_Other
) restrict(amp, cpu);
Parameters
_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 the address mode is address_border. The default value is float_4(0.0f, 0.0f, 0.0f, 0.0f)._Other
[5] Copy Constructor
The sampler object to copy into the new sampler instance.[6] Move Constructor
The sampler object to move into the new sampler instance.
Construction
[1] Default Constructor
Constructs the sampler instance by using linear filtering, clamped addressing, and a transparent border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)).[2] Constructor
Constructs the sampler instance by using the specified filter mode, clamped addressing, and a transparent border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)).[3] Constructor
Constructs the sampler instance by using the specified address mode, linear filtering, and a transparent border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)).[4] Constructor
Constructs the sampler instance by using the specified filter mode and address mode, and a transparent border color (float_4(0.0f, 0.0f, 0.0f, 0.0f)).[5] Copy Constructor
Constructs the sampler instance by copying the specified sampler object.[6] Move Constructor
Constructs the sampler instance by moving the specified sampler object into the new instance.
Remarks
The configured filter mode applies to the minimization, maximization, and mipmap filters.
The configured address mode applies to all dimensions.
Requirements
Header: amp_graphics.h
Namespace: concurrency::graphics