tgjones / HlslTools

A Visual Studio extension that provides enhanced support for editing High Level Shading Language (HLSL) files
http://timjones.io/blog/archive/2016/04/25/hlsl-tools-for-visual-studio-v1.0-released
Other
569 stars 97 forks source link

mad intrinsic is documented incorrectly #78

Closed ajmiles closed 7 years ago

ajmiles commented 7 years ago

allFunctions.AddRange(Create3( "mad", "Performs an arithmetic multiply/add operation on three values.", IntrinsicTypes.AllNumericTypes, "m", "The multiplication value.", "a", "The first addition value.", "b", "The second addition value."));

A multiply-add has two multiplication values and one addition value, not the other way around.

tgjones commented 7 years ago

Thanks, I've fixed this - but I actually copied this from https://msdn.microsoft.com/en-us/library/windows/desktop/ff471418(v=vs.85).aspx, so you might want to also talk to whoever owns the HLSL docs :)