src/third_party/angle/src/libANGLE/renderer/glslang_wrapper_utils.cpp
// Modify an existing out variable and add transform feedback information.
Modify an existing out variable and add transform feedback information.
Modify an existing out variable and add transform feedback information .
ShaderInterfaceVariableInfo *SetXfbInfo(ShaderInterfaceVariableInfoMap *infoMap,
                                        const std::string &varName,
                                        uint32_t xfbBuffer,
                                        uint32_t xfbOffset,
                                        uint32_t xfbStride)
{
    ShaderInterfaceVariableInfo *info = GetShaderInterfaceVariable(infoMap, varName);
    ASSERT(info->xfbBuffer == ShaderInterfaceVariableInfo::kInvalid);
    ASSERT(info->xfbOffset == ShaderInterfaceVariableInfo::kInvalid);
    ASSERT(info->xfbStride == ShaderInterfaceVariableInfo::kInvalid);
    info->xfbBuffer = xfbBuffer;
    info->xfbOffset = xfbOffset;
    info->xfbStride = xfbStride;
    return info;
}
ShaderInterfaceVariableInfo * SetXfbInfo ( ShaderInterfaceVariableInfoMap * infoMap , const std :: string & varName , uint32_t xfbBuffer , uint32_t xfbOffset , uint32_t xfbStride ) { ShaderInterfaceVariableInfo * info = GetShaderInterfaceVariable ( infoMap , varName ) ; ASSERT ( info -> xfbBuffer == ShaderInterfaceVariableInfo :: kInvalid ) ; ASSERT ( info -> xfbOffset == ShaderInterfaceVariableInfo :: kInvalid ) ; ASSERT ( info -> xfbStride == ShaderInterfaceVariableInfo :: kInvalid ) ; info -> xfbBuffer = xfbBuffer ; info -> xfbOffset = xfbOffset ; info -> xfbStride = xfbStride ; return info ; }
Modify an existing out variable and add transform feedback information.
Modify an existing out variable and add transform feedback information .