forked from google/bigwheels
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[glTF] Load UINT8 indices into UINT16 buffer
While glTF supports specifying indices in UINT8, Vulkan only supports UINT16 and UINT32 index buffers (without extensions). If we detect a UINT8 index buffer (componentType = 5121) then we repack it into the next best thing: a UINT16 buffer. This increases the size of the indices in the resulting repacked GPU buffer but allows us to support these scenes without extensions. This allows us to load more Khronos glTF-Sample-Assets like TextureCoordinateTest. Fixes google#453
- Loading branch information
1 parent
78e19af
commit 141a363
Showing
1 changed file
with
39 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters