getMemberOffsetInBytes method
- String memberName
Get the reflected offset of a named member in the uniform struct.
Returns null
if the shader does not contain a uniform struct with the
given name, or if the uniform struct does not contain a member with the
given name.
Implementation
int? getMemberOffsetInBytes(String memberName) {
int offset = shader._getUniformMemberOffset(uniformName, memberName);
return offset < 0 ? null : offset;
}