Skip to content

partial loading #605

Answered by MarkCallow
AnonN10 asked this question in Q&A
Jul 28, 2022 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

If you use ktxTexture2_CreateFromNamedFile or ktxTexture2_CreateFromStdioStream and KTX_TEXTURE_CREATE_LOAD_IMAGE_DATA_BIT is not set, then only the header, levelIndex, etc. will be read from disk, modulo whatever buffering stdio may be doing. The data size is determined using fstat to get the file size. If you are reading a file yourself before calling ktxTexture2_CreateFromMemory you can also use fstat or stat.

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@MarkCallow
Comment options

@AnonN10
Comment options

@MarkCallow
Comment options

@AnonN10
Comment options

@MarkCallow
Comment options

Answer selected by AnonN10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants