yum-mirror/slang

Making it easier to work with shaders

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

Yong HeFix visibility of synthesized Differential typedefs. (#7865)165a95ebb

master
496 B26 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2// CHECK: OpEntryPoint 
3public interface IBSDF
4{
5    public float3 get_value();
6}
7
8public struct AnisotropicGGX // : IDifferentiable
9{
10    float2 alpha = {};
11    public __init() { }
12};
13
14public struct TestDiffVisibility : IBSDF, IDifferentiable
15{
16    public AnisotropicGGX D = {};
17    public __init() { }
18    public float3 get_value() { return { 0.3 }; }
19};
20
21[numthreads(1,1,1)]
22void main()
23{
24    TestDiffVisibility test = {};
25    test.get_value();
26}