RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Function getMipLevelCount

    • 주어진 텍스처의 width, height에 대해 생성 가능한 mipmap 레벨의 개수를 계산합니다.

      width, height 중 더 큰 값을 기준으로 log2를 취해, 1을 더한 값을 반환합니다. (예: 256x128 텍스처는 9레벨, 1x1 텍스처는 1레벨)

      Parameters

      • width: number

        텍스처의 가로 크기 (픽셀)

      • height: number

        텍스처의 세로 크기 (픽셀)

      Returns number

      생성 가능한 mipmap 레벨의 개수