다음을 통해 공유


texture 클래스

텍스처는 익스텐트 accelerator_view do기본 데이터 집계입니다. 변수 컬렉션으로, 익스텐트에서 각 요소에 대해 하나씩 기본. 각 변수는 C++ 기본 형식(unsigned int, , int, doublefloat), 스칼라 형식(norm또는) 또는 unorm짧은 벡터 형식에 해당하는 값을 보유합니다.

구문

template <typename value_type,  int _Rank>
class texture;

매개 변수

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

_Rank
텍스처의 순위입니다.

멤버

공용 Typedefs

이름 설명
scalar_type 스칼라 형식입니다.
value_type 값 형식입니다.

공용 생성자

속성 설명
텍스처 생성자 texture 클래스의 새 인스턴스를 초기화합니다.
~texture 소멸자 개체를 texture 삭제합니다.

공용 메서드

이름 설명
copy_to texture 딥 카피를 수행하여 개체를 대상에 복사합니다.
data 이 텍스처의 원시 데이터에 대한 CPU 포인터를 반환합니다.
get 지정된 인덱스에서 요소의 값을 반환합니다.
get_associated_accelerator_view 복사할 이 텍스처의 기본 대상인 accelerator_view 반환합니다.
get_depth_pitch CPU의 3D 스테이징 텍스처에서 각 깊이 조각 사이의 바이트 수를 반환합니다.
get_row_pitch CPU의 2D 또는 3D 스테이징 텍스처에서 각 행 사이의 바이트 수를 반환합니다.
set 지정된 인덱스에서 요소의 값을 설정합니다.

Public 연산자

이름 설명
operator() 매개 변수로 지정된 요소 값을 반환합니다.
operator[] 지정된 인덱스에있는 요소를 반환합니다.
operator= 지정된 질감 개체를 이 개체에 복사합니다.

공용 상수

이름 설명
rank 상수 개체의 순위를 가져옵니다 texture .

공용 데이터 멤버

이름 설명
associated_accelerator_view 복사할 이 텍스처의 기본 대상인 accelerator_view 가져옵니다.
depth_pitch CPU의 3D 스테이징 텍스처에서 각 깊이 조각 사이의 바이트 수를 가져옵니다.
row_pitch CPU의 2D 또는 3D 스테이징 텍스처에서 각 행 사이의 바이트 수를 가져옵니다.

상속 계층 구조

_Texture_base

texture

요구 사항

헤더: amp_graphics.h

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

~텍스처

개체를 texture 삭제합니다.

~texture() restrict(cpu);

associated_accelerator_view

복사할 이 텍스처의 기본 대상인 accelerator_view 가져옵니다.

__declspec(property(get= get_associated_accelerator_view)) Concurrency::accelerator_view associated_accelerator_view;

copy_to

texture 딥 카피를 수행하여 개체를 대상에 복사합니다.

void copy_to(texture& _Dest) const;
void copy_to(writeonly_texture_view<value_type, _Rank>& _Dest) const;

매개 변수

_Dest
복사할 개체입니다.

_Rank
텍스처의 순위입니다.

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

데이터

이 텍스처의 원시 데이터에 대한 CPU 포인터를 반환합니다.

void* data() restrict(cpu);

const void* data() const restrict(cpu);

Return Value

텍스처의 원시 데이터에 대한 포인터입니다.

depth_pitch

CPU의 3D 스테이징 텍스처에서 각 깊이 조각 사이의 바이트 수를 가져옵니다.

__declspec(property(get= get_depth_pitch)) unsigned int depth_pitch;

get

지정된 인덱스에서 요소의 값을 반환합니다.

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

매개 변수

_Index
요소의 인덱스입니다.

Return Value

지정된 인덱스에 있는 요소의 값입니다.

get_associated_accelerator_view

복사할 이 텍스처의 기본 대상인 accelerator_view 반환합니다.

Concurrency::accelerator_view get_associated_accelerator_view() const restrict(cpu);

Return Value

이 텍스처를 복사할 기본 대상인 accelerator_view.

get_depth_pitch

CPU의 3D 스테이징 텍스처에서 각 깊이 조각 사이의 바이트 수를 반환합니다.

unsigned int get_depth_pitch() const restrict(cpu);

Return Value

CPU의 3D 스테이징 텍스처에서 각 깊이 조각 사이의 바이트 수입니다.

get_row_pitch

2차원 스테이징 텍스처의 각 행 간 또는 3차원 스테이징 텍스처의 깊이 조각의 각 행 사이의 바이트 수를 반환합니다.

unsigned int get_row_pitch() const restrict(cpu);

Return Value

2차원 스테이징 텍스처의 각 행 간 또는 3차원 스테이징 텍스처의 깊이 조각의 각 행 사이의 바이트 수입니다.

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);

매개 변수

_Index
인덱스입니다.

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

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

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

_Rank
인덱스의 순위입니다.

Return Value

매개 변수로 지정된 요소 값입니다.

operator[]

지정된 인덱스에있는 요소를 반환합니다.

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

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

매개 변수

_Index
인덱스입니다.

_I0
인덱스입니다.

Return Value

지정된 인덱스에있는 요소입니다.

operator=

지정된 질감 개체를 이 개체에 복사합니다.

texture& operator= (
    const texture& _Other);

texture& operator= (
    texture<value_type, _Rank>&& _Other);

매개 변수

_Other
texture 복사할 개체입니다.

Return Value

texture 개체에 대한 참조입니다.

rank

개체의 순위를 가져옵니다 texture .

static const int rank = _Rank;

row_pitch

CPU의 2D 또는 3D 스테이징 텍스처에서 각 행 사이의 바이트 수를 가져옵니다.

__declspec(property(get= get_row_pitch)) unsigned int row_pitch;

set

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

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

매개 변수

_Index
요소의 인덱스입니다.

_Rank
인덱스의 순위입니다.

value
요소의 새 값입니다.

texture

texture 클래스의 새 인스턴스를 초기화합니다.

texture(const Concurrency::extent<_Rank>& _Ext) restrict(cpu);

texture(int _E0) restrict(cpu);

texture(int _E0, int _E1) restrict(cpu);

texture(int _E0, int _E1, int _E2) restrict(cpu);

texture(
    const Concurrency::extent<_Rank>& _Ext,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    int _E1,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    int _E1,
    int _E2,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

template<typename _Input_iterator>
texture(
    const Concurrency::extent<_Rank>& _Ext,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0, _Input_iterator _Src_first, _Input_iterator _Src_last) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0,
    int _E1,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0,
    int _E1,
    int _E2,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last) restrict(cpu);

template<typename _Input_iterator>
texture(
    const Concurrency::extent<_Rank>& _Ext,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0,
    int _E1,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

template<typename _Input_iterator>
texture(
    int _E0,
    int _E1,
    int _E2,
    _Input_iterator _Src_first,
    _Input_iterator _Src_last,
    const Concurrency::accelerator_view& _Av) restrict(cpu))  ;

texture(
    int _E0,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    int _E0,
    int _E1,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    int _E0,
    int _E1,
    int _E2,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    const Concurrency::extent<_Rank>& _Ext,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av)  ;

texture(
    int _E0,
    int _E1,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    int _E1,
    int _E2,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    const Concurrency::extent<_Rank>& _Ext,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    int _E0,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    int _E0,
    int _E1,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    int _E0,
    int _E1,
    int _E2,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element) restrict(cpu);

texture(
    const Concurrency::extent<_Rank>& _Ext,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av)  ;

texture(
    int _E0,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    int _E1,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    int _E0,
    int _E1,
    int _E2,
    _In_ void* _Source,
    unsigned int _Src_byte_size,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av) restrict(cpu);

texture(
    const texture& _Src,
    const Concurrency::accelerator_view& _Acc_view);

texture(
    texture&& _Other);

texture(
    const Concurrency::extent<_Rank>& _Ext,
    unsigned int _Bits_per_scalar_element,
    const Concurrency::accelerator_view& _Av);

texture(
    const texture& _Src);

매개 변수

_Acc_view
텍스처의 위치를 지정하는 accelerator_view.

_Av
텍스처의 위치를 지정하는 accelerator_view.

_Associated_av
이 텍스처에서 복사할 기본 대상을 지정하는 accelerator_view.

_Bits_per_scalar_element
텍스처의 기본 스칼라 형식에 있는 각 스칼라 요소당 비트 수입니다. 일반적으로 지원되는 값은 8, 16, 32 및 64입니다. 0을 지정하면 비트 수가 기본 scalar_type 동일합니다. 64는 이중 기반 텍스처에만 유효합니다.

_내선
텍스처의 각 차원에 있는 익스텐트입니다.

_E0
텍스처의 가장 중요한 구성 요소입니다.

_E1
텍스처의 가장 중요한 다음 구성 요소입니다.

_E2
텍스처 범위의 가장 중요한 구성 요소입니다.

_Input_iterator
입력 반복기의 형식입니다.

_Mipmap_levels
기본 텍스처의 Mipmap 수준 수입니다. 0을 지정하면 텍스처의 전체 Mipmap 수준 범위가 지정된 익스텐트에서 가능한 가장 작은 크기로 내려옵니다.

_Rank
범위의 순위입니다.

_소스
호스트 버퍼에 대한 포인터입니다.

_Src
복사할 질감입니다.

_Src_byte_size
원본 버퍼의 바이트 수입니다.

_Src_first
원본 컨테이너에 대한 시작 반복기입니다.

_Src_last
원본 컨테이너로의 끝 반복기입니다.

_Other
기타 데이터 원본입니다.

_Rank
섹션의 순위입니다.

참고 항목

Concurrency::graphics 네임스페이스