From 801227f5c9544e7d0991b3b22f4b13c059760361 Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Thu, 12 Oct 2023 16:01:33 -0600 Subject: [PATCH] [0010] Fix description of Get method ie remove const 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 f5b68825..f02c13b5 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.