@@ -5,7 +5,7 @@ use bevy::prelude::Entity;
55use processing_core:: error:: { ProcessingError , Result } ;
66
77use crate :: shader_value:: ShaderValue ;
8- use crate :: { buffer_size, compute_dispatch , compute_set, shader_create_with_features} ;
8+ use crate :: { buffer_size, compute_dispatch_no_update , compute_set, shader_create_with_features} ;
99
1010const WG : u32 = 64 ;
1111
@@ -96,7 +96,7 @@ static MAP: Mutex<Option<(Entity, Entity)>> = Mutex::new(None);
9696
9797fn dispatch_particles ( compute : Entity , floats : u64 , components : u32 ) -> Result < ( ) > {
9898 let n = ( floats / components as u64 ) as u32 ;
99- compute_dispatch ( compute, n. div_ceil ( WG ) , 1 , 1 )
99+ compute_dispatch_no_update ( compute, n. div_ceil ( WG ) , 1 , 1 )
100100}
101101
102102fn check_components ( verb : & str , components : u32 ) -> Result < ( ) > {
@@ -373,7 +373,7 @@ pub fn lookup(
373373 compute_set ( c, "tex" , ShaderValue :: Texture ( tex) ) ?;
374374 compute_set ( c, "samp" , ShaderValue :: Texture ( tex) ) ?;
375375 let n = ( buffer_size ( dst) ? / 16 ) as u32 ;
376- compute_dispatch ( c, n. div_ceil ( WG ) , 1 , 1 )
376+ compute_dispatch_no_update ( c, n. div_ceil ( WG ) , 1 , 1 )
377377}
378378
379379pub const REDUCE_LENGTH : u32 = 0 ;
@@ -430,7 +430,7 @@ pub fn reduce_components(dst: Entity, src: Entity, components: u32, op: u32) ->
430430 compute_set ( c, "components" , ShaderValue :: UInt ( components) ) ?;
431431 compute_set ( c, "op" , ShaderValue :: UInt ( op) ) ?;
432432 let n = ( buffer_size ( dst) ? / 4 ) as u32 ;
433- compute_dispatch ( c, n. div_ceil ( WG ) , 1 , 1 )
433+ compute_dispatch_no_update ( c, n. div_ceil ( WG ) , 1 , 1 )
434434}
435435
436436const EXTRACT_SRC : & str = r#"
@@ -465,7 +465,7 @@ pub fn extract(dst: Entity, src: Entity, components: u32, index: u32) -> Result<
465465 compute_set ( c, "components" , ShaderValue :: UInt ( components) ) ?;
466466 compute_set ( c, "index" , ShaderValue :: UInt ( index) ) ?;
467467 let n = ( buffer_size ( dst) ? / 4 ) as u32 ;
468- compute_dispatch ( c, n. div_ceil ( WG ) , 1 , 1 )
468+ compute_dispatch_no_update ( c, n. div_ceil ( WG ) , 1 , 1 )
469469}
470470
471471const PACK_SRC : & str = r#"
@@ -534,7 +534,7 @@ pub fn pack(dst: Entity, sources: &[Entity]) -> Result<()> {
534534 compute_set ( c, "dst" , ShaderValue :: Buffer ( dst) ) ?;
535535 compute_set ( c, "components" , ShaderValue :: UInt ( components) ) ?;
536536 let n = ( buffer_size ( sources[ 0 ] ) ? / 4 ) as u32 ;
537- compute_dispatch ( c, n. div_ceil ( WG ) , 1 , 1 )
537+ compute_dispatch_no_update ( c, n. div_ceil ( WG ) , 1 , 1 )
538538}
539539
540540pub const GEN_UNIFORM : u32 = 0 ;
0 commit comments