From 05d21c519d08a2e00904901a50e1f6b654f8b486 Mon Sep 17 00:00:00 2001 From: Steven Perron Date: Mon, 4 Dec 2023 09:35:30 -0800 Subject: [PATCH] Remove statement disallowing unions (#132) 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. --- proposals/0010-vk-buffer-ref.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proposals/0010-vk-buffer-ref.md b/proposals/0010-vk-buffer-ref.md index 9f098c26..89e1cd2b 100644 --- a/proposals/0010-vk-buffer-ref.md +++ b/proposals/0010-vk-buffer-ref.md @@ -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.