Lines Matching refs:layoutInfo
78 const sh::BlockMemberInfo &layoutInfo, in UpdateDefaultUniformBlock() argument
83 uint8_t *dst = uniformData->data() + layoutInfo.offset; in UpdateDefaultUniformBlock()
84 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) in UpdateDefaultUniformBlock()
86 uint32_t arrayOffset = arrayIndex * layoutInfo.arrayStride; in UpdateDefaultUniformBlock()
98 const int arrayOffset = writeIndex * layoutInfo.arrayStride; in UpdateDefaultUniformBlock()
111 const sh::BlockMemberInfo &layoutInfo, in ReadFromDefaultUniformBlock() argument
114 ASSERT(layoutInfo.offset != -1); in ReadFromDefaultUniformBlock()
117 const uint8_t *source = uniformData->data() + layoutInfo.offset; in ReadFromDefaultUniformBlock()
119 if (layoutInfo.arrayStride == 0 || layoutInfo.arrayStride == elementSize) in ReadFromDefaultUniformBlock()
121 const uint8_t *readPtr = source + arrayIndex * layoutInfo.arrayStride; in ReadFromDefaultUniformBlock()
127 const int arrayOffset = arrayIndex * layoutInfo.arrayStride; in ReadFromDefaultUniformBlock()
351 gl::ShaderMap<sh::BlockMemberInfo> layoutInfo; in initDefaultUniformLayoutMapping() local
375 layoutInfo[shaderType] = it->second; in initDefaultUniformLayoutMapping()
385 mDefaultUniformBlocks[shaderType].uniformLayout.push_back(layoutInfo[shaderType]); in initDefaultUniformLayoutMapping()
434 const sh::BlockMemberInfo &layoutInfo = uniformBlock.uniformLayout[location]; in setUniformImpl() local
437 if (layoutInfo.offset == -1) in setUniformImpl()
443 UpdateDefaultUniformBlock(count, locationInfo.arrayIndex, componentCount, v, layoutInfo, in setUniformImpl()
453 const sh::BlockMemberInfo &layoutInfo = uniformBlock.uniformLayout[location]; in setUniformImpl() local
456 if (layoutInfo.offset == -1) in setUniformImpl()
466 locationInfo.arrayIndex * layoutInfo.arrayStride + layoutInfo.offset; in setUniformImpl()
469 GLint elementOffset = i * layoutInfo.arrayStride + initialArrayOffset; in setUniformImpl()
497 const sh::BlockMemberInfo &layoutInfo = uniformBlock.uniformLayout[location]; in getUniformImpl() local
504 const uint8_t *ptrToElement = uniformBlock.uniformData.data() + layoutInfo.offset + in getUniformImpl()
505 (locationInfo.arrayIndex * layoutInfo.arrayStride); in getUniformImpl()
511 v, layoutInfo, &uniformBlock.uniformData); in getUniformImpl()
597 const sh::BlockMemberInfo &layoutInfo = uniformBlock.uniformLayout[location]; in setUniformMatrixfv() local
600 if (layoutInfo.offset == -1) in setUniformMatrixfv()
607 uniformBlock.uniformData.data() + layoutInfo.offset); in setUniformMatrixfv()