address review and disable test

This commit is contained in:
Kunal Mohan 2020-09-23 20:30:44 +05:30
parent ef6c6a46fa
commit ba01ca1ba1
4 changed files with 9 additions and 21 deletions

View file

@ -78,15 +78,13 @@ impl GPURenderPipelineMethods for GPURenderPipeline {
/// https://gpuweb.github.io/gpuweb/#dom-gpupipelinebase-getbindgrouplayout
fn GetBindGroupLayout(&self, index: u32) -> Fallible<DomRoot<GPUBindGroupLayout>> {
if index > self.bind_group_layouts.len() as u32 ||
index > self.device.limits().maxBindGroups
{
if index > self.bind_group_layouts.len() as u32 {
return Err(Error::Range(String::from("Index out of bounds")));
}
return Ok(GPUBindGroupLayout::new(
Ok(GPUBindGroupLayout::new(
&self.global(),
self.bind_group_layouts[index as usize],
None,
));
))
}
}