summaryrefslogtreecommitdiff
path: root/tests/render/auto-import.slang.h
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-06-26 09:32:40 -0700
committerTim Foley <tfoley@nvidia.com>2017-06-26 12:06:54 -0700
commit7d3bfe403362b294cc2a1f2607d51dfcd447aafd (patch)
tree4dac8dcdb29a0d8e74f78f12c0bbe63e669b2b0c /tests/render/auto-import.slang.h
parent3f316dcbd9274efc74f817cf36f17a511ff2e21e (diff)
Replace "auto-import" with `#import`
Right now `#import` only differs from `#include` in that it takes a string literal for a file name instead of a raw identifier (to which `.slang` gets appended). The next step is to make `#import` respect preprocessor state, while `__import` doesn't.
Diffstat (limited to 'tests/render/auto-import.slang.h')
-rw-r--r--tests/render/auto-import.slang.h21
1 files changed, 0 insertions, 21 deletions
diff --git a/tests/render/auto-import.slang.h b/tests/render/auto-import.slang.h
deleted file mode 100644
index d53005688..000000000
--- a/tests/render/auto-import.slang.h
+++ /dev/null
@@ -1,21 +0,0 @@
-//TEST_IGNORE_FILE:
-
-// This file implements the "library" code
-// that both the HLSL and GLSL shaders share.
-//
-// This code is written in Slang (more or less
-// just HLSL), and will be translated as needed
-// for each of the targets.
-
-float3 transformColor(float3 color)
-{
- float3 result;
-
- result.x = sin(20.0 * (color.x + color.y));
- result.y = saturate(cos(color.z * 30.0));
- result.z = sin(color.x * color.y * color.z * 100.0);
-
- result = 0.5 * (result + 1);
-
- return result;
-} \ No newline at end of file