yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyRework command-line options handling for entry points and targets (#697)725985528

master
317 B15 linesraw
1// Disabled because Slang should give the error, not downstream compiler
2//TEST_IGNORE_FILE
3//TEST:COMPARE_HLSL: -profile ps_4_0 -entry main
4
5#ifdef __SLANG__
6__import gh_160;
7#endif
8
9vec4 main(VS_OUT vOut) : SV_TARGET
10{
11	float3 color = float3(1,0,0);
12
13    vec4 finalColor = vec4(color, 1.f);
14    return finalColor;
15}