Skip to content

Commit

Permalink
[0010] Update linked list example to match latest rules (microsoft#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-lunarg authored Dec 7, 2023
1 parent 7e3d166 commit d657efc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions proposals/0010-vk-buffer-ref.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit d657efc

Please sign in to comment.