HLSL: Fix #1163: treat buffers as references when calling functions.
This continues to prevent writing output buffers (out from a function), but fixes the problem where the copy-in/out was not getting done. Making everything work will require knowing both in/out-ness and bufferness, but these are currently mutually exclusive, because both are storage qualifiers.
Showing
- SPIRV/GlslangToSpv.cpp 9 additions, 3 deletionsSPIRV/GlslangToSpv.cpp
- Test/baseResults/hlsl.structbuffer.append.fn.frag.out 54 additions, 64 deletionsTest/baseResults/hlsl.structbuffer.append.fn.frag.out
- Test/baseResults/hlsl.structbuffer.fn.frag.out 76 additions, 84 deletionsTest/baseResults/hlsl.structbuffer.fn.frag.out
- Test/baseResults/hlsl.structbuffer.fn2.comp.out 43 additions, 45 deletionsTest/baseResults/hlsl.structbuffer.fn2.comp.out
Loading
Please register or sign in to comment