다음을 통해 공유


texture_view 클래스

텍스처에 대한 읽기 액세스 및 쓰기 액세스를 제공합니다. texture_view는 값 형식이 있거나 기본 32비트 bpse가 있는 텍스처를 읽는 intunsigned intfloat 데만 사용할 수 있습니다. 다른 질감 형식을 읽으려면 .를 사용합니다 texture_view<const value_type, _Rank>.

구문

template<typename value_type,int _Rank>
class texture_view;

template<typename value_type, int _Rank>
class texture_view
   : public details::_Texture_base<value_type, _Rank>;

template<typename value_type, int _Rank>
class texture_view<const value_type, _Rank>
   : public details::_Texture_base<value_type, _Rank>;

매개 변수

value_type
텍스처 집계에 있는 요소의 형식입니다.

_Rank
의 순위입니다 texture_view.

멤버

공용 Typedefs

이름 설명
value_type 텍스처 집계에 있는 요소의 형식입니다.
coordinates_type 텍셀 texture_view을 지정하는 데 사용되는 좌표의 형식입니다. 즉, short_vector 값 형식 float이 있는 연결된 텍스처와 순위가 같은 형식입니다.
gather_return_type 수집 작업에 사용되는 반환 형식입니다. 즉, 샘플링된 4 short_vector 개의 텍셀 값에서 수집된 4개의 같은 색 구성 요소를 포함하는 순위 4입니다.

공용 생성자

속성 설명
texture_view 생성자 오버로드됨. 인스턴스를 texture_view 생성합니다.
~texture_view 소멸자 인스턴스를 texture_view 삭제합니다.

공용 메서드

이름 설명
gather_alpha 오버로드됨. 지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 텍셀 4개의 알파(w) 구성 요소를 반환합니다.
gather_blue 오버로드됨. 지정된 샘플링 구성을 사용하여 지정된 좌표에서 질감을 샘플링하고 샘플링된 텍셀 4개의 파란색(z) 구성 요소를 반환합니다.
gather_green 오버로드됨. 지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 4개의 텍셀의 녹색(y) 구성 요소를 반환합니다.
gather_red 오버로드됨. 지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 4개의 텍셀의 빨간색(x) 구성 요소를 반환합니다.
get 오버로드됨. 인덱스별로 요소 값을 가져옵니다.
sample 오버로드됨. 지정된 샘플링 구성을 사용하여 지정된 좌표 및 세부 수준의 텍스처를 샘플링합니다.
set 인덱스별로 요소의 값을 설정합니다.

Public 연산자

이름 설명
operator() 오버로드됨. 인덱스별로 요소 값을 가져옵니다.
operator[] 오버로드됨. 인덱스별로 요소 값을 가져옵니다.
operator= 오버로드됨. 대입 연산자입니다.

공용 데이터 멤버

이름 설명
value_type 요소의 값 형식입니다 texture_view.

상속 계층 구조

_Texture_base

texture_view

요구 사항

헤더: amp_graphics.h

네임스페이스: 동시성::그래픽

~texture_view

인스턴스를 texture_view 삭제합니다.

~texture_view() restrict(amp, cpu);

texture_view

인스턴스를 texture_view 생성합니다.

texture_view(// [1] constructor
    texture<value_type, _Rank>& _Src) restrict(amp);

texture_view(// [2] constructor
    texture<value_type, _Rank>& _Src,
    unsigned int _Mipmap_level = 0) restrict(cpu);

texture_view(// [3] constructor
    const texture<value_type, _Rank>& _Src) restrict(amp);

texture_view(// [4] constructor
    const texture<value_type, _Rank>& _Src,
    unsigned int _Most_detailed_mip,
    unsigned int _Mip_levels) restrict(cpu);

texture_view(// [5] copy constructor
    const texture_view<value_type, _Rank>& _Other) restrict(amp, cpu);

texture_view(// [6] copy constructor
    const texture_view<const value_type, _Rank>& _Other) restrict(amp, cpu);

texture_view(// [7] copy constructor
    const texture_view<const value_type, _Rank>& _Other,
    unsigned int _Most_detailed_mip,
    unsigned int _Mip_levels) restrict(cpu);

매개 변수

_Src
[1, 2] 생성자 texture 쓰기 가능 texture_view 개체가 만들어지는 값입니다.

[3, 4] 생성자 texture 쓰기 불가능 texture_view 이 만들어지는 값입니다.

_Other
[5] 복사 생성자 소스 쓰기 가능 texture_view.

[6, 7] 복사 생성자 작성할 수 없는 texture_view원본입니다.

_Mipmap_level
이 쓰기 가능 texture_view 개체가 바인딩하는 원본 texture 의 특정 Mipmap 수준입니다. 기본값은 최상위 수준(가장 자세한) 밉 수준을 나타내는 0입니다.

_Most_detailed_mip
지정된 texture_view 개체를 기준으로 뷰의 최상위 수준(가장 자세한) 밉 수준입니다.

_Mip_levels
를 통해 texture_view액세스할 수 있는 Mipmap 수준 수입니다.

gather_red

지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 4개의 텍셀의 빨간색(x) 구성 요소를 반환합니다.

const gather_return_type gather_red(
    const sampler& _Sampler,
    const coordinates_type& _Coord) const restrict(amp);

template<
    address_mode _Address_mode = address_clamp
>
const gather_return_type gather_red(
    const coordinates_type& _Coord) const restrict(amp);

매개 변수

_Address_mode
를 샘플링하는 데 사용할 주소 모드입니다 texture_view. 주소 모드는 모든 차원에 대해 동일합니다.

_샘플러
를 샘플링하는 데 사용할 샘플러 구성입니다 texture_view.

_Coord
샘플을 사용할 좌표입니다. 소수점 좌표 값은 샘플 텍셀 간에 보간하는 데 사용됩니다.

Return Value

샘플링된 4개의 텍셀 값의 빨간색(x) 구성 요소를 포함하는 순위 4 짧은 벡터입니다.

gather_green

지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 4개의 텍셀의 녹색(y) 구성 요소를 반환합니다.

const gather_return_type gather_green(
    const sampler& _Sampler,
    const coordinates_type& _Coord) const restrict(amp);

template<
    address_mode _Address_mode = address_clamp
>
const gather_return_type gather_green(
    const coordinates_type& _Coord) const restrict(amp);

매개 변수

_Address_mode
를 샘플링하는 데 사용할 주소 모드입니다 texture_view. 주소 모드는 모든 차원에 대해 동일합니다.

_샘플러
를 샘플링하는 데 사용할 샘플러 구성입니다 texture_view.

_Coord
샘플을 사용할 좌표입니다. 소수점 좌표 값은 샘플 텍셀 간에 보간하는 데 사용됩니다.

Return Value

샘플링된 4개의 텍셀 값의 녹색(y) 구성 요소를 포함하는 순위 4 짧은 벡터입니다.

gather_blue

지정된 샘플링 구성을 사용하여 지정된 좌표에서 질감을 샘플링하고 샘플링된 텍셀 4개의 파란색(z) 구성 요소를 반환합니다.

const gather_return_type gather_blue(
    const sampler& _Sampler,
    const coordinates_type& _Coord) const restrict(amp);

template<
    address_mode _Address_mode = address_clamp
>
const gather_return_type gather_blue(
    const coordinates_type& _Coord) const restrict(amp);

매개 변수

_Address_mode
를 샘플링하는 데 사용할 주소 모드입니다 texture_view. 주소 모드는 모든 차원에 대해 동일합니다.

_샘플러
를 샘플링하는 데 사용할 샘플러 구성입니다 texture_view.

_Coord
샘플을 사용할 좌표입니다. 소수점 좌표 값은 샘플 텍셀 간에 보간하는 데 사용됩니다.

Return Value

샘플링된 4개의 텍셀 값의 빨간색(x) 구성 요소를 포함하는 순위 4 짧은 벡터입니다.

gather_alpha

지정된 샘플링 구성을 사용하여 지정된 좌표에서 텍스처를 샘플링하고 샘플링된 텍셀 4개의 알파(w) 구성 요소를 반환합니다.

const gather_return_type gather_alpha(
    const sampler& _Sampler,
    const coordinates_type& _Coord) const restrict(amp);

template<
    address_mode _Address_mode = address_clamp
>
const gather_return_type gather_alpha(
    const coordinates_type& _Coord) const restrict(amp);

매개 변수

_Address_mode
를 샘플링하는 데 사용할 주소 모드입니다 texture_view. 주소 모드는 모든 차원에 대해 동일합니다.

_샘플러
를 샘플링하는 데 사용할 샘플러 구성입니다 texture_view.

_Coord
샘플을 사용할 좌표입니다. 소수점 좌표 값은 샘플 텍셀 간에 보간하는 데 사용됩니다.

Return Value

샘플링된 4개의 텍셀 값의 알파(w) 구성 요소를 포함하는 순위 4 짧은 벡터입니다.

get

지정된 인덱스에서 요소의 값을 가져옵니다.

const value_type get(
    const index<_Rank>& _Index) const restrict(amp);

value_type get(
    const index<_Rank>& _Index,
    unsigned int _Mip_level = 0) const restrict(amp);

매개 변수

_Index
가져올 요소의 인덱스(다차원일 수 있음)입니다.

_Mip_level
값을 가져와야 하는 Mipmap 수준입니다. 기본값 0은 가장 자세한 Mipmap 수준을 나타냅니다.

Return Value

요소의 값입니다.

operator=

texture_view 인스턴스에 지정된 texture_view 것과 동일한 질감의 뷰를 할당합니다.

texture_view<value_type, _Rank>& operator= (// [1] copy constructor
    const texture_view<value_type, _Rank>& _Other) restrict(amp, cpu);

texture_view<const value_type, _Rank>& operator= (// [2] copy constructor
    const texture_view<value_type, _Rank>& _Other) restrict(cpu);

texture_view<const value_type, _Rank>& operator= (// [3] copy constructor
    const texture_view<const value_type, _Rank>& _Other) restrict(amp, cpu);

매개 변수

_Other
[1, 2] 복사 생성자 쓰기 가능한 texture_view 개체입니다.

[3] 생성자를 복사할 수 없는 texture_view 개체입니다.

Return Value

texture_view 인스턴스에 대한 참조입니다.

operator[]

인덱스별로 요소 값을 반환합니다.

const value_type operator[] (const index<_Rank>& _Index) const restrict(amp);

const value_type operator[] (int _I0) const restrict(amp);

value_type operator[] (const index<_Rank>& _Index) const restrict(amp);

value_type operator[] (int _I0) const restrict(amp);

매개 변수

_Index
인덱스(다차원일 수 있음)입니다.

_I0
1차원 인덱스입니다.

Return Value

에 의해 _Index인덱싱된 요소 값입니다.

operator()

인덱스별로 요소 값을 반환합니다.

const value_type operator() (
    const index<_Rank>& _Index) const restrict(amp);

const value_type operator() (
    int _I0) const restrict(amp);

const value_type operator() (
    int _I0,   int _I1) const restrict(amp);

const value_type operator() (
    int _I0,
    int _I1,
    int _I2) const restrict(amp);

value_type operator() (
    const index<_Rank>& _Index) const restrict(amp);

value_type operator() (
    int _I0) const restrict(amp);

value_type operator() (
    int _I0,
    int _I1) const restrict(amp);

value_type operator() (
    int _I0,
    int _I1,
    int _I2) const restrict(amp);

매개 변수

_Index
인덱스(다차원일 수 있음)입니다.

_I0
인덱스의 가장 중요한 구성 요소입니다.

_I1
인덱스의 다음으로 중요한 구성 요소입니다.

_I2
인덱스의 가장 중요한 구성 요소입니다.

Return Value

에 의해 _Index인덱싱된 요소 값입니다.

sample

지정된 샘플링 구성을 사용하여 지정된 좌표 및 세부 수준의 텍스처를 샘플링합니다.

value_type sample(
    const sampler& _Sampler,
    const coordinates_type& _Coord,
    float _Level_of_detail = 0.0f) const restrict(amp);

template<
    filter_mode _Filter_mode = filter_linear,
    address_mode _Address_mode = address_clamp
>
value_type sample(
    const coordinates_type& _Coord,
    float _Level_of_detail = 0.0f) const restrict(amp);

매개 변수

_Filter_mode
texture_view 샘플링하는 데 사용할 필터 모드입니다. 필터 모드는 최소화, 최대화 및 mipmap 필터에 대해 동일합니다.

_Address_mode
texture_view 샘플링하는 데 사용할 주소 모드입니다. 주소 모드는 모든 차원에 대해 동일합니다.

_샘플러
texture_view 샘플링하는 데 사용할 샘플러 구성입니다.

_Coord
샘플을 사용할 좌표입니다. 소수점 좌표 값은 텍셀 값 사이를 보간하는 데 사용됩니다.

_Level_of_detail
이 값은 샘플링할 Mipmap 수준을 지정합니다. 분수 값은 두 Mipmap 수준 사이에서 보간하는 데 사용됩니다. 기본 세부 수준은 0으로, 가장 자세한 밉 수준을 나타냅니다.

Return Value

보간된 샘플 값입니다.

set

지정된 인덱스의 요소 값을 지정된 값으로 설정합니다.

void set(
    const index<_Rank>& _Index,
    const value_type& value) const restrict(amp);

매개 변수

_Index
설정할 요소의 인덱스(다차원일 수 있음)입니다.

value
요소를 설정할 값입니다.

value_type

texture_view 요소의 값 형식입니다.

typedef typename const value_type value_type;

참고 항목

Concurrency::graphics 네임스페이스