ByteAddressBuffer.LoadAligned
Description
Load an element with type T from the buffer at the specified location with alignment of T.
Signature
T ByteAddressBuffer.LoadAligned<T>(int location);
Generic Parameters
T
Parameters
location : int
The input address in bytes which must be a multiply of size of T.
Return value
T value with type T loaded from the buffer.
Remarks
Currently, this function only supports when T is scalar, vector or matrix type.