unpackMap takes a dense map of u32 -> structure, flattens the map into a slice, allocates the appropriate data and returns it as well as the length of the map.
(ctx context.Context, s *api.GlobalState, m interface{})
| 49 | // a slice, allocates the appropriate data and returns it as well as the |
| 50 | // length of the map. |
| 51 | func unpackMap(ctx context.Context, s *api.GlobalState, m interface{}) (api.AllocResult, uint32) { |
| 52 | return unpackMapWithAllocator(func(v ...interface{}) api.AllocResult { |
| 53 | return s.AllocDataOrPanic(ctx, v...) |
| 54 | }, m) |
| 55 | } |
| 56 | |
| 57 | // allocateNewCmdBufFromExistingOneAndBegin takes an existing VkCommandBuffer |
| 58 | // and allocate then begin a new one with the same allocation/inheritance and |
no test coverage detected