Jump to content
  • Advertisement
Sign in to follow this  

HLSL Multiply High

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

SM5 hardware does support integer instructions, but there are no 64-bit ints available in HLSL.

The code in the linked article seems to multiply the first 16 bits of the parameters to 32-bit, so that particular function would work on the SM5 GPU with only minor modification (change "unsigned" to "uint" and you're good to go).

Note that integer instructions can be slower than float ops in GPU, because there are generally fewer integer-capable computation units available. The instructions themselves are simple in this case, though. Edited by Nik02

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!