| 669 | |
| 670 | template <vkb::BindingType bindingType, typename HandleType> |
| 671 | inline 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 | |
| 688 | template <vkb::BindingType bindingType, typename HandleType> |
| 689 | inline size_t Allocated<bindingType, HandleType>::update(void const *data, size_t size, size_t offset) |
no outgoing calls
no test coverage detected