Jump to content
  • Advertisement
Sign in to follow this  
360GAMZ

DX11 What are the MSAA sample offsets in DX11?

This topic is 2532 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

Could somebody point me to documentation that describes what the MSAA sample offsets are in hlsl SM5, for various MSAA sample counts (2, 4, etc.)? Having trouble locating it.

Thanks!

Share this post


Link to post
Share on other sites
Advertisement

The sample offsets are left up to the vendor - they aren't defined by the API specification.


That's not totally true...they're vendor specific for most MSAA modes but not for the D3D11_STANDARD_MULTISAMPLE_PATTERN and D3D11_CENTER_MULTISAMPLE_PATTERN quality modes. Those modes have fixed sample locations (the latter setting has all sample locations at the very center of the pixel), and are available in FEATURE_LEVEL_10_1 and higher.

A while back I made a sample that could visualize the sample pattern for an MSAA mode, and spit out the sample locations in XY coordinates, so you could use that to see what they are. You can also query the sample locations programatically in a pixel shader if you're using ps_5_0. I think that last time I checked for my GPU (a 6970) the regular 4x MSAA mode used the same sample locations as the D3D11_STANDARD_MULTISAMPLE_PATTERN mode.

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!