-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
area: validationIssues related to validation, diagnostics, and error handlingIssues related to validation, diagnostics, and error handlingtype: bugSomething isn't workingSomething isn't working
Milestone
Description
Methods like command_encoder_copy_texture_to_buffer
do check that ImageCopyTexture::mip_level
field of their source
and/or destination
parameters is valid for the relevant texture, by calling validate_texture_copy_range
. However, those checks occur after those functions have called TextureTracker::set_single
, which assumes that the mip_level
is in range.
The specific call chain is:
Global::command_encoder_copy_texture_to_buffer
, or relatedTextureTracker::set_single
wgpu_core::track::texture::insert_or_barrier_single
wgpu_core::track::texture::insert
ComplexTextureState::from_selector_state_iter
This last uses get_unchecked_mut
on selector.mips.start
.
Metadata
Metadata
Assignees
Labels
area: validationIssues related to validation, diagnostics, and error handlingIssues related to validation, diagnostics, and error handlingtype: bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status