Hello,
First, We can I use pixel shaders with sprites
Second, Is Sprites fast enough to not drawing with a conventional way (Holding the vertices in vertex buffer and then apply a texture to them and use the pixel shader as regular)
I want to know which one is faster
Thanks,
Mustafa ELBanna

Can I use PixelShaders with Sprites
ramsun
They will not be faster (at least not significantly faster) than correct vertex-buffer usage.
In terms of pixel shaders, I think it really comes down to how you want your render-pass code to be organized. I don't see why you couldn't, for example, draw Sprites inside an Effect begin/end block, but I'm not 100% sure you can. I'll reply again soon with confirmation.
Herman du Plessis
Hello,
I really talking about D3DX sprites
Thanks,
Mustafa ELBanna
M W
Mohammed Elnahrawi
willwang
I haven't tried it myself, but I don't see any reason why you couldn't.
Using ID3DXSprite should be just as fast as drawing the quads yourself.
Web Explorer
That is also why various bits of hardware have various odd restrictions on how and where you can use them. I would NOT recommend using them inside the DXEffect system, because it makes it hard to work around some of the oddness (especially on PS1.x hardware).
In conclusion, for most practical purposes, they're just not worth the hassle. They're only a small speed boost at best, only faster in certain specialised rendering circumstances, they have arbitrary limits on the things they can do, and they're a real pain to use.
vinnisharma
CarlN