示例#1
0
 /// <summary>
 /// Sets instance data to use for drawing primitives.
 /// </summary>
 /// <param name="instanceData">The instance data.</param>
 /// <param name="start">The starting offset in the buffer.</param>
 /// <param name="count">The number of entries to pull from the buffer.</param>
 public void SetInstanceDataBuffer(ref InstanceDataBuffer instanceData, int start = 0, int count = -1)
 {
     NativeMethods.bgfx_encoder_set_instance_data_buffer(ptr, ref instanceData.data, (uint)start, (uint)count);
 }
示例#2
0
 /// <summary>
 /// Sets instance data to use for drawing primitives.
 /// </summary>
 /// <param name="instanceData">The instance data.</param>
 /// <param name="count">The number of entries to pull from the buffer.</param>
 public static void SetInstanceDataBuffer(InstanceDataBuffer instanceData, int count = -1)
 {
     NativeMethods.bgfx_set_instance_data_buffer(instanceData.ptr, (ushort)count);
 }