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

Angled includes don't lookup files hierarchy, only AdditionalIncludeDirectories. #265

Open TIMONz1535 opened 5 months ago

TIMONz1535 commented 5 months ago

I'm also looking at #131 and trying to figure out what it does. It has an IncludeType enum with "local" type (oh hey is it angled includes yeas?), but the code doesn't do anything - its just passes arguments and types, but the logic wasn't changed.

example

AdditionalIncludeDirectories = { "SystemAddInclude" }

SystemAddInclude:
    Global.hlsli

Shaders:
    header.hlsli
    object.hlsl:
        #include "Global.hlsli" // valid
        #include <Global.hlsli> // valid
        #include "header.hlsli" // valid
        #include <header.hlsli> // error