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 ...
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 ...
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, ...
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
float × 8mathematics × 2
mesh × 2
glsl × 1
c++ × 1
algorithm × 1
gpu × 1
webgl × 1
hlsl × 1
model × 1
line-drawing × 1
subdivision × 1
hardware × 1
direct3d × 1
conversion × 1
efficiency × 1
precision × 1