-
Notifications
You must be signed in to change notification settings - Fork 37
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
[0010] Define vk::BufferPointer pointee atomics #88
Comments
I think what me, @Ipotrick and @Dolkar are getting at is more along the lines, can the reference be used as an inline-spirv function argument declared with I don't think the ability to just be able to pass the immediate result of |
@devshgraphicsprogramming, that's completely separate from what this issue is tracking. The intent of this issue is to track defining how I may have confused you by the comment that I linked to, but I think there are multiple issues here that need to be tracked and discussed separately. |
@greg-lunarg, I'm going to put this one on my plate at least to start with. It relates to #89, and I have some questions I want to sort out relating to the address spacing of the references these APIs will return. |
Can we make it the job of SPIR-V intrinsics (proposal 0011) to provide the atomics? |
Yes it can. We could try calling that out explicitly.
What more do you need? Is this because you want to pass the members. You should be able to do write:
This will do an atomic operation on the member. From a language perspective, this falls out natually because the dot operation on an lvalue returns another lvalue. We should call this out explicitly, and make sure we have a test for it in the implementation. |
This clarifies any ambiguity around atomic operations. Fixes microsoft#88
This clarifies any ambiguity around atomic operations. Fixes microsoft#88
This clarifies any ambiguity around atomic operations. Fixes #88
This clarifies any ambiguity around atomic operations. Fixes microsoft#88
Which document does this relate to?
Proposal 0010 - vk::BufferPointer
Describe the issue you see with the spec
vk::BufferPointer::Get returns a reference. Can this reference be used with atomics?
Additional context
See comment here
The text was updated successfully, but these errors were encountered: