File tree 2 files changed +24
-0
lines changed
2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -443,6 +443,20 @@ pub extern "C" fn wgpu_client_kill_compute_pipeline_id(
443
443
. free ( id)
444
444
}
445
445
446
+ #[ no_mangle]
447
+ pub extern "C" fn wgpu_client_make_render_pipeline_id (
448
+ client : & Client ,
449
+ device_id : id:: DeviceId ,
450
+ ) -> id:: RenderPipelineId {
451
+ let backend = device_id. backend ( ) ;
452
+ client
453
+ . identities
454
+ . lock ( )
455
+ . select ( backend)
456
+ . render_pipelines
457
+ . alloc ( backend)
458
+ }
459
+
446
460
#[ no_mangle]
447
461
pub extern "C" fn wgpu_client_kill_render_pipeline_id (
448
462
client : & Client ,
Original file line number Diff line number Diff line change @@ -327,6 +327,16 @@ pub extern "C" fn wgpu_server_compute_pipeline_destroy(
327
327
gfx_select ! ( self_id => global. compute_pipeline_destroy( self_id) ) ;
328
328
}
329
329
330
+ #[ no_mangle]
331
+ pub extern "C" fn wgpu_server_device_create_render_pipeline (
332
+ global : & Global ,
333
+ self_id : id:: DeviceId ,
334
+ desc : & core:: pipeline:: RenderPipelineDescriptor ,
335
+ new_id : id:: RenderPipelineId ,
336
+ ) {
337
+ gfx_select ! ( self_id => global. device_create_render_pipeline( self_id, desc, new_id) ) ;
338
+ }
339
+
330
340
#[ no_mangle]
331
341
pub extern "C" fn wgpu_server_render_pipeline_destroy (
332
342
global : & Global ,
You can’t perform that action at this time.
0 commit comments