Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17063

Sample MSAA texture in shader

$
0
0

How do I read a MSAA texture in a compute shader? I don't want to access individual sub-samples. I just want to read the resolved pixel (w/o sampling if possible) and write back to the MSAA texture. OR do I have to manually resolve the samples? OR do I need to do the work for each sub-sample?

So for example,

Texture2DMS tex;
float4 color = tex[pos]; // no sampling just get the value resolved. Can I access x,y position?
color = process(color);
tex[pos] = color; // write back to MSAA texture, what happens here? How are the sub-samples handled?

Viewing all articles
Browse latest Browse all 17063

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>