Class image3d Boost , Chapter 1. Boost.Compute , Reference
Class image3d
boost::compute::image3d — An OpenCL 3D image object.
Synopsis
class image3d : public boost :: compute :: image_object {
public :
image3d ( ) ;
image3d ( const context & , size_t , size_t , size_t , const image_format & ,
cl_mem_flags = read_write , void * = 0 , size_t = 0 , size_t = 0 ) ;
image3d ( const image3d & ) ;
image3d ( image3d && ) noexcept ;
image3d & operator = ( const image3d & ) ;
image3d & operator = ( image3d && ) noexcept ;
~ image3d ( ) ;
extents < 3 > size ( ) const ;
extents < 3 > origin ( ) const ;
template < typename T> T get_info ( cl_image_info ) const ;
template < int Enum> unspecified get_info ( ) const ;
image3d clone ( command_queue & ) const ;
static std :: vector < image_format >
get_supported_formats ( const context & , cl_mem_flags = read_write ) ;
static bool is_supported_format ( const image_format & , const context & ,
cl_mem_flags = read_write ) ;
} ; Description Смотрите также:
Изображение_формат ,Изображение2d
image3d
public
construct/copy/destruct<image3d ( ) ; >Создает нулевой<image3d
>объект. <image3d ( const context & context, size_t image_width, size_t image_height,
size_t image_depth, const image_format & format,
cl_mem_flags flags= read_write , void * host_ptr= 0 ,
size_t image_row_pitch= 0 , size_t image_slice_pitch= 0 ) ; >Создает новый<image3d
>объект.
Более подробную информацию см. в документацииclCreateImage() .
<image3d ( const image3d & other) ; >Создает новое<image3d
>как копию<other
>. <image3d ( image3d && other) noexcept ; >Move-конструирует новый объект изображения<other
>. <image3d & operator = ( const image3d & other) ; >Копии<image3d
>из<other
>. <image3d & operator = ( image3d && other) noexcept ; >Перенос изображения с<other
>на<*this
>. <~ image3d ( ) ; >Уничтожает<image3d
>объект. image3d
public member functions<extents < 3 > size ( ) const ; >Возвращает размер (ширину, высоту, глубину) изображения. <extents < 3 > origin ( ) const ; >Возвращает происхождение изображения<0
>,<0
>,<0
>. <template < typename T> T get_info ( cl_image_info info) const ; >Возвращает информацию об изображении.
Более подробную информацию см. в документацииclGetImageInfo() .
<template < int Enum> unspecified get_info ( ) const ; >Это перегруженная функция члена, предусмотренная для удобства. Он отличается от вышеуказанной функции только тем, какие аргументы он принимает.
<image3d clone ( command_queue & queue) const ; >Создает новое изображение с копией данных в<*this
>. Использует<queue
>для выполнения операции копирования.
image3d
public static functions<static std :: vector < image_format >
get_supported_formats ( const context & context,
cl_mem_flags flags= read_write ) ; >Возвращает поддерживаемые форматы 3D-изображений для контекста.
См. документацию дляclGetSupportedImageFormats() для получения дополнительной информации.
<static bool is_supported_format ( const image_format & format,
const context & context,
cl_mem_flags flags= read_write ) ; >Возвращается<true
>, если<format
>является поддерживаемым форматом 3D-изображения<context
>
. Статья Class image3d раздела Chapter 1. Boost.Compute Reference может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.
:: Главная :: Reference ::