I want to sample from texture array with vertex id. I can access them in VS but not in PS or GS. Do I have to pass the streams on manually each stage, or am I missing the correct shader base? I thougt streams would take care of that themselves.
Here is a stripped down version with everything stream related.
Everything works, except accessing VId and IId in PS
not sure how stride handles special semantics names like SV_VertexID which are only allowed (in HLSL) as inputs for certain stages.~~
you could definitely work around the problem, by using another stream variable to pass that data to the next stage.
so your input for VS is still ‘SV_VertexID’ but you pass it along as another stream with name ‘VertexID’
edit: didn’t read your example properly…
in case of a GS you probably need to access the data through your first input parameter (in your case point Input input[1]) and copy that to your <Output>pointStream
edit 2: you do copy input/output to stream, so first answer actually applies.
at least that’s the way i got it working in a TS/DS shader