blob: e91aa5ee3b1901c2b2817350c7751fc0bd22b679 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -entry Pixel.MyType.Main -stage fragment
// Test that we can compile an entrypoint defined in a namespace.
// CHECK: OpEntryPoint
struct PSInput
{
float4 color : COLOR;
};
namespace Pixel
{
struct MyType
{
static float4 Main(PSInput input) : SV_TARGET
{
return input.color;
}
}
}
|