KhronosGroup / KhronosGroup/DataFormat

PVRTC minimum data work count

Đang mở
#12 4 bình luận 0 reaction 1 người được giao Được @fluppeteer nhận Xem trên GitHub
Ngôn ngữ chính
C
Star
43
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

As detailed here: https://github.com/KhronosGroup/KTX-Specification/issues/131
It appears that a PVRTC surface must always have at least 2x2=4 data words.
Specifically this seems from this: https://github.com/KhronosGroup/KTX-Specification/issues/131#issuecomment-664576977

> From the OpenGL ES `IMG_texture_compression_pvrtc` extension:
>
> > * For PVRTC 4BPP formats the `imageSize` is calculated as:
> > `(max(width, 8) * max(height, 8) * 4 + 7) / 8`
> > * For PVRTC 2BPP formats the `imageSize` is calculated as:
> > `(max(width, 16) * max(height, 8) * 2 + 7) / 8`
>
> Seems like 32 bytes is the minimum PVR image size possible.

This is kind-of ambiguous with this document's phrasing of "At least one word of PVRTC data must exist in each mip level of a texture.", because although it's correct it probably should read "At least four words of PVRTC data must exist in each mip level of a texture because interpolation requires 2x2 data words".

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.