/** * Returns a new {@link VkImageSubresourceRange.Buffer} instance allocated on the specified {@link * MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate * @param capacity the buffer capacity */ public static Buffer callocStack(int capacity, MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, capacity, SIZEOF), capacity); }
/** * Returns a new {@link VkImageSubresourceRange} instance allocated on the specified {@link * MemoryStack} and initializes all its bits to zero. * * @param stack the stack from which to allocate */ public static VkImageSubresourceRange callocStack(MemoryStack stack) { return create(stack.ncalloc(ALIGNOF, 1, SIZEOF)); }