yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Yong HeSupport visibility control and default to `internal`. (#3380)11111e573

master
476 B23 linesraw
1//TEST:EXECUTABLE:
2export __extern_cpp int main()
3{
4    uint2 value;
5    int *pValue = (int*)&value;
6    *pValue = 1;
7    (*pValue)++;
8    ++pValue[0];
9    ++pValue;
10    *pValue = 1;
11    pValue = (int *)&value;
12    int64_t ptrVal = int64_t(pValue);
13    pValue = (int *)ptrVal;
14    if (pValue
15        && pValue != nullptr
16        && ptrVal != 0
17        && value[0] == 3
18        && pValue[1] == 1)
19        printf("Success\n");
20    else
21        printf("Fail\n");
22    return 0;
23}