https://github.com/shader-slang/slang
Raw File
Tip revision: af84d85799758234110fc42f0ba5c771dacb5fe3 authored by Tim Foley on 07 February 2020, 16:45:32 UTC
Change handling of strings for HLSL/GLSL targets (#1204)
Tip revision: af84d85
import-subdir-search-path-repro.slang
//DISABLE_TEST:SIMPLE: -Itests/front-end/subdir -dump-repro import-subdir-search-path-repro.slang-repro
//DISABLE_TEST:SIMPLE_EX: -extract-repro import-subdir-search-path-repro.slang-repro
//DISABLE_TEST:SIMPLE: -load-repro import-subdir-search-path-repro.slang-repro

// Confirming import lookup via search paths work

__import import_subdir_a;

// Should realize it's the same thing
__import subdir.import_subdir_a;

float bar(float x) { return foo(x); }
back to top