From 4a78d3156087ae82696f806c43ff4896aa83019a Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Mon, 27 Nov 2023 12:19:52 -0700 Subject: [PATCH] [0010] Fix description of Get method ie remove const (#106) Fixes #86 --- 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 e165dc8d..9f098c26 100644 --- a/proposals/0010-vk-buffer-ref.md +++ b/proposals/0010-vk-buffer-ref.md @@ -68,7 +68,7 @@ This class represents a pointer to a buffer of type struct `S`. `align` is the a This new type will have the following operations * Copy assignment and copy construction - These copy the value of the pointer from one variable to another. -* Dereference Method - The Get() method represents the struct const lvalue reference of the pointer to which it is applied. The selection . operator can be applied to the Get() to further select a member from the referenced struct. +* Dereference Method - The Get() method represents the struct lvalue reference of the pointer to which it is applied. The selection . operator can be applied to the Get() to further select a member from the referenced struct. * Two new cast operators are introduced. vk::static_pointer_cast allows casting any vk::BufferPointer to vk::BufferPointer only if SrcType is a type derived from DstType. vk::reinterpret_pointer_cast allows casting for all other BufferPointer types. For both casts, DstAlign <= SrcAlign must be true. * A buffer pointer can be constructed from a uint64_t u using the constructor syntax vk::BufferPointer(u). * A buffer pointer can be cast to a bool. If so, it returns FALSE if the pointer is null, TRUE otherwise.