type 
 RenderRecObj = ref object of RootObj
  hasSwapChain*: bool
 RenderRec* = object of RenderRecObj