storeAligned¶
Description¶
Store a value to a pointer with a known alignment. Aligned stores are more efficient than unaligned stores on some platforms.
Signature¶
void storeAligned<int alignment, T>( Ptr<T, Access.ReadWrite, AddressSpace.Device> ptr, T value);
Generic Parameters¶
alignment : int¶
The alignment of the store operation.
T¶
Parameters¶
ptr : Ptr<T, Access.ReadWrite, AddressSpace.Device>¶
The pointer to store value to.
value : T¶
The value to store.
Remarks¶
When targeting SPIRV, this function maps to an OpStore instruction with the Aligned memory operand. The functions maps to normal store operation on other targets.