コード例 #1
0
 /**
  * Returns a new {@link VkImageSubresourceRange.Buffer} instance allocated with {@link
  * BufferUtils}.
  *
  * @param capacity the buffer capacity
  */
 public static Buffer create(int capacity) {
   return new Buffer(BufferUtils.createByteBuffer(capacity * SIZEOF));
 }
コード例 #2
0
 /** Returns a new {@link VkImageSubresourceRange} instance allocated with {@link BufferUtils}. */
 public static VkImageSubresourceRange create() {
   return new VkImageSubresourceRange(BufferUtils.createByteBuffer(SIZEOF));
 }