Skip to content

Commit

Permalink
Add feature check for vk::BufferPointer (#54)
Browse files Browse the repository at this point in the history
* Add feature check for vk::BufferPointer

Fixes #40

* Fix typo.

---------

Co-authored-by: Chris B <[email protected]>
  • Loading branch information
greg-lunarg and llvm-beanz authored Sep 1, 2023
1 parent 96d9d4c commit 256acd3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions proposals/0010-vk-buffer-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,10 @@ A vk::BufferPointer can otherwise be used whereever the HLSL spec does not other

Applying HLSL semantic annotations to objects of type vk::BufferPointer is disallowed.

### Buffer Pointer Availability

The following can be used at pre-processor time to determine if the current compiler supports vk::BufferPointer: __has_feature(hlsl_vk_buffer_pointer).

### Buffer Pointers and Type Punning Through Unions

While buffer pointer types are allowed in unions, type punning with buffer pointer types is disallowed as it is with all other types in HLSL. Specifically, when a member of a union is defined, all other members become undefined, no matter the types.
Expand Down

0 comments on commit 256acd3

Please sign in to comment.