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

Interface parameters incorrectly flagged as an error #216

Open Dancpaz opened 2 years ago

Dancpaz commented 2 years ago

A method accepting an interface (IThing) cannot accept a class that implements that interface (Thing), or HLSL Tools incorrectly flags it as an error. You can still compile and use the shader, but you cannot clear the error without creating a new variable explicitly of type IThing to pass to the method. Disabling HLSL tools clears the error.

VS 2019 HLSL Tools for Visual Studio 1.1.302