MCPcopy Create free account
hub / github.com/KhronosGroup/Vulkan-Samples / next_subpass

Method next_subpass

framework/core/command_buffer.h:988–1006  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986 descriptor_set_layout_binding_state.clear();
987
988 // Clear stored push constants
989 stored_push_constants.clear();
990
991 this->get_resource().nextSubpass(vk::SubpassContents::eInline);
992}
993
994template <vkb::BindingType bindingType>
995inline void CommandBuffer<bindingType>::push_constants(const std::vector<uint8_t> &values)
996{
997 uint32_t push_constant_size = to_u32(stored_push_constants.size() + values.size());
998
999 if (push_constant_size > max_push_constants_size)
1000 {
1001 LOGE("Push constant limit of {} exceeded (pushing {} bytes for a total of {} bytes)", max_push_constants_size, values.size(), push_constant_size);
1002 throw std::runtime_error("Push constant limit exceeded.");
1003 }
1004 else
1005 {
1006 stored_push_constants.insert(stored_push_constants.end(), values.begin(), values.end());
1007 }
1008}
1009

Callers 1

draw_implMethod · 0.80

Calls 7

set_subpass_indexMethod · 0.80
get_subpass_indexMethod · 0.80
resizeMethod · 0.45
set_color_blend_stateMethod · 0.45
resetMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected