@@ -71,7 +71,7 @@ bool CoreChecks::VerifyDescriptorSetLayoutIsCompatibile(const vvl::DescriptorSet
7171 // Check descriptor counts
7272 const auto bound_total_count = to_bind_ds_layout_def->GetTotalDescriptorCount ();
7373 if (reference_ds_layout_def->GetTotalDescriptorCount () != to_bind_ds_layout_def->GetTotalDescriptorCount ()) {
74- std::stringstream error_str;
74+ std::ostringstream error_str;
7575 error_str << FormatHandle (reference_dsl_handle) << " from pipeline layout has "
7676 << reference_ds_layout_def->GetTotalDescriptorCount () << " total descriptors, but "
7777 << FormatHandle (to_bind_dsl_handle) << " , trying to bind, has " << bound_total_count << " total descriptors" ;
@@ -84,7 +84,7 @@ bool CoreChecks::VerifyDescriptorSetLayoutIsCompatibile(const vvl::DescriptorSet
8484 for (const auto [binding_index, layout_binding] : vvl::enumerate (reference_ds_layout_def->GetBindings ())) {
8585 const auto bound_binding = to_bind_ds_layout_def->GetBindingInfoFromIndex ((uint32_t )binding_index);
8686 if (layout_binding.descriptorCount != bound_binding->descriptorCount ) {
87- std::stringstream error_str;
87+ std::ostringstream error_str;
8888 error_str << " Binding " << layout_binding.binding << " for " << FormatHandle (reference_dsl_handle)
8989 << " from pipeline layout has a descriptorCount of " << layout_binding.descriptorCount << " but binding "
9090 << layout_binding.binding << " for " << FormatHandle (to_bind_dsl_handle)
@@ -96,15 +96,15 @@ bool CoreChecks::VerifyDescriptorSetLayoutIsCompatibile(const vvl::DescriptorSet
9696 error_msg = error_str.str ();
9797 return false ;
9898 } else if (layout_binding.descriptorType != bound_binding->descriptorType ) {
99- std::stringstream error_str;
99+ std::ostringstream error_str;
100100 error_str << " Binding " << layout_binding.binding << " for " << FormatHandle (reference_dsl_handle)
101101 << " from pipeline layout is type " << string_VkDescriptorType (layout_binding.descriptorType )
102102 << " but binding " << layout_binding.binding << " for " << FormatHandle (to_bind_dsl_handle)
103103 << " , trying to bind, is type " << string_VkDescriptorType (bound_binding->descriptorType ) << " " ;
104104 error_msg = error_str.str ();
105105 return false ;
106106 } else if (layout_binding.stageFlags != bound_binding->stageFlags ) {
107- std::stringstream error_str;
107+ std::ostringstream error_str;
108108 error_str << " Binding " << layout_binding.binding << " for " << FormatHandle (reference_dsl_handle)
109109 << " from pipeline layout has stageFlags " << string_VkShaderStageFlags (layout_binding.stageFlags )
110110 << " but binding " << layout_binding.binding << " for " << FormatHandle (to_bind_dsl_handle)
@@ -121,7 +121,7 @@ bool CoreChecks::VerifyDescriptorSetLayoutIsCompatibile(const vvl::DescriptorSet
121121 }
122122
123123 if (reference_ds_layout_def->GetCreateFlags () != to_bind_ds_layout_def->GetCreateFlags ()) {
124- std::stringstream error_str;
124+ std::ostringstream error_str;
125125 error_str << FormatHandle (reference_dsl_handle) << " from pipeline layout was created with ("
126126 << string_VkDescriptorSetLayoutCreateFlags (reference_ds_layout_def->GetCreateFlags ()) << " ), but "
127127 << FormatHandle (to_bind_dsl_handle) << " , trying to bind, has ("
@@ -134,7 +134,7 @@ bool CoreChecks::VerifyDescriptorSetLayoutIsCompatibile(const vvl::DescriptorSet
134134 const auto &ds_layout_flags = reference_ds_layout_def->GetBindingFlags ();
135135 const auto &bound_layout_flags = to_bind_ds_layout_def->GetBindingFlags ();
136136 if (bound_layout_flags != ds_layout_flags) {
137- std::stringstream error_str;
137+ std::ostringstream error_str;
138138 assert (ds_layout_flags.size () == bound_layout_flags.size ());
139139 size_t i;
140140 for (i = 0 ; i < ds_layout_flags.size (); i++) {
@@ -1416,7 +1416,7 @@ bool CoreChecks::ValidateImageUpdate(const vvl::ImageView &view_state, VkImageLa
14161416 default :
14171417 break ;
14181418 }
1419- std::stringstream error_str;
1419+ std::ostringstream error_str;
14201420 error_str << " Descriptor update with descriptorType " << string_VkDescriptorType (type)
14211421 << " is being updated with invalid imageLayout " << string_VkImageLayout (image_layout) << " for image "
14221422 << FormatHandle (image_state->Handle ()) << " in imageView " << FormatHandle (view_state.Handle ())
@@ -1790,7 +1790,7 @@ bool CoreChecks::ValidateWriteUpdate(const vvl::DescriptorSet &dst_set, const Vk
17901790 // stageFlags
17911791 if (current_binding->count > 0 ) {
17921792 if (current_binding->type != descriptor_type) {
1793- std::stringstream extra;
1793+ std::ostringstream extra;
17941794 // If using inline, easy to go outside of its range and not realize you are in the next descriptor
17951795 if (descriptor_type == VK_DESCRIPTOR_TYPE_INLINE_UNIFORM_BLOCK) {
17961796 extra << " \n For inline uniforms blocks, you might have your VkWriteDescriptorSet::dstArrayElement ("
@@ -2826,7 +2826,7 @@ bool CoreChecks::PreCallValidateCmdBindDescriptorBuffersEXT(VkCommandBuffer comm
28262826
28272827 auto list_buffers = [this ](std::vector<VkBuffer> &buffer_list) {
28282828 vvl::unordered_set<VkBuffer> unique_buffers;
2829- std::stringstream msg;
2829+ std::ostringstream msg;
28302830 for (const VkBuffer &buffer : buffer_list) {
28312831 msg << FormatHandle (buffer) << ' \n ' ;
28322832 unique_buffers.insert (buffer);
@@ -3234,7 +3234,7 @@ bool CoreChecks::ValidateDescriptorAddressInfoTexelBufferAlignment(const VkDescr
32343234 alignment_requirement = std::min (alignment_requirement, texel_block_size);
32353235 }
32363236 if (!IsPointerAligned (address_info.address , alignment_requirement)) {
3237- std::stringstream ss;
3237+ std::ostringstream ss;
32383238 ss << " (0x" << std::hex << address_info.address << std::dec << " ) must be aligned to " << alignment_requirement << " \n " ;
32393239 if (phys_dev_props_core13.storageTexelBufferOffsetSingleTexelAlignment ) {
32403240 ss << " storageTexelBufferOffsetSingleTexelAlignment is VK_TRUE, so we take "
@@ -3260,7 +3260,7 @@ bool CoreChecks::ValidateDescriptorAddressInfoTexelBufferAlignment(const VkDescr
32603260 alignment_requirement = std::min (alignment_requirement, texel_block_size);
32613261 }
32623262 if (!IsPointerAligned (address_info.address , alignment_requirement)) {
3263- std::stringstream ss;
3263+ std::ostringstream ss;
32643264 ss << " (0x" << std::hex << address_info.address << std::dec << " ) must be a aligned to " << alignment_requirement
32653265 << " \n " ;
32663266 if (phys_dev_props_core13.uniformTexelBufferOffsetSingleTexelAlignment ) {
0 commit comments