You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HI, All,
I'am trying to using egui render images, I have a need to render a sub area of the image. for example, a cliped region of an image or just want the image from a start position.
The following code is my way( I want an sub area from the position [100, 200]),
but it panics, the panic info
TextureHandle.set_partil panics in wgpu. here is detailed info:
size: [
3248,
2432,
]thread 'main' panicked at wgpu-22.1.0/src/backend/wgpu_core.rs:3411:5:
wgpu error: Validation Error
Caused by: In Queue::write_texture Copy of X 100..3348 would end up overrunning the bounds of the Destination texture of X size 3248
Do I have to reprocess the Texture to update the size to [3148, 2232]? or any one has a convinient way to do this?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
HI, All,
I'am trying to using egui render images, I have a need to render a sub area of the image. for example, a cliped region of an image or just want the image from a start position.
The following code is my way( I want an sub area from the position [100, 200]),
but it panics, the panic info
TextureHandle.set_partil panics in wgpu. here is detailed info:
size: [
3248,
2432,
]thread 'main' panicked at wgpu-22.1.0/src/backend/wgpu_core.rs:3411:5:
wgpu error: Validation Error
Caused by: In Queue::write_texture Copy of X 100..3348 would end up overrunning the bounds of the Destination texture of X size 3248
Do I have to reprocess the Texture to update the size to [3148, 2232]? or any one has a convinient way to do this?
Beta Was this translation helpful? Give feedback.
All reactions