blob: fbaaf6a73f653235ad0f4692974faceb914907b0 (
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:-profile cs_5_0
// Missing opening `{` sends parser into infinite loop
struct LightCB
{
float3 vec3Val; // We're using 2 values. [0]: worldDir [1]: intensity
};
StructuredBuffer<LightCB> gLightIn;
AppendStructuredBuffer<LightCB> gLightOut;
[numthreads(1, 1, 1)]
void main()
{
uint numLights = 0;
uint stride;
gLightIn.GetDimensions(numLights, stride);
for (uint i = 0; i < numLights; i++)
gLightOut.Append(gLightIn[i]);
}
}
|