yum-mirror/slang

Making it easier to work with shaders

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

Alexey PanteleevSupport for querying which parameters are used in emitted code (#2239)69cb6e8f3

master
419 B33 linesraw
1//TEST:REFLECTION:-profile vs_4_0 -target hlsl -no-codegen
2
3// Confirm that we can generate reflection info for
4// vertex shader input parameters, including those
5// that have semantics, and including nesting
6// via struct types.
7
8struct X
9{
10	float4 x0;
11	float4 x1;
12};
13
14struct B
15{
16	int4 b0;
17	X b1;
18};
19
20struct C
21{
22	X c0 : CX;
23	int4 c1 : CY;
24};
25
26float4 main(
27	float4 a : A,
28	B b : B,
29	C c)
30	: SV_Position
31{
32	return 0.0;
33}