Shader model 5 semantics
Your best bet is, as you say, to pass these values as secondary semantics (i.e. pass both a "POSITION" and a "SV_POSITION" value). Note that if you place SV_POSITION at the end of the output declaration for the vertex shader, you may omit it from the input declaration for the pixel shader.
Regarding the internal error, this is typically due to the declaration of a texture or other shader input that is optimized out in one pass but not in another. Disabling optimization typically works around the issue, but you should also be able to fix it by eliminating unused (including via dead-code elimination) input declarations, and ensuring you avoid complicated code that reduces to no-op.
You might also like
Sangu Gift 100% Hand-painted Hot Selling Framed 5-Piece Yellow Lily Bottle Oil Paintings Canvas Wall Art for Home Decoration(10x16Inchx2, 8x20Inchx2, 8x24Inchx1) Home (Eve's Temptation)
|