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
493 B27 linesraw
1//TEST:REFLECTION:-profile ps_4_0 -target spirv -no-codegen
2
3// Confirm that we can generate reflection info for arrays
4//
5// Note: just working with fixed-size arrays for now.
6// Unbounded arrays may require more work.
7
8layout(binding=0, set = 1) cbuffer MyConstantBuffer
9{
10	float x;
11
12	float a[10];
13
14	float y;
15}
16
17[[vk::binding(1,2)]] Texture2D tx;
18[gl::binding(2,3)] Texture2D ta;
19Texture2D ty;
20SamplerState sx;
21SamplerState sa[4];
22SamplerState sy;
23
24float4 main() : SV_Target
25{
26	return 0.0;
27}