Skip to content

Commit 5e2791f

Browse files
committed
Add get_allocator() to sampled_image
1 parent f99eca5 commit 5e2791f

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

adoc/chapters/programming_interface.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6741,6 +6741,13 @@ size_t byte_size() const noexcept
67416741
due to padding of elements, rows and slices of the image for
67426742
efficient access.
67436743

6744+
a@
6745+
[source]
6746+
----
6747+
AllocatorT get_allocator() const
6748+
----
6749+
a@ Returns the allocator provided to the image.
6750+
67446751
a@
67456752
[source]
67466753
----

adoc/headers/sampledImage.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ class sampled_image {
5353

5454
size_t size() const noexcept;
5555

56+
AllocatorT get_allocator() const;
57+
5658
template <typename DataT, image_target Targ = image_target::device>
5759
sampled_image_accessor<DataT, Dimensions, Targ>
5860
get_access(handler& commandGroupHandler, const property_list& propList = {});

0 commit comments

Comments
 (0)