11use crate :: GLOBAL ;
22
3- pub use core :: command:: { compute_ffi:: * , render_ffi:: * } ;
3+ pub use wgc :: command:: { compute_ffi:: * , render_ffi:: * } ;
44
5- use core :: { gfx_select, id} ;
5+ use wgc :: { gfx_select, id} ;
66
77#[ no_mangle]
88pub extern "C" fn wgpu_command_encoder_finish (
@@ -33,8 +33,8 @@ pub extern "C" fn wgpu_command_encoder_copy_buffer_to_buffer(
3333#[ no_mangle]
3434pub extern "C" fn wgpu_command_encoder_copy_buffer_to_texture (
3535 command_encoder_id : id:: CommandEncoderId ,
36- source : & core :: command:: BufferCopyView ,
37- destination : & core :: command:: TextureCopyView ,
36+ source : & wgc :: command:: BufferCopyView ,
37+ destination : & wgc :: command:: TextureCopyView ,
3838 copy_size : wgt:: Extent3d ,
3939) {
4040 gfx_select ! ( command_encoder_id => GLOBAL . command_encoder_copy_buffer_to_texture(
@@ -47,8 +47,8 @@ pub extern "C" fn wgpu_command_encoder_copy_buffer_to_texture(
4747#[ no_mangle]
4848pub extern "C" fn wgpu_command_encoder_copy_texture_to_buffer (
4949 command_encoder_id : id:: CommandEncoderId ,
50- source : & core :: command:: TextureCopyView ,
51- destination : & core :: command:: BufferCopyView ,
50+ source : & wgc :: command:: TextureCopyView ,
51+ destination : & wgc :: command:: BufferCopyView ,
5252 copy_size : wgt:: Extent3d ,
5353) {
5454 gfx_select ! ( command_encoder_id => GLOBAL . command_encoder_copy_texture_to_buffer(
@@ -61,8 +61,8 @@ pub extern "C" fn wgpu_command_encoder_copy_texture_to_buffer(
6161#[ no_mangle]
6262pub extern "C" fn wgpu_command_encoder_copy_texture_to_texture (
6363 command_encoder_id : id:: CommandEncoderId ,
64- source : & core :: command:: TextureCopyView ,
65- destination : & core :: command:: TextureCopyView ,
64+ source : & wgc :: command:: TextureCopyView ,
65+ destination : & wgc :: command:: TextureCopyView ,
6666 copy_size : wgt:: Extent3d ,
6767) {
6868 gfx_select ! ( command_encoder_id => GLOBAL . command_encoder_copy_texture_to_texture(
@@ -80,9 +80,9 @@ pub extern "C" fn wgpu_command_encoder_copy_texture_to_texture(
8080#[ no_mangle]
8181pub unsafe extern "C" fn wgpu_command_encoder_begin_render_pass (
8282 encoder_id : id:: CommandEncoderId ,
83- desc : & core :: command:: RenderPassDescriptor ,
84- ) -> * mut core :: command:: RawPass {
85- let pass = core :: command:: RawPass :: new_render ( encoder_id, desc) ;
83+ desc : & wgc :: command:: RenderPassDescriptor ,
84+ ) -> * mut wgc :: command:: RawPass {
85+ let pass = wgc :: command:: RawPass :: new_render ( encoder_id, desc) ;
8686 Box :: into_raw ( Box :: new ( pass) )
8787}
8888
@@ -98,7 +98,7 @@ pub unsafe extern "C" fn wgpu_render_pass_end_pass(pass_id: id::RenderPassId) {
9898}
9999
100100#[ no_mangle]
101- pub unsafe extern "C" fn wgpu_render_pass_destroy ( pass : * mut core :: command:: RawPass ) {
101+ pub unsafe extern "C" fn wgpu_render_pass_destroy ( pass : * mut wgc :: command:: RawPass ) {
102102 let _ = Box :: from_raw ( pass) . into_vec ( ) ;
103103}
104104
@@ -110,9 +110,9 @@ pub unsafe extern "C" fn wgpu_render_pass_destroy(pass: *mut core::command::RawP
110110#[ no_mangle]
111111pub unsafe extern "C" fn wgpu_command_encoder_begin_compute_pass (
112112 encoder_id : id:: CommandEncoderId ,
113- _desc : Option < & core :: command:: ComputePassDescriptor > ,
114- ) -> * mut core :: command:: RawPass {
115- let pass = core :: command:: RawPass :: new_compute ( encoder_id) ;
113+ _desc : Option < & wgc :: command:: ComputePassDescriptor > ,
114+ ) -> * mut wgc :: command:: RawPass {
115+ let pass = wgc :: command:: RawPass :: new_compute ( encoder_id) ;
116116 Box :: into_raw ( Box :: new ( pass) )
117117}
118118
@@ -123,6 +123,6 @@ pub unsafe extern "C" fn wgpu_compute_pass_end_pass(pass_id: id::ComputePassId)
123123}
124124
125125#[ no_mangle]
126- pub unsafe extern "C" fn wgpu_compute_pass_destroy ( pass : * mut core :: command:: RawPass ) {
126+ pub unsafe extern "C" fn wgpu_compute_pass_destroy ( pass : * mut wgc :: command:: RawPass ) {
127127 let _ = Box :: from_raw ( pass) . into_vec ( ) ;
128128}
0 commit comments