yum-mirror/slang

Making it easier to work with shaders

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

Yong HeFix the logic to determine whether lower generic pass should run. (#5837)c17369a50

master
427 B20 linesraw
1//TEST:SIMPLE(filecheck=CHECK): -target spirv
2
3//CHECK: OpEntryPoint
4
5interface IBsdf {};
6struct Foo : IBsdf {}
7//TEST_INPUT:type_conformance Foo:IBsdf = 0
8struct Mesh {
9    float4 *vertices;
10    IBsdf *bsdf;
11}
12[[vk::push_constant]] Mesh* mesh;
13RWStructuredBuffer<float4> outputBuffer;
14
15[shader("compute")]
16[numthreads(1, 1, 1)]
17void main(uint3 dispatchThreadID: SV_DispatchThreadID)
18{
19    outputBuffer[0] = mesh.vertices[0];
20}