|
@@ -1437,6 +1437,8 @@ void CGMSHLSLRuntime::AddHLSLFunctionInfo(Function *F, const FunctionDecl *FD) {
|
|
dxilInputQ = DxilParamInputQual::Inout;
|
|
dxilInputQ = DxilParamInputQual::Inout;
|
|
else if (parmDecl->hasAttr<HLSLOutAttr>())
|
|
else if (parmDecl->hasAttr<HLSLOutAttr>())
|
|
dxilInputQ = DxilParamInputQual::Out;
|
|
dxilInputQ = DxilParamInputQual::Out;
|
|
|
|
+ if (parmDecl->hasAttr<HLSLOutAttr>() && parmDecl->hasAttr<HLSLInAttr>())
|
|
|
|
+ dxilInputQ = DxilParamInputQual::Inout;
|
|
|
|
|
|
DXIL::InputPrimitive inputPrimitive = DXIL::InputPrimitive::Undefined;
|
|
DXIL::InputPrimitive inputPrimitive = DXIL::InputPrimitive::Undefined;
|
|
|
|
|