code: def format(self):
          
          fmt = ffi.new('Uint32 *')
          check_int_err(lib.SDL_QueryTexture(self._ptr, fmt, ffi.NULL, ffi.NULL, ffi.NULL))
          return PixelFormat(fmt[0])
docs: PixelFormat: The raw format of the texture. The actual format may differ, but pixel transfers will use this
                          format.