A struct to describe the properties of an image. More...
#include <sycl/ext/oneapi/bindless_images_descriptor.hpp>
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} |
A struct to describe the properties of an image.
Definition at line 52 of file bindless_images_descriptor.hpp.
|
default |
|
inline |
Definition at line 64 of file bindless_images_descriptor.hpp.
References verify().
|
inline |
Definition at line 74 of file bindless_images_descriptor.hpp.
References verify().
|
inline |
Definition at line 84 of file bindless_images_descriptor.hpp.
References verify().
|
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.
|
inline |
Definition at line 122 of file bindless_images_descriptor.hpp.
References sycl::_V1::ext::oneapi::experimental::array, array_size, sycl::_V1::ext::oneapi::experimental::cubemap, depth, height, sycl::_V1::ext::oneapi::experimental::mipmap, num_channels, num_levels, sycl::_V1::ext::oneapi::experimental::standard, type, and width.
Referenced by sycl::_V1::ext::oneapi::experimental::alloc_image_mem(), sycl::_V1::ext::oneapi::experimental::create_image(), sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), image_descriptor(), and sycl::_V1::ext::oneapi::experimental::map_external_image_memory().
unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::array_size {1} |
Definition at line 60 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
image_channel_type sycl::_V1::ext::oneapi::experimental::image_descriptor::channel_type {image_channel_type::fp32} |
Definition at line 57 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::pitched_alloc_device(), and sycl::_V1::ext::oneapi::experimental::populate_pi_structs().
size_t sycl::_V1::ext::oneapi::experimental::image_descriptor::depth {0} |
Definition at line 55 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
size_t sycl::_V1::ext::oneapi::experimental::image_descriptor::height {0} |
Definition at line 54 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::pitched_alloc_device(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::num_channels {4} |
Definition at line 56 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::pitched_alloc_device(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
unsigned int sycl::_V1::ext::oneapi::experimental::image_descriptor::num_levels {1} |
Definition at line 59 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
image_type sycl::_V1::ext::oneapi::experimental::image_descriptor::type {image_type::standard} |
Definition at line 58 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().
size_t sycl::_V1::ext::oneapi::experimental::image_descriptor::width {0} |
Definition at line 53 of file bindless_images_descriptor.hpp.
Referenced by sycl::_V1::handler::ext_oneapi_copy(), get_mip_level_desc(), sycl::_V1::ext::oneapi::experimental::pitched_alloc_device(), sycl::_V1::ext::oneapi::experimental::populate_pi_structs(), and verify().