/** * Returns a new {@link VkImageSubresourceRange.Buffer} instance allocated on the specified {@link * MemoryStack}. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static Buffer mallocStack(int capacity, MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, capacity * SIZEOF), capacity); }
/** * Returns a new {@link VkImageSubresourceRange} instance allocated on the specified {@link * MemoryStack}. * * @param stack the stack from which to allocate */ public static VkImageSubresourceRange mallocStack(MemoryStack stack) { return create(stack.nmalloc(ALIGNOF, SIZEOF)); }