yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyRemove non-IR codegen paths (#398)662f43fff

master
353 B17 linesraw
1//TEST_DISABLED:CROSS_COMPILE: -profile ps_5_0 -entry main -target spirv-assembly
2
3// Note: disabled pending IR-based translation of the `Sample()`
4// operation for Vulkan.
5
6Texture2D t;
7SamplerState s;
8
9float4 main(float2 uv) : SV_Target
10{
11	float4 result = 0;
12	$for(i in Range(0,5))
13	{
14		result += t.Sample(s, uv, int2(i - 2, 0));
15	}
16	return result;
17}