Skip to main content
4 votes

Floating Point Operations in Line Drawing Algorithms

is it important with modern GPU architectures to avoid floating point operations in favor of integer operations? Almost certainly not. CPUs have a long history where for many years they only handled ...
user1118321's user avatar
  • 3,441
4 votes
Accepted

How to work with half and snorm

According to the article, a half is basically a 16 bit float and an snorm is a signed float dividied by 65535. Therefore, they are basically the same No, they're not, and you do the article a great ...
Nicol Bolas's user avatar
  • 9,932
2 votes
Accepted

How do (Direct3D) precision conversions for floats work?

Rounding is all about what happens to the data in the higher precision format that don't exist in the lower precision one. For example, 0.7 cannot exactly be represented as an 8-bit unsigned, ...
Nicol Bolas's user avatar
  • 9,932
1 vote
Accepted

Splitting Floats To Texture Channels

This will not work. The principle you are attempting to use would work (with some adjustment) if you were converting between a 32-bit unsigned integer representation and four 8-bit integers, because ...
Kevin Reid's user avatar
  • 1,276
1 vote

Precision problem on AMD

In HLSL, you can use the built-in fmod function for this. I'm not sure what's going wrong with your implementation, though. It looks mathematically correct. It's ...
Nathan Reed's user avatar
  • 25.2k

Only top scored, non community-wiki answers of a minimum length are eligible