protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { if (this.FRawData[0]) { texture.WriteData(this.colpoints, this.width * this.height * 8); } else { texture.WriteData(this.convertedColPoints, this.width * this.height * 8); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.depthread, 1920 * 1080 * 4); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.depthread, 512 * 424 * 2); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData <int>(this.playerimage); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.depthread, 1920 * 1080 * 4); } }
public void Update(FeralTic.DX11.DX11RenderContext context) { for (int i = 0; i < FTextureOut.SliceCount; i++) { if (!FTextureOut[i].Contains(context)) { renderer = new BitmapRenderer(); renderer.TextFont = new System.Drawing.Font(FFontIn[i].Name, FFontSizeIn[i]); Bitmap bmp = new Bitmap(GenerateBarcodeImage(i)); DX11DynamicTexture2D tex = new DX11DynamicTexture2D(context, bmp.Width, bmp.Height, SlimDX.DXGI.Format.R8G8B8A8_UNorm); int pitch = tex.GetRowPitch(); var data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, bmp.PixelFormat); if (pitch != bmp.Width * 4) { tex.WriteDataPitch(data.Scan0, bmp.Width * bmp.Height * 4); } else { tex.WriteData(data.Scan0, bmp.Width * bmp.Height * 4); } FTextureOut[i][context] = tex; } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData<byte>(this.rawdepth); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { for (int i = 0; i < this.colpoints.Length; i++) { if (FRelativeLookup[0]) { this.colorimage[i * 2] = (float)VMath.Map(colpoints[i].X - i % 640, 0, 640, 0, 1, TMapMode.Float); this.colorimage[i * 2 + 1] = (float)VMath.Map(colpoints[i].Y - VMath.Abs(i / 640), 0, 480, 0, 1, TMapMode.Float); } else { this.colorimage[i * 2] = (float)VMath.Map(colpoints[i].X, 0, 640, 0, 1, TMapMode.Clamp); this.colorimage[i * 2 + 1] = (float)VMath.Map(colpoints[i].Y, 0, 480, 0, 1, TMapMode.Clamp); } } fixed(float *f = &this.colorimage[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 8); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData <byte>(this.rawdepth); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.depthread, 512 * 424 * 2); } }
public void Update(IPluginIO pin, FeralTic.DX11.DX11RenderContext context) { for (int i = 0; i < this.FTextureOut.SliceCount; i++) { if (!this.FTextureOut[i].Contains(context)) { Bitmap bmp = ComputeQRCode(i); DX11DynamicTexture2D tex = new DX11DynamicTexture2D(context, bmp.Width, bmp.Height, SlimDX.DXGI.Format.R8G8B8A8_UNorm); int pitch = tex.GetRowPitch(); var data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, bmp.PixelFormat); if (pitch != bmp.Width * 4) { tex.WriteDataPitch(data.Scan0, bmp.Width * bmp.Height * 4); } else { tex.WriteData(data.Scan0, bmp.Width * bmp.Height * 4); } this.FTextureOut[i][context] = tex; } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.colpoints, 1920 * 1080 * 8); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData(this.colpoints, 1920 * 1080 * 8); } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { texture.WriteData<int>(this.playerimage); } }
protected override void CopyData(DX11DynamicTexture2D texture) { fixed (float* f = &world1[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 4 * 4); } // texture.WriteData<float>(world1); }
protected unsafe override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { fixed(PointF *ptr = &this.data[0]) { texture.WriteData(new IntPtr(ptr), this.width * this.height * 8); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_depthlock) { fixed (Vector4* cp = &this.colorread[0]) { IntPtr ptr = new IntPtr(cp); texture.WriteData(ptr, 512 * 424 * 16); } } }
public ResourcePool(DX11RenderContext context, int width, int height) { FFrontTexture = new DX11DynamicTexture2D(context, width, height, SlimDX.DXGI.Format.R8_UNorm); byte[] black = new byte[width * height]; for(int i=0; i<width * height; i++) { black[i] = 0; } FFrontTexture.WriteData(black); FContext = context; }
protected override void CopyData(DX11DynamicTexture2D texture) { fixed(float *f = &world1[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 4 * 4); } // texture.WriteData<float>(world1); }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { fixed (SkeletonPoint* f = &this.skelpoints[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 16); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_depthlock) { fixed(Vector4 *cp = &this.colorread[0]) { IntPtr ptr = new IntPtr(cp); texture.WriteData(ptr, 512 * 424 * 16); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { fixed(SkeletonPoint *f = &this.skelpoints[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 16); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { texture.WriteData<byte>(this.colorimage); }
protected override void CopyData(DX11DynamicTexture2D texture) { texture.WriteData <ColorSpacePoint>(this.points); }
protected override void CopyData(DX11DynamicTexture2D texture) { lock (m_lock) { for (int i = 0; i < this.colpoints.Length; i++) { if (FRelativeLookup[0]) { this.colorimage[i * 2] = (float)VMath.Map(colpoints[i].X - i % 1920, 0, 1920, 0, 1, TMapMode.Float); this.colorimage[i * 2 + 1] = (float)VMath.Map(colpoints[i].Y - VMath.Abs(i / 1920), 0, 1080, 0, 1, TMapMode.Float); } else { this.colorimage[i * 2] = (float)VMath.Map(colpoints[i].X, 0, 1920, 0, 1, TMapMode.Clamp); this.colorimage[i * 2 + 1] = (float)VMath.Map(colpoints[i].Y, 0, 1080, 0, 1, TMapMode.Clamp); } } fixed (float* f = &this.colorimage[0]) { IntPtr ptr = new IntPtr(f); texture.WriteData(ptr, this.width * this.height * 8); } } }
protected override void CopyData(DX11DynamicTexture2D texture) { texture.WriteData <byte>(this.colorimage); }
public void Update(IPluginIO pin, FeralTic.DX11.DX11RenderContext context) { for (int i = 0; i < this.FTextureOut.SliceCount; i++) { if (!this.FTextureOut[i].Contains(context)) { Bitmap bmp = ComputeQRCode(i); DX11DynamicTexture2D tex = new DX11DynamicTexture2D(context, bmp.Width, bmp.Height, SlimDX.DXGI.Format.R8G8B8A8_UNorm); int pitch = tex.GetRowPitch(); var data = bmp.LockBits(new Rectangle(0, 0, bmp.Width, bmp.Height), ImageLockMode.ReadOnly, bmp.PixelFormat); if (pitch != bmp.Width * 4) { tex.WriteDataPitch(data.Scan0, bmp.Width * bmp.Height * 4); } else { tex.WriteData(data.Scan0, bmp.Width * bmp.Height * 4); } this.FTextureOut[i][context] = tex; } } }
protected override void CopyData(DX11DynamicTexture2D texture) { texture.WriteData<ColorSpacePoint>(this.points); }