Respect the array type in Store operation
This commit is contained in:
parent
792a94809b
commit
59677daef7
@ -3274,6 +3274,9 @@ void HlslParseContext::decomposeStructBufferMethods(const TSourceLoc& loc, TInte
|
|||||||
: EOpIndexIndirect;
|
: EOpIndexIndirect;
|
||||||
|
|
||||||
TIntermTyped* lValue = intermediate.addIndex(idxOp, argArray, offsetIdx, loc);
|
TIntermTyped* lValue = intermediate.addIndex(idxOp, argArray, offsetIdx, loc);
|
||||||
|
const TType derefType(argArray->getType(), 0);
|
||||||
|
lValue->setType(derefType);
|
||||||
|
|
||||||
TIntermTyped* rValue = (size == 1) ? argValue :
|
TIntermTyped* rValue = (size == 1) ? argValue :
|
||||||
intermediate.addIndex(EOpIndexDirect, argValue, idxConst, loc);
|
intermediate.addIndex(EOpIndexDirect, argValue, idxConst, loc);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user