/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public WNDCLASSEX set(WNDCLASSEX src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public DISPLAY_DEVICE set(DISPLAY_DEVICE src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public JNINativeMethod set(JNINativeMethod src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public STBVorbisAlloc set(STBVorbisAlloc src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDescriptorUpdateTemplateEntryKHR set(VkDescriptorUpdateTemplateEntryKHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkAttachmentDescription2KHR set(VkAttachmentDescription2KHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDescriptorPoolSize set(VkDescriptorPoolSize src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDescriptorUpdateTemplateCreateInfoKHR set(VkDescriptorUpdateTemplateCreateInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDescriptorSetLayoutSupportKHR set(VkDescriptorSetLayoutSupportKHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDebugUtilsMessengerCallbackDataEXT set(VkDebugUtilsMessengerCallbackDataEXT src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkAccelerationStructureCreateInfoNV set(VkAccelerationStructureCreateInfoNV src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkBindImageMemoryInfo set(VkBindImageMemoryInfo src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDescriptorPoolCreateInfo set(VkDescriptorPoolCreateInfo src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkImageDrmFormatModifierExplicitCreateInfoEXT set(VkImageDrmFormatModifierExplicitCreateInfoEXT src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkAccelerationStructureInfoNV set(VkAccelerationStructureInfoNV src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkAttachmentDescription set(VkAttachmentDescription src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkDeviceGroupRenderPassBeginInfoKHR set(VkDeviceGroupRenderPassBeginInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkCommandBufferInheritanceInfo set(VkCommandBufferInheritanceInfo src) { memCopy(src.address(), address(), SIZEOF); return this; }
/** * Copies the specified struct data to this struct. * * @param src the source struct * * @return this struct */ public VkBindBufferMemoryDeviceGroupInfoKHR set(VkBindBufferMemoryDeviceGroupInfoKHR src) { memCopy(src.address(), address(), SIZEOF); return this; }
public void mapMemory(ByteBuffer buffer){ PointerBuffer pData = memAllocPointer(1); int err = vkMapMemory(device, memory, 0, buffer.remaining(), 0, pData); long data = pData.get(0); memFree(pData); if (err != VK_SUCCESS) { throw new AssertionError("Failed to map buffer memory: " + VkUtil.translateVulkanResult(err)); } memCopy(memAddress(buffer), data, buffer.remaining()); memFree(buffer); vkUnmapMemory(device, memory); }