[maxvertexcount(4)]
void main(point VSO si[1], inout TriangleStream<VSO> stream)
{
VSO so;
so = si[0];
for (int i = 0; i < 4; ++i)
{
... // modify position and texture coordinates for this point sprite
so.clipDistance = some_value; // float clipDistance : SV_ClipDistance;
stream.Append(so);
}
}
And it crashes somewhere in HlslParseContext::handleAssign -> map -> HlslParseContext::assignClipCullDistance (reading location 0x0)
I have a code like this:
And it crashes somewhere in HlslParseContext::handleAssign -> map -> HlslParseContext::assignClipCullDistance (reading location 0x0)