DPC++ Runtime
Runtime libraries for oneAPI DPC++
sycl::_V1::ext::oneapi::experimental::image_descriptor Struct Reference

A struct to describe the properties of an image. More...

#include <sycl/ext/oneapi/bindless_images_descriptor.hpp>

Collaboration diagram for sycl::_V1::ext::oneapi::experimental::image_descriptor:

Public Member Functions

 image_descriptor ()=default
 
 image_descriptor (range< 1 > dims, unsigned int num_channels, image_channel_type channel_type, image_type type=image_type::standard, unsigned int num_levels=1, unsigned int array_size=1)
 
 image_descriptor (range< 2 > dims, unsigned int num_channels, image_channel_type channel_type, image_type type=image_type::standard, unsigned int num_levels=1, unsigned int array_size=1)
 
 image_descriptor (range< 3 > dims, unsigned int num_channels, image_channel_type channel_type, image_type type=image_type::standard, unsigned int num_levels=1, unsigned int array_size=1)
 
image_descriptor get_mip_level_desc (unsigned int level) const
 Get the descriptor for a mipmap level. More...
 
void verify () const
 

Public Attributes

size_t width {0}
 
size_t height {0}
 
size_t depth {0}
 
unsigned int num_channels {4}
 
image_channel_type channel_type {image_channel_type::fp32}
 
image_type type {image_type::standard}
 
unsigned int num_levels {1}
 
unsigned int array_size {1}
 

Detailed Description

A struct to describe the properties of an image.

Definition at line 52 of file bindless_images_descriptor.hpp.

Constructor & Destructor Documentation

◆ image_descriptor() [1/4]

sycl::_V1::ext::oneapi::experimental::image_descriptor::image_descriptor ( )
default

◆ image_descriptor() [2/4]

sycl::_V1::ext::oneapi::experimental::image_descriptor::image_descriptor ( range< 1 >  dims,
unsigned int  num_channels,
image_channel_type  channel_type,
image_type  type = image_type::standard,
unsigned int  num_levels = 1,
unsigned int  array_size = 1 
)
inline

Definition at line 64 of file bindless_images_descriptor.hpp.

References verify().

◆ image_descriptor() [3/4]

sycl::_V1::ext::oneapi::experimental::image_descriptor::image_descriptor ( range< 2 >  dims,
unsigned int  num_channels,
image_channel_type  channel_type,
image_type  type = image_type::standard,
unsigned int  num_levels = 1,
unsigned int  array_size = 1 
)
inline

Definition at line 74 of file bindless_images_descriptor.hpp.

References verify().

◆ image_descriptor() [4/4]

sycl::_V1::ext::oneapi::experimental::image_descriptor::image_descriptor ( range< 3 >  dims,
unsigned int  num_channels,
image_channel_type  channel_type,
image_type  type = image_type::standard,
unsigned int  num_levels = 1,
unsigned int  array_size = 1 
)
inline

Definition at line 84 of file bindless_images_descriptor.hpp.

References verify().

Member Function Documentation

◆ get_mip_level_desc()

image_descriptor sycl::_V1::ext::oneapi::experimental::image_descriptor::get_mip_level_desc ( unsigned int  level) const
inline

Get the descriptor for a mipmap level.

Definition at line 95 of file bindless_images_descriptor.hpp.

References channel_type, depth, height, sycl::_V1::ext::oneapi::experimental::mipmap, num_channels, type, verify(), and width.

◆ verify()

Member Data Documentation

◆ array_size

unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::array_size {1}

◆ channel_type

◆ depth

size_t sycl::_V1::ext::oneapi::experimental::image_descriptor::depth {0}

◆ height

◆ num_channels

unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::num_channels {4}

◆ num_levels

unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::num_levels {1}

◆ type

◆ width


The documentation for this struct was generated from the following file: