import { computeThreeTextureFormat } from "./computeThreeTextureFormat.js";
import { numericTypeFromBinaryDataType } from "./numericTypeFromBinaryDataType.js";

/**
 * @deprecated Use {@link attribute_spec_to_three_format} instead
 * @param {BinaryDataType} dt
 * @param {number} channel_count
 */
export function computeThreeTextureFormatFromDataType(dt, channel_count) {
    const numeric_type = numericTypeFromBinaryDataType(dt);

    return computeThreeTextureFormat(numeric_type, channel_count);
}

