/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + SECURITY_ATTRIBUTES.LPSECURITYDESCRIPTOR)); }
/** * Frees the specified array of pointers. * * @param pointers the pointer array to free * @param length the pointer array length */ public static void apiArrayFree(long pointers, int length) { for (int i = length; --i >= 0; ) { nmemFree(memGetAddress(pointers + (i << POINTER_SHIFT))); } }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + STBVorbisAlloc.ALLOC_BUFFER)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + STBTTPackRange.CHARDATA_FOR_RANGE)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkDebugMarkerObjectNameInfoEXT.POBJECTNAME)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkWaylandSurfaceCreateInfoKHR.DISPLAY)); check(memGetAddress(struct + VkWaylandSurfaceCreateInfoKHR.SURFACE)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYTYPES)); check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYCOUNTS)); check(memGetAddress(struct + VkObjectTableCreateInfoNVX.POBJECTENTRYUSAGEFLAGS)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkDebugMarkerMarkerInfoEXT.PMARKERNAME)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkXlibSurfaceCreateInfoKHR.DPY)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkDeviceQueueCreateInfo.PQUEUEPRIORITIES)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + VkAllocationCallbacks.PFNALLOCATION)); check(memGetAddress(struct + VkAllocationCallbacks.PFNREALLOCATION)); check(memGetAddress(struct + VkAllocationCallbacks.PFNFREE)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { long pAttributes = memGetAddress(struct + VkExportMemoryWin32HandleInfoNV.PATTRIBUTES); if (pAttributes != NULL) { SECURITY_ATTRIBUTES.validate(pAttributes); } }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + Texture.HANDLE)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + BGFXTransientIndexBuffer.DATA)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + ZSTDInBuffer.SRC)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { check(memGetAddress(struct + NkConvertConfig.VERTEX_LAYOUT)); }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { if (nqueueFamilyIndexCount(struct) != 0) { check(memGetAddress(struct + VkPhysicalDeviceImageDrmFormatModifierInfoEXT.PQUEUEFAMILYINDICES)); } }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { if (ndrmFormatModifierPlaneCount(struct) != 0) { check(memGetAddress(struct + VkImageDrmFormatModifierExplicitCreateInfoEXT.PPLANELAYOUTS)); } }
/** * Validates pointer members that should not be {@code NULL}. * * @param struct the struct to validate */ public static void validate(long struct) { if (nattachmentCount(struct) != 0) { check(memGetAddress(struct + VkFramebufferCreateInfo.PATTACHMENTS)); } }
/** Unsafe version of {@link #mTextureCoords(int) mTextureCoords}. */ @Nullable public static AIVector3D.Buffer nmTextureCoords(long struct, int index) { return AIVector3D.createSafe(memGetAddress(struct + AIAnimMesh.MTEXTURECOORDS + check(index, Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS) * POINTER_SIZE), nmNumVertices(struct)); } /** Unsafe version of {@link #mNumVertices}. */