Here's a Vulkan app that prints the properties of the first physical device on 
the system:

If you comment out the call to `vkGetPhysicalDeviceProperties`, the main module 
works. I create a Vulkan instance, print out a blank version of a struct, then 
destroy the instance. If I leave it in, I get:

; ptr-ref: contract violation
;   expected: cpointer?
;   given: #<variable-code>
;   argument position: 1st

I bind 
 using _pointer so I can learn how to work with the raw API:

I expect I misused a pointer and ended up with corrupted memory. But what is 
#<variable-code>, anyway? How did I produce it?


You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit

Reply via email to