-
Notifications
You must be signed in to change notification settings - Fork 52
Update 0026-hlsl-long-vector-type.md #736
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Update 0026-hlsl-long-vector-type.md #736
Conversation
The 2nd part is for StructuredBuffers instead of for ByteAddressBuffers.
damyanp
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StructuredBuffers don't have templated Load methods. This is for the syntax:
ByteAddressBuffer Buf;
[numthreads(1,1,1)]
void main() {
vector<float,8> V = Buf.Load<vector<float,8> >(0);
}Edit:
For context, the usage for StructuredBuffers is:
StructuredBuffer<vector<float,8> > Buf;
[numthreads(1,1,1)]
void main() {
vector<float,8> V = Buf.Load(0);
}Note that the Load method is not templated.
|
Then we can add a "non-" before "templated". It seems the whole sentence, "N-element vectors are loaded and stored from ByteAddressBuffers using the templated load and store methods with" (twice at the moment), was just copied from the section for ByteAddressBuffer and pasted without modifying every places for StructuredBuffers. |
StructuredBuffers uses the non-templated load and store methods.
Adding "subscript operators". Co-authored-by: Chris B <[email protected]>
The 2nd part is for StructuredBuffers instead of for ByteAddressBuffers.