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 }