blob: 469eea7c6070949471f545d57435bd7953b48665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// precompiled-dxil-matrix.slang
// This test imports a precompiled module that exports a matrix type, which is known to
// cause https://github.com/shader-slang/slang/issues/4880 without driver mitigation.
//TEST(windows):COMPILE: tests/library/module-library-matrix.slang -o tests/library/module-library-matrix.slang-module -target dxil -embed-downstream-ir -profile lib_6_6 -incomplete-library
//TEST(windows):COMPILE: tests/library/precompiled-dxil-matrix.slang -stage anyhit -entry shadow -target dxil -o precompiled-dxil-matrix.dxil
import "module-library-matrix";
struct ShadowHitInfo
{
bool isHit;
uint seed;
};
struct Attributes
{
float2 bary;
};
[shader("anyhit")]
void shadow(inout ShadowHitInfo payload, Attributes attrib)
{
IgnoreHit();
}
|