blob: eb7d80f75871074d8c8e377c098f632fe2ec238b (
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
|
//TEST:SIMPLE(filecheck=CHECK): -target spirv -fvk-use-entrypoint-name
// CHECK-NOT: std140
struct Transform
{
float4 Tint;
float2x2 ScaleRot;
float2 Translation;
};
[[vk::push_constant]]
ConstantBuffer<Transform> transform1;
RWStructuredBuffer<float> outputBuffer;
[numthreads(1,1,1)]
void computeMain1()
{
outputBuffer[0] = transform1.Translation.x;
}
[numthreads(1,1,1)]
void computeMain2(
[vk::push_constant] ConstantBuffer<Transform> transform2)
{
outputBuffer[0] = transform2.Translation.x;
}
|