blob: b0fe259bea6395cd7b961c59cf78392f10900787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// shader.slang
// Example of using 'NativeString'
public __extern_cpp NativeString getString(NativeString in)
{
return in;
}
[COM]
interface IDoThings
{
int doThing(int a, int b);
int calcHash(NativeString in);
}
public __extern_cpp int calcHash(NativeString text, IDoThings doThings)
{
return doThings.calcHash(text);
}
|