mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
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:
parent
90a25ab2e1
commit
e79171ec01
822 changed files with 135542 additions and 329305 deletions
|
@ -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,
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue