@@ -76,14 +76,14 @@ void add_tensor_to_staging_node(
7676
7777 utils::uvec3 global_wg_size = graph.create_global_wg_size (in_tensor);
7878
79- vkapi::ParamsBindList ubos ;
79+ std::vector<PushConstantDataInfo> pcs ;
8080 if (graph.is_buffer_storage (in_tensor)) {
81- ubos. append (
82- { graph.sizes_ubo (in_tensor),
83- graph.strides_ubo (in_tensor),
84- graph.numel_ubo (in_tensor)}) ;
81+ pcs = {
82+ graph.sizes_pc_of (in_tensor),
83+ graph.strides_pc_of (in_tensor),
84+ graph.numel_pc_of (in_tensor)};
8585 } else {
86- ubos. append ( {graph.sizes_ubo (in_tensor)}) ;
86+ pcs = {graph.sizes_pc_of (in_tensor)};
8787 }
8888
8989 // Normally, the image_to_nchw shader is structured so that each thread reads
@@ -97,7 +97,7 @@ void add_tensor_to_staging_node(
9797 if (is_bitw8_shader (shader)) {
9898 uint32_t buffer_len = graph.get_staging (out_staging)->numel () / 4 ;
9999 global_wg_size = {buffer_len, 1 , 1 };
100- ubos. append ({ graph.numel_ubo (in_tensor)} );
100+ pcs. push_back ( graph.numel_pc_of (in_tensor));
101101 }
102102
103103 graph.execute_nodes ().emplace_back (new DispatchNode (
@@ -108,9 +108,9 @@ void add_tensor_to_staging_node(
108108 // Input and Outputs
109109 {{out_staging, vkapi::kWrite }, {in_tensor, vkapi::kRead }},
110110 // Parameter Buffers
111- ubos,
112- // Push Constants
113111 {},
112+ // Push Constants
113+ pcs,
114114 // Specialization Constants
115115 {graph.hashed_layout_of (in_tensor)},
116116 // Resize Args
0 commit comments