Villacaleb / slimdx

Automatically exported from code.google.com/p/slimdx
MIT License
0 stars 0 forks source link

transfer byte array to effect #865

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have byte array of image's data (or pointer). 
I have effect with pixel shader to fill result texture. I want to work with my 
image data in pixel shader without unnecessary transformations. 
How I can transfer bytes array to my Effect and how I must define it in HLSL 
program?  
I'm using SlimDX and C#.
Help me,please!!!

Original issue reported on code.google.com by natalyko...@gmail.com on 26 Apr 2012 at 8:06

GoogleCodeExporter commented 9 years ago
You can load your image into a texture and send this to the graphics card. It's 
a fundamental operation in any graphics API, and it's certainly not a bug.

Original comment by Mike.Popoloski on 4 May 2012 at 12:19