summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/library/precompiled-module-library-resource.slang5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/library/precompiled-module-library-resource.slang b/tests/library/precompiled-module-library-resource.slang
index 79c3daaa1..3eeab39d8 100644
--- a/tests/library/precompiled-module-library-resource.slang
+++ b/tests/library/precompiled-module-library-resource.slang
@@ -9,6 +9,11 @@ module "precompiled-module-library-resource";
public struct ResourceStruct {
public StructuredBuffer<int> buffer;
+
+ __init(StructuredBuffer<int> bufferIn)
+ {
+ buffer = bufferIn;
+ }
};
public int resource_in_parameter(StructuredBuffer<int> buffer)