blob: 4030c565aeb2e83e3d72e138a04b051916be4aa9 (
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
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -emit-spirv-directly
// CHECK: OpEntryPoint
struct Tester
{
uint values[2];
};
struct TestPush
{
Tester* src;
uint* dst;
};
[[vk::push_constant]] TestPush test_p;
[shader("compute")]
[numthreads(1,1,1)]
void main(uint3 dtid : SV_DispatchThreadID)
{
uint value = test_p.src.values[0];
*test_p.dst = value;
}
|