https://github.com/shader-slang/slang
Raw File
Tip revision: e59516fa8c3a16eb7b99a928c5b85b97bf44fd72 authored by Yong He on 01 February 2022, 00:26:03 UTC
Revise entrypoint renaming interface. (#2113)
Tip revision: e59516f
typedef.slang
//TEST:SIMPLE:
// test that we can `typedef` a type

typedef float F32;

F32 foo()
{
	float x = 123.0;
	return x;
}

float bar()
{
	return foo();
}
back to top