From 0a4a71b345a44fba670d2dd799de8391a84ea35f Mon Sep 17 00:00:00 2001 From: Michael-Lai fx Date: Mon, 12 Nov 2018 11:41:34 +0800 Subject: [PATCH] Add no_mangle to extern "C" fn --- wgpu-native/src/command/compute.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wgpu-native/src/command/compute.rs b/wgpu-native/src/command/compute.rs index 9f72c54f4..7c8eeffde 100644 --- a/wgpu-native/src/command/compute.rs +++ b/wgpu-native/src/command/compute.rs @@ -40,6 +40,7 @@ pub extern "C" fn wgpu_compute_pass_end_pass( pass.cmb_id.value } +#[no_mangle] pub extern "C" fn wgpu_compute_pass_set_bind_group( pass_id: ComputePassId, index: u32, bind_group_id: BindGroupId, ) { @@ -55,6 +56,7 @@ pub extern "C" fn wgpu_compute_pass_set_bind_group( .bind_compute_descriptor_sets(layout, index as usize, iter::once(set), &[]); } +#[no_mangle] pub extern "C" fn wgpu_compute_pass_set_pipeline( pass_id: ComputePassId, pipeline_id: ComputePipelineId, ) { @@ -68,6 +70,7 @@ pub extern "C" fn wgpu_compute_pass_set_pipeline( .bind_compute_pipeline(pipeline); } +#[no_mangle] pub extern "C" fn wgpu_compute_pass_dispatch( pass_id: ComputePassId, x: u32, y: u32, z: u32, ) {