Function Device.allocateMemory

abstract DeviceMemory allocateMemory (
  uint memPropIndex,
  ulong size
);