If you don't need all the fields of your struct, you may just delegate field 
resolution to the C code
    
    
    type
      image* {.importc: "GPU_Image", header: "<SDL_gpu.h>", incompleteStruct.} 
= object
        data*: pointer
        w*, h*: uint16
    

but this approach requires C headers available.

Reply via email to