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
562 stars 97 forks source link

maxtessfactor should be defined to take float argument instead of int #75

Closed OndrejPetrzilka closed 5 years ago

OndrejPetrzilka commented 7 years ago

maxtessfactor attribute is defined in intellisense to take int parameter, however, float parameter is correct

It even gives warning during HLSL compilation [maxtessfactor(15)] // cannot match attribute maxtessfactor, parameter 1 is expected to be of type float

This works well [maxtessfactor(15.0f)]