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

Method update

framework/core/allocated.h:671–686  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

669
670template <vkb::BindingType bindingType, typename HandleType>
671inline size_t Allocated<bindingType, HandleType>::update(const uint8_t *data, size_t size, size_t offset)
672{
673 if (persistent)
674 {
675 std::copy(data, data + size, mapped_data + offset);
676 flush();
677 }
678 else
679 {
680 map();
681 std::copy(data, data + size, mapped_data + offset);
682 flush();
683 unmap();
684 }
685 return size;
686}
687
688template <vkb::BindingType bindingType, typename HandleType>
689inline size_t Allocated<bindingType, HandleType>::update(void const *data, size_t size, size_t offset)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected