Update WebGPU CTS (#30954)

* Update WebGPU CTS to ae15a59832

* Add internal to GPUErrorFilter to make more test work

* No crash in CreateRenderBundleEncoder

* getCompilationInfo

* Update expectations
This commit is contained in:
Samson 2023-12-28 18:32:21 +01:00 committed by GitHub
parent 90a25ab2e1
commit e79171ec01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
822 changed files with 135542 additions and 329305 deletions

View file

@ -1054,10 +1054,12 @@ impl GPUDeviceMethods for GPUDevice {
.map(|f| Some(convert_texture_format(*f)))
.collect::<Vec<_>>(),
),
depth_stencil: Some(wgt::RenderBundleDepthStencil {
format: convert_texture_format(descriptor.parent.depthStencilFormat.unwrap()),
depth_read_only: descriptor.depthReadOnly,
stencil_read_only: descriptor.stencilReadOnly,
depth_stencil: descriptor.parent.depthStencilFormat.map(|dsf| {
wgt::RenderBundleDepthStencil {
format: convert_texture_format(dsf),
depth_read_only: descriptor.depthReadOnly,
stencil_read_only: descriptor.stencilReadOnly,
}
}),
sample_count: descriptor.parent.sampleCount,
multiview: None,

View file

@ -63,7 +63,7 @@ impl GPUShaderModuleMethods for GPUShaderModule {
}
/// https://gpuweb.github.io/gpuweb/#dom-gpushadermodule-getcompilationinfo
fn CompilationInfo(&self) -> Fallible<Rc<Promise>> {
todo!()
fn GetCompilationInfo(&self) -> Fallible<Rc<Promise>> {
todo!("Missing in wgpu: https://github.com/gfx-rs/wgpu/issues/2170")
}
}

View file

@ -487,7 +487,7 @@ dictionary GPUPipelineLayoutDescriptor : GPUObjectDescriptorBase {
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
interface GPUShaderModule {
[Throws]
Promise<GPUCompilationInfo> compilationInfo();
Promise<GPUCompilationInfo> getCompilationInfo();
};
GPUShaderModule includes GPUObjectBase;
@ -1101,8 +1101,9 @@ interface GPUOutOfMemoryError {
typedef (GPUOutOfMemoryError or GPUValidationError) GPUError;
enum GPUErrorFilter {
"validation",
"out-of-memory",
"validation"
"internal",
};
partial interface GPUDevice {