Implement GPUQueue.writeBuffer and GPUQueue.writeTexture

This commit is contained in:
Kunal Mohan 2020-07-04 13:29:23 +05:30
parent 8ef7f24541
commit fae66089fa
7 changed files with 199 additions and 12 deletions

View file

@ -874,7 +874,7 @@ pub fn convert_texture_view_dimension(
}
}
fn convert_texture_size_to_dict(size: &GPUExtent3D) -> GPUExtent3DDict {
pub fn convert_texture_size_to_dict(size: &GPUExtent3D) -> GPUExtent3DDict {
match *size {
GPUExtent3D::GPUExtent3DDict(ref dict) => GPUExtent3DDict {
width: dict.width,
@ -889,7 +889,7 @@ fn convert_texture_size_to_dict(size: &GPUExtent3D) -> GPUExtent3DDict {
}
}
fn convert_texture_size_to_wgt(size: &GPUExtent3DDict) -> wgt::Extent3d {
pub fn convert_texture_size_to_wgt(size: &GPUExtent3DDict) -> wgt::Extent3d {
wgt::Extent3d {
width: size.width,
height: size.height,