summaryrefslogtreecommitdiff
path: root/tests/compute/dynamic-dispatch-15.slang
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-12-06 12:05:07 -0800
committerGitHub <noreply@github.com>2023-12-06 12:05:07 -0800
commit11111e5733b189127dc2c4934d67693b9bc6e764 (patch)
tree0ba84df3e856eb104abec2ecac47242bc70a7b7d /tests/compute/dynamic-dispatch-15.slang
parentfa6d8717d02912697c09f2d7de802723ac6d6e47 (diff)
Support visibility control and default to `internal`. (#3380)
* Support visibility control and default to `internal`. * Fix wip. * Fixes. * Fix. * Fix test. * Add legacy language detection and compatibility for existing code. * Add doc. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/compute/dynamic-dispatch-15.slang')
-rw-r--r--tests/compute/dynamic-dispatch-15.slang10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/compute/dynamic-dispatch-15.slang b/tests/compute/dynamic-dispatch-15.slang
index 5e2be1a4c..2ab169281 100644
--- a/tests/compute/dynamic-dispatch-15.slang
+++ b/tests/compute/dynamic-dispatch-15.slang
@@ -46,7 +46,7 @@ void computeMain(uint3 dispatchThreadID : SV_DispatchThreadID)
}
// Type must be marked `public` to ensure it is visible in the generated DLL.
-public struct FloatVal : IInterface
+export struct FloatVal : IInterface
{
float val;
float run()
@@ -56,7 +56,7 @@ public struct FloatVal : IInterface
};
interface ISomething{void g();}
struct Float4Struct : ISomething { float4 val; void g() {} }
-public struct Float4Val : IInterface
+export struct Float4Val : IInterface
{
Float4Struct val;
float run()
@@ -64,7 +64,7 @@ public struct Float4Val : IInterface
return val.val.x;
}
};
-public struct IntVal : IInterface
+export struct IntVal : IInterface
{
int val;
float run()
@@ -72,11 +72,11 @@ public struct IntVal : IInterface
return val;
}
};
-public struct Int4Val : IInterface
+export struct Int4Val : IInterface
{
int4 val;
float run()
{
return val.x;
}
-}; \ No newline at end of file
+};