HLSL: Pass opaques by local copy, instead of by interface original.
Also, remove assumption that if something is opaque that it must be in the UniformConstant storage class. This allows function declarations to know all parameters will be in the Function storage class.
Showing
- SPIRV/GlslangToSpv.cpp 46 additions, 29 deletionsSPIRV/GlslangToSpv.cpp
- Test/baseResults/hlsl.aliasOpaque.frag.out 48 additions, 38 deletionsTest/baseResults/hlsl.aliasOpaque.frag.out
- Test/baseResults/hlsl.array.flatten.frag.out 160 additions, 150 deletionsTest/baseResults/hlsl.array.flatten.frag.out
- Test/baseResults/hlsl.flattenOpaque.frag.out 88 additions, 62 deletionsTest/baseResults/hlsl.flattenOpaque.frag.out
- Test/baseResults/hlsl.flattenOpaqueInit.vert.out 73 additions, 63 deletionsTest/baseResults/hlsl.flattenOpaqueInit.vert.out
- Test/baseResults/hlsl.flattenOpaqueInitMix.vert.out 58 additions, 49 deletionsTest/baseResults/hlsl.flattenOpaqueInitMix.vert.out
- Test/baseResults/hlsl.opaque-type-bug.frag.out 28 additions, 27 deletionsTest/baseResults/hlsl.opaque-type-bug.frag.out
- Test/baseResults/hlsl.structbuffer.append.fn.frag.out 64 additions, 54 deletionsTest/baseResults/hlsl.structbuffer.append.fn.frag.out
- Test/baseResults/hlsl.structbuffer.fn.frag.out 84 additions, 76 deletionsTest/baseResults/hlsl.structbuffer.fn.frag.out
- Test/baseResults/hlsl.structbuffer.fn2.comp.out 45 additions, 43 deletionsTest/baseResults/hlsl.structbuffer.fn2.comp.out
- Test/baseResults/hlsl.texture.struct.frag.out 230 additions, 217 deletionsTest/baseResults/hlsl.texture.struct.frag.out
- Test/baseResults/hlsl.tx.overload.frag.out 52 additions, 33 deletionsTest/baseResults/hlsl.tx.overload.frag.out
Loading
Please register or sign in to comment