-
Notifications
You must be signed in to change notification settings - Fork 35
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] Clarify behavior of vk::aliased_pointer on vk::BufferPointer #95
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,7 +184,7 @@ Applying HLSL semantic annotations to objects of type vk::BufferPointer is disal | |
|
||
By default, buffer pointers are assumed to be restrict pointers as defined by the C99 standard. | ||
|
||
An attribute vk::aliased_pointer can be attached to a variable, function parameter or a block member of buffer pointer type. It is assumed that the pointee of an object with this attribute can overlap with the pointee of any other object with this attribute. | ||
An attribute vk::aliased_pointer can be attached to a variable, function parameter or a block member of BufferPointer type. It ie assumed that the pointee of a BufferPointer with this attribute can overlap with the pointee of any other BufferPointer with this attribute. This also means that the pointee of a BufferPointer with this attribute does not overlap with the pointee of a default (restrict) BufferPointer. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The meaning of the restrict attribute only applies to a scope. For example the following is allowed in C:
The extra sentence you added is not true. An aliased pointer and restrict pointer can point to overlapping storage as long as the aliased pointer is not used during the lifetime of the restrict pointer. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree this PR does not necessarily address #87. I will attempt to redress that. I am not sure I agree that my "extra" statement above is false, although perhaps underspecified. My statement above assumes that the two pointers in question have overlapping scopes. If they don't have overlapping scopes, than their overlapping memory is moot, it seems to me. But I will add that the pointers have overlapping scopes to clarify. |
||
|
||
### Buffer Pointers and Address Space | ||
|
||
|
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.
Looks like you introduced a typo "It ie assumed ...".