Open Themaister opened 6 years ago
I tried this with
glslangValidator -Od -D -e hs_main -H t.tesc
and got the following. It is off by one from your results, but also indexes @entryPointOutput.pos
with the InvocationId
. So, want to start by making sure you're up to date, and we are discussing the same options/stage.
Decorate 76(i) BuiltIn InvocationId
86: 10(int) Load 76(i)
87: 32(ptr) AccessChain 78(flattenTemp) 30
90: 89(ptr) AccessChain 85(@entryPointOutput.pos) 86
Store 90 88
This may be the same issue reported in #1181. The constant 0 issue was fixed with #1183.
Emits:
gl_Position must be accessed by gl_InvocationID here, it works for the TEXCOORD0 output.