https://github.com/shader-slang/slang
Raw File
Tip revision: c3c1b56ae693ed23804544e929a3447bc921edf6 authored by Yong He on 02 June 2023, 22:31:03 UTC
Fix generic param inference through TypeCastIntVal. (#2916)
Tip revision: c3c1b56
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