(get-attribute-type {:keys [vertex]} attr-name)

Source

(defn get-attribute-type [{:keys [vertex]} attr-name] (or (get-in vertex [:inputs attr-name]) (get-in vertex [:attributes attr-name]) (throw (ex-info "You must define the attribute in your vertex shader's :inputs" {:attribute-name attr-name}))))