Skip to content

Commit

Permalink
Add reference to deprecated targets for accessors
Browse files Browse the repository at this point in the history
Add a reference to target::local and target::constant_buffer for
accessors.
  • Loading branch information
hdelan committed Mar 22, 2024
1 parent 1c02843 commit b98911b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6535,8 +6535,11 @@ in <<table.accessors.command.buffer.capabilities>>.
|====

When an [code]#accessor# is used from within a <<sycl-kernel-function>>, the
access target must be [code]#target::device#, otherwise the behavior is
undefined.
access target must be [code]#target::device#, [code]#target::constant_buffer#,
or [code]#target::local#; otherwise the behavior is undefined.
See <<sec:accessor.deprecated.target.constant.buffer>> and
<<sec:accessor.deprecated.target.local>> for a description of the deprecated
[code]#target::constant_buffer# and [code]#target::local# targets.

When an [code]#accessor# is used from within a host task, the use of the
accessor must correspond to the access target, otherwise the behavior is
Expand Down Expand Up @@ -7125,6 +7128,7 @@ size_t get_count() const
|====


[[sec:accessor.deprecated.target.constant.buffer]]
====== Accessor specialization with [code]#target::constant_buffer#

The [code]#accessor# class may be specialized with target
Expand Down Expand Up @@ -7495,6 +7499,7 @@ std::add_pointer_t<value_type> get_pointer() const noexcept
|====


[[sec:accessor.deprecated.target.local]]
====== Accessor specialization with [code]#target::local#

The [code]#accessor# class may be specialized with target [code]#target::local#,
Expand Down

0 comments on commit b98911b

Please sign in to comment.