示例#1
0
 public static Offset <UIHardwareState> CreateUIHardwareState(FlatBufferBuilder builder,
                                                              VectorOffset gpuMemoryOffset = default(VectorOffset),
                                                              long hostMemory = 0)
 {
     builder.StartObject(2);
     UIHardwareState.AddHostMemory(builder, hostMemory);
     UIHardwareState.AddGpuMemory(builder, gpuMemoryOffset);
     return(UIHardwareState.EndUIHardwareState(builder));
 }
示例#2
0
 public static UIHardwareState GetRootAsUIHardwareState(ByteBuffer _bb, UIHardwareState obj)
 {
     return(obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb));
 }