| 162 | #if VK_EXT_debug_utils || VK_EXT_debug_marker |
| 163 | |
| 164 | void GraphContext::vkCmdBeginDebugBlock( VkCommandBuffer commandBuffer |
| 165 | , DebugBlockInfo const & labelInfo )const |
| 166 | { |
| 167 | #if VK_EXT_debug_utils |
| 168 | doBeginDebugUtilsLabel( commandBuffer |
| 169 | , { VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT |
| 170 | , nullptr |
| 171 | , labelInfo.markerName.c_str() |
| 172 | , { labelInfo.colour[0] |
| 173 | , labelInfo.colour[1] |
| 174 | , labelInfo.colour[2] |
| 175 | , labelInfo.colour[3] } } ); |
| 176 | #endif |
| 177 | #if VK_EXT_debug_marker |
| 178 | doDebugMarkerBegin( commandBuffer |
| 179 | , { VK_STRUCTURE_TYPE_DEBUG_MARKER_MARKER_INFO_EXT |
| 180 | , nullptr |
| 181 | , labelInfo.markerName.c_str() |
| 182 | , { labelInfo.colour[0] |
| 183 | , labelInfo.colour[1] |
| 184 | , labelInfo.colour[2] |
| 185 | , labelInfo.colour[3] } } ); |
| 186 | #endif |
| 187 | } |
| 188 | |
| 189 | void GraphContext::vkCmdEndDebugBlock( VkCommandBuffer commandBuffer )const |
| 190 | { |