mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Update wgpu for supporting TextureView.usage (#34721)
* Update wgpu and add support for TextureView.usage
53f40794f2
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update expect
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Disable wgpu logging
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* remove unused wgpu features
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* new expect
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* re
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
* Update deny.toml
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
---------
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: Samson <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
1d5aac8875
commit
626ef037f3
9 changed files with 102 additions and 1901 deletions
|
@ -158,13 +158,13 @@ impl GPUCommandEncoderMethods<crate::DomTypeHolder> for GPUCommandEncoder {
|
|||
depth: wgpu_com::PassChannel {
|
||||
load_op: ds.depthLoadOp.as_ref().map(Convert::convert),
|
||||
store_op: ds.depthStoreOp.as_ref().map(Convert::convert),
|
||||
clear_value: *ds.depthClearValue.unwrap_or_default(),
|
||||
clear_value: ds.depthClearValue.map(|v| *v),
|
||||
read_only: ds.depthReadOnly,
|
||||
},
|
||||
stencil: wgpu_com::PassChannel {
|
||||
load_op: ds.stencilLoadOp.as_ref().map(Convert::convert),
|
||||
store_op: ds.stencilStoreOp.as_ref().map(Convert::convert),
|
||||
clear_value: ds.stencilClearValue,
|
||||
clear_value: Some(ds.stencilClearValue),
|
||||
read_only: ds.stencilReadOnly,
|
||||
},
|
||||
view: ds.view.id().0,
|
||||
|
|
|
@ -189,6 +189,7 @@ impl GPUTextureMethods<crate::DomTypeHolder> for GPUTexture {
|
|||
.map(|f| self.device.validate_texture_format_required_features(&f))
|
||||
.transpose()?,
|
||||
dimension: descriptor.dimension.map(|dimension| dimension.convert()),
|
||||
usage: Some(wgt::TextureUsages::from_bits_retain(descriptor.usage)),
|
||||
range: wgt::ImageSubresourceRange {
|
||||
aspect: match descriptor.aspect {
|
||||
GPUTextureAspect::All => wgt::TextureAspect::All,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue