Commit 81a55fda authored by Erich Gubler's avatar Erich Gubler
Browse files

Bug 1653164: refactor(webgpu): fix `WGPUTextureDescriptor` naming r=webgpu-reviewers,jgilbert

parent 22ebce39
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -380,9 +380,7 @@ RawId WebGPUChild::DeviceCreateBuffer(RawId aSelfId,

RawId WebGPUChild::DeviceCreateTexture(RawId aSelfId,
                                       const dom::GPUTextureDescriptor& aDesc) {
  // Somehow cbindgen does not successfully rename this into
  // WGPUTextureDescriptor. See wgpu_bindings/cbindgen.toml.
  ffi::WGPUTextureDescriptor______nsACString__FfiSlice_TextureFormat desc = {};
  ffi::WGPUTextureDescriptor desc = {};

  webgpu::StringHelper label(aDesc.mLabel);
  desc.label = label.Get();
+1 −2
Original line number Diff line number Diff line
@@ -59,8 +59,7 @@ include = ["BufferUsages"]
"CommandEncoderDescriptor______nsACString" = "WGPUCommandEncoderDescriptor"
"RenderBundleDescriptor______nsACString" = "WGPURenderBundleDescriptor"
"DeviceDescriptor______nsACString" = "WGPUDeviceDescriptor"
# This one does not work for some reason.
"WGPUTextureDescriptor______nsACString__FfiSlice_TextureFormat" = "WGPUTextureDescriptor"
"TextureDescriptor______nsACString__FfiSlice_TextureFormat" = "WGPUTextureDescriptor"
"SamplerDescriptor______nsACString" = "WGPUSamplerDescriptor"
"AdapterInformation_nsString" = "WGPUAdapterInformation"