From d657efcb5d573bafc89c3cad616b90b63a338c2e Mon Sep 17 00:00:00 2001 From: Greg Fischer Date: Thu, 7 Dec 2023 09:03:23 -0700 Subject: [PATCH] [0010] Update linked list example to match latest rules (#108) --- proposals/0010-vk-buffer-ref.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/proposals/0010-vk-buffer-ref.md b/proposals/0010-vk-buffer-ref.md index cf1536b7..34991f22 100644 --- a/proposals/0010-vk-buffer-ref.md +++ b/proposals/0010-vk-buffer-ref.md @@ -189,9 +189,10 @@ struct TestPushConstant_t float4 MainPs(void) : SV_Target0 { - block_p g_p = g_PushConstants.root; + block_p g_p(g_PushConstants.root); g_p = g_p.Get().next; - if (uint64_t(g_p) == 0) return float4(0.0,0.0,0.0,0.0); + if (!(bool)g_p) // Null pointer test + return float4(0.0,0.0,0.0,0.0); return g_p.Get().x }