Implement GPUCommandEncoder.copy commands

This commit is contained in:
Kunal Mohan 2020-07-21 16:16:12 +05:30
parent 132d8b4601
commit 5285c07f1f
6 changed files with 289 additions and 99 deletions

View file

@ -1065,10 +1065,14 @@ pub fn convert_texture_size_to_dict(size: &GPUExtent3D) -> GPUExtent3DDict {
height: dict.height,
depth: dict.depth,
},
GPUExtent3D::RangeEnforcedUnsignedLongSequence(ref v) => GPUExtent3DDict {
width: v[0],
height: v[1],
depth: v[2],
GPUExtent3D::RangeEnforcedUnsignedLongSequence(ref v) => {
let mut w = v.clone();
w.resize(3, 1);
GPUExtent3DDict {
width: w[0],
height: w[1],
depth: w[2],
}
},
}
}