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 98 forks source link

[Includes] Some improvements #131

Open mrvux opened 5 years ago

mrvux commented 5 years ago

Hello, as mentioned in #130 , here are some improvements for include system :

The main rationale about it is to also allow some finer control when using core libraries in custom tooling.

One discussion part I would have, is that passing IIncludeFileResolver is required, since our include system might not be not file based (zip/resource/memory...) so default resolver will never find the file, and never call the filesystem.

So maybe we should even remove IIncludeFileSystem from the argument list (since resolver should provide it's own file system anyway, or never provide one) ?

Thanks

tgjones commented 5 years ago

So maybe we should even remove IIncludeFileSystem from the argument list (since resolver should provide it's own file system anyway, or never provide one) ?

I agree - let's remove IIncludeFileSystem from the argument list.

Krakean commented 5 years ago

@tgjones @mrvux this hasn't been merged into master yet?

mrvux commented 5 years ago

This did not, issue is there been a large change in between and this will conflict merge. Theres an issue with new version that it cant build with visual studio as well, wanted to fix that but had a bit little time.