Skip to content
Discussion options

You must be logged in to vote

I was able to resolve the issue. The reason for the error was that I was using the following code for loading:

let texture_handle: Handle<Image> = asset_server.load(
    "texture.ktx2",
    |settings: &mut ImageLoaderSettings| {
        settings.array_layout = Some(ImageArrayLayout::RowCount {
            rows: 256,
        })
    }
);

I lifted this pattern directly from the array texture example here, and thought that it would work with ktx2 textures as well (the example uses a png).

However it seems this method is intended specifically for loading 2d images as array textures, rather than GPU friendly formats like ktx2 or dds which seem to handle arrays more natively.

Just removing the I…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristopherBiscardi
Comment options

Answer selected by ac101m
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