How find sample positions in mulisampling rendering?

Started by
11 comments, last by Nik02 8 years, 2 months ago

Correct, from 10.1 and up you can specify the sample index to load, and you can use SV_SampleIndex.

I used to be a DX MVP back in the day when these things were designed, and 10.1 was themed as "image quality release" due to the various multisampling enhancements as well as some high-precision texture formats becoming mandatory at this hardware level.

Niko Suni

Advertisement

MSDN only gives information about 2, 4, 8, 16 samples, how can I know all samples position if we use 256 samples per pixel?

Using 256 samples would imply that you use a very recent GPU and API, in which case you can be sure that GetSamplePosition is available. You can also use GetDimensions method of the multisample texture object to determine the sample count at shader runtime.

Niko Suni

This topic is closed to new replies.

Advertisement