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

Method reset

framework/core/command_buffer.h:1042–1052  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1040template <vkb::BindingType bindingType>
1041inline vk::Result CommandBuffer<bindingType>::reset_impl(vkb::CommandBufferResetMode reset_mode)
1042{
1043 assert(reset_mode == command_pool.get_reset_mode() && "Command buffer reset mode must match the one used by the pool to allocate it");
1044 if (reset_mode == vkb::CommandBufferResetMode::ResetIndividually)
1045 {
1046 this->get_resource().reset(vk::CommandBufferResetFlagBits::eReleaseResources);
1047 }
1048
1049 return vk::Result::eSuccess;
1050}
1051
1052template <vkb::BindingType bindingType>
1053inline void CommandBuffer<bindingType>::reset_query_pool(QueryPoolType const &query_pool, uint32_t first_query, uint32_t query_count)
1054{
1055 if constexpr (bindingType == vkb::BindingType::Cpp)

Callers 7

reset_poolMethod · 0.45
buildMethod · 0.45
~DeviceMethod · 0.45
begin_implMethod · 0.45
begin_render_passMethod · 0.45
next_subpassMethod · 0.45
reset_implMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected