• Advertisement
Sign in to follow this  

[DirectX 10] Shader per sample instead of per sample

This topic is 2471 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How can I run my pixel shader per sample instead of per pixel? Im read somewhere that it was done in STALKER... They read a sample from a specific sample of MSAA pixel and write to a specific sample as well. I just dont want how it was done, I guess they used stencilling but I never used stenciling...

P.S. I was reading a text about steciling and they use values like 0xffffffff? what king of values is this?

Share this post


Link to post
Share on other sites
Advertisement
On 10.1 and 11-level devices it happens automatically when you take SV_SampleIndex as an input to your pixel shader, or you mark an input with the "sample" interpolation attribute.

I suppose on a 10-level device you could do it like people have done for a stencil-routed K-Buffer. There's an article about that in ShaderX6, and Humus also has a sample on his website.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement