Conversation
…ex` to all-builtins; enable for more targets
|
This is nothing against you @fluffysquirrels or your code, it's perfectly good code you wrote here. <rant> |
|
Ha! I see exactly what you mean, @Firestar99 and no offense taken :)
I also think |
|
sadly rspirv's sr doesn't allow you to turn it back into proper instructions again, and there's several other things I would like to change about it... ... give me a week or two, may have something in the works already |
|
Retracting for now:
|
|
If the problems are all with non-compute stuff, why not just limit this to compute-only builtins? Could use an allow list and expand it when ready. I considered output variables also, but decided to avoid them for now since I had no examples to test. |
|
I don't think it's too much more work to get input builtins up and running. I've actually rewrote your #535 in As well as a first experiment in Output builtins: 87d115f Having to research every single one takes time, but also revealed some wrong assumptions and these issues. |
|
Not sure it makes sense to use this pattern for output builtins, e.g. for vertex shaders. It will make it very difficult to see what the actual signature (in and out parameters) of the shaders are. The great thing about the compute shader input builtins is that they were all always available automatically, so this did not add any confusion. Whereas (from my limited knowledge) in a vertex or fragment shader you actually do want to see what input it is relying upon and where the output is being written. |
InputOpVaraibles withBuiltIndecorationasm!blocks, see asm fn_ptr support #534