private void loadLayout(Struct struct) {
        ArrayList<Field> classFields = new ArrayList<Field>();
        resolvedFields = StructUtils.getFields(struct, classFields);
        for (Field field : classFields) {
            if (!Modifier.isFinal(field.getModifiers())) throw new RuntimeException("Can't load layout for " + struct + " every field must be final");
        }
        rootStruct = struct.getClass();
        StructUtils.setStd140BufferLayout(resolvedFields, std140, this);
    }
Create a Struct buffer from a Struct
@param str the source struct
jme3-core/src/main/java/com/jme3/util/struct/StructStd140BufferObject.java