yum-mirror/slang

Making it easier to work with shaders

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

Tim FoleyAdd an error for global uniform parameter declarations (#773)5b0c50763

master
267 B22 linesraw
1//TEST_IGNORE_FILE
2//TEST:REFLECTION:-profile ps_4_0 -target hlsl
3
4// Confirm that we handle uniforms at global scope
5
6
7float4 u;
8
9Texture2D t;
10SamplerState s;
11
12cbuffer CB
13{
14	float4 v;
15}
16
17float4 w;
18
19float4 main() : SV_Target
20{
21	return u + v + w + t.Sample(s, u.xy);
22}