Skip to content

Commit

Permalink
Merge pull request #585 from gmlueck/gmlueck/swizzle-no-repeat
Browse files Browse the repository at this point in the history
Disallow repeated swizzle element in assignment
  • Loading branch information
tomdeakin authored Jul 25, 2024
2 parents 4c32bc3 + d944724 commit 0bba4db
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions adoc/chapters/programming_interface.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -17979,6 +17979,9 @@ void load(size_t offset, multi_ptr<const DataT, AddressSpace, IsDecorated> ptr)
|====
_Availability:_ Available only in [code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.

_Effects:_ Loads values from memory into elements of the underlying [code]#vec#
object.
A total of [code]#NumElements# values are loaded from memory, starting at the
Expand Down Expand Up @@ -18194,9 +18197,12 @@ Where [code]#OP# is: [code]#pass:[+=]#, [code]#-=#, [code]#*=#, [code]#/=#,
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ If [code]#OP# is one of the following: [code]#%=#, [code]#&=#,
[code]#|=#, [code]#^=#, [code]#+<<=+#, [code]#>>=#; available only when:
[code]#DataT != float && DataT != double && DataT != half#.
_Constraints:_ Available only when the left hand side
[code]#+__writeable_swizzle__+# view does not contain any repeated elements.

If [code]#OP# is one of the following: [code]#%=#, [code]#&=#, [code]#|=#,
[code]#^=#, [code]#+<<=+#, [code]#>>=#; available only when: [code]#DataT !=
float && DataT != double && DataT != half#.

In addition, overloads (1) and (2) are available only when the element data type
of [code]#lhs# is the same as the element data type of [code]#rhs# and when the
Expand Down Expand Up @@ -18237,7 +18243,9 @@ Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when [code]#DataT# is not [code]#bool#.
_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.
Available only when [code]#DataT# is not [code]#bool#.

_Effects:_ Perform an in-place element-wise [code]#OP# prefix arithmetic
operation on those elements of the [code]#vec# object that have corresponding
Expand All @@ -18262,7 +18270,9 @@ Where [code]#OP# is: [code]#pass:[++]#, [code]#--#.
_Availability:_ These are hidden friend functions only in
[code]#+__writeable_swizzle__+#.

_Constraints:_ Available only when [code]#DataT# is not [code]#bool#.
_Constraints:_ Available only when the [code]#+__writeable_swizzle__+# view does
not contain any repeated elements.
Available only when [code]#DataT# is not [code]#bool#.

_Effects:_ Perform an in-place element-wise [code]#OP# postfix arithmetic
operation on those elements of the [code]#vec# object that have corresponding
Expand Down

0 comments on commit 0bba4db

Please sign in to comment.