@@ -98,7 +98,7 @@ namespace ZEngine::Rendering::Shaders
9898 LayoutBindingSpecificationMap[set].init (m_device->Arena , 10 );
9999 }
100100
101- LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = UB_resource.name , .DescriptorTypeValue = DescriptorType::UNIFORM_BUFFER, .Flags = ShaderStageFlags::VERTEX});
101+ LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = UB_resource.name . c_str () , .DescriptorTypeValue = DescriptorType::UNIFORM_BUFFER, .Flags = ShaderStageFlags::VERTEX});
102102 }
103103
104104 for (const auto & SB_resource : vertex_resources.storage_buffers )
@@ -111,7 +111,7 @@ namespace ZEngine::Rendering::Shaders
111111 LayoutBindingSpecificationMap[set].init (m_device->Arena , 10 );
112112 }
113113
114- LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = SB_resource.name , .DescriptorTypeValue = DescriptorType::STORAGE_BUFFER, .Flags = ShaderStageFlags::VERTEX});
114+ LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = SB_resource.name . c_str () , .DescriptorTypeValue = DescriptorType::STORAGE_BUFFER, .Flags = ShaderStageFlags::VERTEX});
115115 }
116116
117117 for (const auto & pushConstant_resource : vertex_resources.push_constant_buffers )
@@ -127,7 +127,7 @@ namespace ZEngine::Rendering::Shaders
127127 uint32_t memberSize = spirv_compiler->get_declared_struct_member_size (type, i);
128128 struct_total_size += memberSize;
129129 }
130- PushConstantSpecifications.push (PushConstantSpecification{.Name = pushConstant_resource.name , .Size = struct_total_size, .Offset = struct_offset, .Flags = ShaderStageFlags::VERTEX});
130+ PushConstantSpecifications.push (PushConstantSpecification{.Name = pushConstant_resource.name . c_str () , .Size = struct_total_size, .Offset = struct_offset, .Flags = ShaderStageFlags::VERTEX});
131131 /*
132132 * We update the offset for next iteration
133133 */
@@ -167,7 +167,7 @@ namespace ZEngine::Rendering::Shaders
167167 LayoutBindingSpecificationMap[set].init (m_device->Arena , 10 );
168168 }
169169
170- LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = UB_resource.name , .DescriptorTypeValue = DescriptorType::UNIFORM_BUFFER, .Flags = ShaderStageFlags::FRAGMENT});
170+ LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = UB_resource.name . c_str () , .DescriptorTypeValue = DescriptorType::UNIFORM_BUFFER, .Flags = ShaderStageFlags::FRAGMENT});
171171 }
172172
173173 for (const auto & SB_resource : fragment_resources.storage_buffers )
@@ -180,7 +180,7 @@ namespace ZEngine::Rendering::Shaders
180180 LayoutBindingSpecificationMap[set].init (m_device->Arena , 10 );
181181 }
182182
183- LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = SB_resource.name , .DescriptorTypeValue = DescriptorType::STORAGE_BUFFER, .Flags = ShaderStageFlags::FRAGMENT});
183+ LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Name = SB_resource.name . c_str () , .DescriptorTypeValue = DescriptorType::STORAGE_BUFFER, .Flags = ShaderStageFlags::FRAGMENT});
184184 }
185185
186186 for (const auto & pushConstant_resource : fragment_resources.push_constant_buffers )
@@ -196,7 +196,7 @@ namespace ZEngine::Rendering::Shaders
196196 uint32_t memberSize = spirv_compiler->get_declared_struct_member_size (type, i);
197197 struct_total_size += memberSize;
198198 }
199- PushConstantSpecifications.push (PushConstantSpecification{.Name = pushConstant_resource.name , .Size = struct_total_size, .Offset = struct_offset, .Flags = ShaderStageFlags::FRAGMENT});
199+ PushConstantSpecifications.push (PushConstantSpecification{.Name = pushConstant_resource.name . c_str () , .Size = struct_total_size, .Offset = struct_offset, .Flags = ShaderStageFlags::FRAGMENT});
200200 /*
201201 * We update the offset for next iteration
202202 */
@@ -225,7 +225,7 @@ namespace ZEngine::Rendering::Shaders
225225 LayoutBindingSpecificationMap[set].init (m_device->Arena , 10 );
226226 }
227227
228- LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Count = count, .Name = SI_resource.name , .DescriptorTypeValue = DescriptorType::COMBINED_IMAGE_SAMPLER, .Flags = ShaderStageFlags::FRAGMENT});
228+ LayoutBindingSpecificationMap[set].push (LayoutBindingSpecification{.Set = set, .Binding = binding, .Count = count, .Name = SI_resource.name . c_str () , .DescriptorTypeValue = DescriptorType::COMBINED_IMAGE_SAMPLER, .Flags = ShaderStageFlags::FRAGMENT});
229229 }
230230 }
231231 }
0 commit comments