Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix the calculation and validation of layer and mip ranges in create_…
…texture_view. The previous code was doing "selector.layers = base_layer .. count" instead of "base_layer .. base_layer + count" which looked dubious. Same thing for the mip range. It was also not taking the base layer count when in requested_layer_count when the texture was not a texture array which led to invalid ranges and underflow when asking for a non-zero base layer with a (non-array) 2d texture.
- Loading branch information