Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AlphaModder/af288aaf300014bca94262c3957cc988 to your computer and use it in GitHub Desktop.
Save AlphaModder/af288aaf300014bca94262c3957cc988 to your computer and use it in GitHub Desktop.
Updating git repository `https://github.com/gfx-rs/wgpu`
Checking wgpu v0.5.0 (C:\Users\****\Projects\Rust\wgpu-rs)
error[E0432]: unresolved import `wgt::TextureDataLayout`
--> src\lib.rs:26:80
|
26 | SwapChainDescriptor, SwapChainStatus, TextureAspect, TextureComponentType, TextureDataLayout,
| ^^^^^^^^^^^^^^^^^ no `TextureDataLayout` in the root
error[E0412]: cannot find type `TextureDataLayout` in crate `wgt`
--> src\backend\direct.rs:885:27
|
885 | data_layout: wgt::TextureDataLayout,
| ^^^^^^^^^^^^^^^^^ not found in `wgt`
error[E0412]: cannot find type `TextureDataLayout` in crate `wgt`
--> src\lib.rs:303:27
|
303 | data_layout: wgt::TextureDataLayout,
| ^^^^^^^^^^^^^^^^^ not found in `wgt`
error[E0412]: cannot find type `TextureDataLayout` in crate `wgt`
--> src\lib.rs:865:22
|
865 | pub layout: wgt::TextureDataLayout,
| ^^^^^^^^^^^^^^^^^ not found in `wgt`
error[E0412]: cannot find type `TextureDataLayout` in crate `wgt`
--> src\lib.rs:1613:27
|
1613 | data_layout: wgt::TextureDataLayout,
| ^^^^^^^^^^^^^^^^^ not found in `wgt`
error[E0560]: struct `wgpu_core::command::transfer::BufferCopyView` has no field named `layout`
--> src\backend\direct.rs:172:9
|
172 | layout: view.layout,
| ^^^^^^ `wgpu_core::command::transfer::BufferCopyView` does not have this field
|
= note: available fields are: `buffer`, `offset`, `bytes_per_row`, `rows_per_image`
error[E0063]: missing field `array_layer` in initializer of `wgpu_core::command::transfer::TextureCopyView`
--> src\backend\direct.rs:177:5
|
177 | wgc::command::TextureCopyView {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `array_layer`
error[E0308]: mismatched types
--> src\backend\direct.rs:758:13
|
758 | &copy_size
| ^^^^^^^^^^
| |
| expected struct `wgpu_types::Extent3d`, found `&wgpu_types::Extent3d`
| help: consider removing the borrow: `copy_size`
error[E0308]: mismatched types
--> src\backend\direct.rs:773:13
|
773 | &copy_size
| ^^^^^^^^^^
| |
| expected struct `wgpu_types::Extent3d`, found `&wgpu_types::Extent3d`
| help: consider removing the borrow: `copy_size`
error[E0308]: mismatched types
--> src\backend\direct.rs:788:13
|
788 | &copy_size
| ^^^^^^^^^^
| |
| expected struct `wgpu_types::Extent3d`, found `&wgpu_types::Extent3d`
| help: consider removing the borrow: `copy_size`
error[E0308]: mismatched types
--> src\backend\direct.rs:877:63
|
877 | gfx_select!(*queue => self.queue_write_buffer(*queue, *buffer, offset, data))
| ^^^^^^^ expected `&[u8]`, found struct `wgpu_core::id::Id`
|
= note: expected reference `&[u8]`
found struct `wgpu_core::id::Id<wgpu_core::resource::Buffer<gfx_backend_empty::Backend>>`
error[E0308]: mismatched types
--> src\backend\direct.rs:877:72
|
877 | gfx_select!(*queue => self.queue_write_buffer(*queue, *buffer, offset, data))
| ^^^^^^ expected struct `wgpu_core::id::Id`, found `u64`
|
= note: expected struct `wgpu_core::id::Id<wgpu_core::resource::Buffer<gfx_backend_empty::Backend>>`
found type `u64`
error[E0308]: mismatched types
--> src\backend\direct.rs:877:80
|
877 | gfx_select!(*queue => self.queue_write_buffer(*queue, *buffer, offset, data))
| ^^^^ expected `u64`, found `&[u8]`
error[E0107]: wrong number of type arguments: expected 0, found 1
--> src\backend\direct.rs:17:55
|
17 | wgt::Backend::Vulkan => $global.$method::<wgc::backend::Vulkan>( $($param),+ ),
| ^^^^^^^^^^^^^^^^^^^^ unexpected type argument
...
888 | / gfx_select!(*queue => self.queue_write_texture(
889 | | *queue,
890 | | &map_texture_copy_view(texture),
891 | | data,
892 | | &data_layout,
893 | | &size
894 | | ))
| |__________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0107]: wrong number of type arguments: expected 0, found 1
--> src\backend\direct.rs:21:53
|
21 | wgt::Backend::Dx12 => $global.$method::<wgc::backend::Dx12>( $($param),+ ),
| ^^^^^^^^^^^^^^^^^^ unexpected type argument
...
888 | / gfx_select!(*queue => self.queue_write_texture(
889 | | *queue,
890 | | &map_texture_copy_view(texture),
891 | | data,
892 | | &data_layout,
893 | | &size
894 | | ))
| |__________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0107]: wrong number of type arguments: expected 0, found 1
--> src\backend\direct.rs:23:53
|
23 | wgt::Backend::Dx11 => $global.$method::<wgc::backend::Dx11>( $($param),+ ),
| ^^^^^^^^^^^^^^^^^^ unexpected type argument
...
888 | / gfx_select!(*queue => self.queue_write_texture(
889 | | *queue,
890 | | &map_texture_copy_view(texture),
891 | | data,
892 | | &data_layout,
893 | | &size
894 | | ))
| |__________- in this macro invocation
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 16 previous errors
Some errors have detailed explanations: E0063, E0107, E0308, E0412, E0432, E0560.
For more information about an error, try `rustc --explain E0063`.
error: could not compile `wgpu`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment