/// <summary> /// Constructor /// </summary> /// <param name="args">frame data</param> public ColorRGBAFrameDataEventArgs(ColorRGBAFrameData args) { if (args == null) { throw new ArgumentNullException("args"); } this.args = args; }
public void TestCopy() { using (ColorRGBAFrameData frame = new ColorRGBAFrameData()) { using (DynamicColorRGBATexture texture = new DynamicColorRGBATexture(device)) { texture.Copy(device.ImmediateContext, frame); } } }
/// <summary> /// Copy depth frame to graphics card /// </summary> /// <param name="context">Device context</param> /// <param name="data">Color frame data</param> public void Copy(DeviceContext context, ColorRGBAFrameData data) { this.texture.Upload(context, data.DataPointer, data.SizeInBytes); }