Skip to content

Commit

Permalink
Remove statement disallowing unions (microsoft#132)
Browse files Browse the repository at this point in the history
This statement explicitly contradicts a later statement that says:

> While buffer pointer types are allowed in unions

I believe we landed on allowed buffer pointers in unions, so we will
keep that statement.
  • Loading branch information
s-perron authored Dec 4, 2023
1 parent 9fb6b0a commit 05d21c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proposals/0010-vk-buffer-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ The pointee of a vk::BufferPointer is considered to be a buffer and will be laid

### Buffer Pointer Usage

vk::BufferPointer cannot be used in Input and Output variables. It also cannot be used in Unions, when those appear in HLSL.
vk::BufferPointer cannot be used in Input and Output variables.

A vk::BufferPointer can otherwise be used whereever the HLSL spec does not otherwise disallow it through listing of allowed types. Specifically, buffer members, local and static variables, function argument and return types can be vk::BufferPointer. Ray tracing payloads and shader buffer table records may also contain vk::BufferPointer.

Expand Down

0 comments on commit 05d21c5

Please sign in to comment.