   [.net] setting single pixels (managed Direct3D)
  Hello everyone!I'm a total beginner to Direct3D and working on a C# application which needs to build up frames from very raw pixel data (Vector of bytes representing the colors of the various pixels). i would be very grateful if someone of you could tell me a way to do that.thank you very much in advance!   
  Sounds like a full-screen video. This is very simple: convert your raw pixel data into a texture, create a full-screen quad and apply that texture on it. You can even have double-buffering. One texture is the back buffer, which you load from a file (from another thread). Another texture is the front buffer which you draw. During rendering you just synchronize with the loading thread and flip the buffers.   ;  thank you for the quick response deathkrush.and how would i convert my data to a texture? the constructor with an IntPtr seems to be promising to me, but honestly, i have no idea.   ;  It's quite tricky, but once you understand Lock and Unlock, it's not that hard.Texture texture = new Texture(device, //your device reference, should be already created512, //width512, //height1, //number of mipmapsUsage.Dynamic, //I recommend Dynamic, if you will be frequently uploading new dataFormat.A8R8G8B8, //Put in the fromat that you want herePool.Default //Use the default pool, not Managed);//lock the texture and obtain a pointer to the databyte[] pixels = (byte[])texture.LockRectangle(typeof(byte), 0, //mipmap levelLockFlags.None, //no lock flags512 * 512 * 4 //width * height * bytes per pixel);//just a simple test, fill in the texture with whitefor (int i = 0; i < 512 * 512 * 4; i++){pixels = 255;}//unlock the texturetexture.UnlockRectangle(0);;  oh that looks just great, thanks a lot!   ;  i have implemented this solution and it seems to work, but unfortunatelly way too slow. just performing the lockrectangle function takes me about half a second, which is just inacceptable for an application which should be capable of displaying at least 30 frames per second. the newbie that i am, i have no idea what else to do. so i'd still appreciate your help and your advises.thanks!   