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
526 B23 linesraw
1//TEST(smoke):REFLECTION:-profile glsl_fragment -target glsl -no-codegen
2
3// Confirm that when targetting GLSL via cross compilation,
4// we use the Vulkan layout rules instead of HLSL ones
5//
6// Specifically, we expect all of our top-level parameters
7// to get distinct registers in the same descriptor set,
8// rather than all getting register `0` because they
9// occupy different names register spaces (as they would in D3D)
10
11Texture2D t;
12
13SamplerState s;
14
15cbuffer C
16{
17	float3 c;
18}
19
20float4 main() : SV_Target
21{
22	return 0.0;
23}