Skip to content
  • Joseph Jenner-Bailey's avatar
    Implement a vector utility that uses a custom allocator · 9585b28b
    Joseph Jenner-Bailey authored and Matteo Franchin's avatar Matteo Franchin committed
    
    
    Add util::vector to provide functionality similar to std::vector,
    i.e. growable arrays. util::vector does its allocations via a custom
    allocator provided via VkAllocationCallbacks and provides methods to
    check whether the allocation fails, e.g. try_push_back() returns false
    when the allocation fails and replaces std::vector's push_back() method
    that would rather raise an exception to report an allocation failure.
    
    Note that this commit switches on exceptions in the layer by removing
    the flag -fno-exceptions.
    
    util::vector is also used to store swapchain images.
    
    Change-Id: I2bf2b24bd06e198c198c4f4aedd8f7fced96a346
    Signed-off-by: default avatarJoe Jenner-Bailey <joe.jenner-bailey@arm.com>
    Signed-off-by: default avatarMatteo Franchin <matteo.franchin@arm.com>
    9585b28b