All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.vulkan.NVXBinaryImport Maven / Gradle / Ivy

Go to download

A new generation graphics and compute API that provides high-efficiency, cross-platform access to modern GPUs used in a wide variety of devices from PCs and consoles to mobile phones and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.vulkan;

import javax.annotation.*;

import java.nio.*;

import org.lwjgl.system.*;

import static org.lwjgl.system.Checks.*;
import static org.lwjgl.system.JNI.*;
import static org.lwjgl.system.MemoryUtil.*;

/**
 * This extension allows applications to import CuBIN binaries and execute them.
 * 
 * 
Note
* *

There is currently no specification language written for this extension, so although it appears in the Vulkan headers, its interfaces are not summarized here.

*
* *
VK_NVX_binary_import
* *
*
Name String
*
{@code VK_NVX_binary_import}
*
Extension Type
*
Device extension
*
Registered Extension Number
*
30
*
Revision
*
1
*
Extension and Version Dependencies
*
    *
  • Requires Vulkan 1.0
  • *
*
Contact
*
*
* *
Other Extension Metadata
* *
*
Last Modified Date
*
2021-04-09
*
Contributors
*
    *
  • Eric Werness, NVIDIA
  • *
  • Liam Middlebrook, NVIDIA
  • *
*
*/ public class NVXBinaryImport { /** The extension specification version. */ public static final int VK_NVX_BINARY_IMPORT_SPEC_VERSION = 1; /** The extension name. */ public static final String VK_NVX_BINARY_IMPORT_EXTENSION_NAME = "VK_NVX_binary_import"; /** * Extends {@code VkStructureType}. * *
Enum values:
* *
    *
  • {@link #VK_STRUCTURE_TYPE_CU_MODULE_CREATE_INFO_NVX STRUCTURE_TYPE_CU_MODULE_CREATE_INFO_NVX}
  • *
  • {@link #VK_STRUCTURE_TYPE_CU_FUNCTION_CREATE_INFO_NVX STRUCTURE_TYPE_CU_FUNCTION_CREATE_INFO_NVX}
  • *
  • {@link #VK_STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX}
  • *
*/ public static final int VK_STRUCTURE_TYPE_CU_MODULE_CREATE_INFO_NVX = 1000029000, VK_STRUCTURE_TYPE_CU_FUNCTION_CREATE_INFO_NVX = 1000029001, VK_STRUCTURE_TYPE_CU_LAUNCH_INFO_NVX = 1000029002; /** * Extends {@code VkObjectType}. * *
Enum values:
* *
    *
  • {@link #VK_OBJECT_TYPE_CU_MODULE_NVX OBJECT_TYPE_CU_MODULE_NVX}
  • *
  • {@link #VK_OBJECT_TYPE_CU_FUNCTION_NVX OBJECT_TYPE_CU_FUNCTION_NVX}
  • *
*/ public static final int VK_OBJECT_TYPE_CU_MODULE_NVX = 1000029000, VK_OBJECT_TYPE_CU_FUNCTION_NVX = 1000029001; /** * Extends {@code VkDebugReportObjectTypeEXT}. * *
Enum values:
* *
    *
  • {@link #VK_DEBUG_REPORT_OBJECT_TYPE_CU_MODULE_NVX_EXT DEBUG_REPORT_OBJECT_TYPE_CU_MODULE_NVX_EXT}
  • *
  • {@link #VK_DEBUG_REPORT_OBJECT_TYPE_CU_FUNCTION_NVX_EXT DEBUG_REPORT_OBJECT_TYPE_CU_FUNCTION_NVX_EXT}
  • *
*/ public static final int VK_DEBUG_REPORT_OBJECT_TYPE_CU_MODULE_NVX_EXT = 1000029000, VK_DEBUG_REPORT_OBJECT_TYPE_CU_FUNCTION_NVX_EXT = 1000029001; protected NVXBinaryImport() { throw new UnsupportedOperationException(); } // --- [ vkCreateCuModuleNVX ] --- public static int nvkCreateCuModuleNVX(VkDevice device, long pCreateInfo, long pAllocator, long pModule) { long __functionAddress = device.getCapabilities().vkCreateCuModuleNVX; if (CHECKS) { check(__functionAddress); VkCuModuleCreateInfoNVX.validate(pCreateInfo); if (pAllocator != NULL) { VkAllocationCallbacks.validate(pAllocator); } } return callPPPPI(device.address(), pCreateInfo, pAllocator, pModule, __functionAddress); } @NativeType("VkResult") public static int vkCreateCuModuleNVX(VkDevice device, @NativeType("VkCuModuleCreateInfoNVX const *") VkCuModuleCreateInfoNVX pCreateInfo, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator, @NativeType("VkCuModuleNVX *") LongBuffer pModule) { if (CHECKS) { check(pModule, 1); } return nvkCreateCuModuleNVX(device, pCreateInfo.address(), memAddressSafe(pAllocator), memAddress(pModule)); } // --- [ vkCreateCuFunctionNVX ] --- public static int nvkCreateCuFunctionNVX(VkDevice device, long pCreateInfo, long pAllocator, long pFunction) { long __functionAddress = device.getCapabilities().vkCreateCuFunctionNVX; if (CHECKS) { check(__functionAddress); VkCuFunctionCreateInfoNVX.validate(pCreateInfo); if (pAllocator != NULL) { VkAllocationCallbacks.validate(pAllocator); } } return callPPPPI(device.address(), pCreateInfo, pAllocator, pFunction, __functionAddress); } @NativeType("VkResult") public static int vkCreateCuFunctionNVX(VkDevice device, @NativeType("VkCuFunctionCreateInfoNVX const *") VkCuFunctionCreateInfoNVX pCreateInfo, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator, @NativeType("VkCuFunctionNVX *") LongBuffer pFunction) { if (CHECKS) { check(pFunction, 1); } return nvkCreateCuFunctionNVX(device, pCreateInfo.address(), memAddressSafe(pAllocator), memAddress(pFunction)); } // --- [ vkDestroyCuModuleNVX ] --- public static void nvkDestroyCuModuleNVX(VkDevice device, long module, long pAllocator) { long __functionAddress = device.getCapabilities().vkDestroyCuModuleNVX; if (CHECKS) { check(__functionAddress); if (pAllocator != NULL) { VkAllocationCallbacks.validate(pAllocator); } } callPJPV(device.address(), module, pAllocator, __functionAddress); } public static void vkDestroyCuModuleNVX(VkDevice device, @NativeType("VkCuModuleNVX") long module, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator) { nvkDestroyCuModuleNVX(device, module, memAddressSafe(pAllocator)); } // --- [ vkDestroyCuFunctionNVX ] --- public static void nvkDestroyCuFunctionNVX(VkDevice device, long function, long pAllocator) { long __functionAddress = device.getCapabilities().vkDestroyCuFunctionNVX; if (CHECKS) { check(__functionAddress); if (pAllocator != NULL) { VkAllocationCallbacks.validate(pAllocator); } } callPJPV(device.address(), function, pAllocator, __functionAddress); } public static void vkDestroyCuFunctionNVX(VkDevice device, @NativeType("VkCuFunctionNVX") long function, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator) { nvkDestroyCuFunctionNVX(device, function, memAddressSafe(pAllocator)); } // --- [ vkCmdCuLaunchKernelNVX ] --- public static void nvkCmdCuLaunchKernelNVX(VkCommandBuffer commandBuffer, long pLaunchInfo) { long __functionAddress = commandBuffer.getCapabilities().vkCmdCuLaunchKernelNVX; if (CHECKS) { check(__functionAddress); VkCuLaunchInfoNVX.validate(pLaunchInfo); } callPPV(commandBuffer.address(), pLaunchInfo, __functionAddress); } public static void vkCmdCuLaunchKernelNVX(VkCommandBuffer commandBuffer, @NativeType("VkCuLaunchInfoNVX const *") VkCuLaunchInfoNVX pLaunchInfo) { nvkCmdCuLaunchKernelNVX(commandBuffer, pLaunchInfo.address()); } /** Array version of: {@link #vkCreateCuModuleNVX CreateCuModuleNVX} */ @NativeType("VkResult") public static int vkCreateCuModuleNVX(VkDevice device, @NativeType("VkCuModuleCreateInfoNVX const *") VkCuModuleCreateInfoNVX pCreateInfo, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator, @NativeType("VkCuModuleNVX *") long[] pModule) { long __functionAddress = device.getCapabilities().vkCreateCuModuleNVX; if (CHECKS) { check(__functionAddress); check(pModule, 1); VkCuModuleCreateInfoNVX.validate(pCreateInfo.address()); if (pAllocator != null) { VkAllocationCallbacks.validate(pAllocator.address()); } } return callPPPPI(device.address(), pCreateInfo.address(), memAddressSafe(pAllocator), pModule, __functionAddress); } /** Array version of: {@link #vkCreateCuFunctionNVX CreateCuFunctionNVX} */ @NativeType("VkResult") public static int vkCreateCuFunctionNVX(VkDevice device, @NativeType("VkCuFunctionCreateInfoNVX const *") VkCuFunctionCreateInfoNVX pCreateInfo, @Nullable @NativeType("VkAllocationCallbacks const *") VkAllocationCallbacks pAllocator, @NativeType("VkCuFunctionNVX *") long[] pFunction) { long __functionAddress = device.getCapabilities().vkCreateCuFunctionNVX; if (CHECKS) { check(__functionAddress); check(pFunction, 1); VkCuFunctionCreateInfoNVX.validate(pCreateInfo.address()); if (pAllocator != null) { VkAllocationCallbacks.validate(pAllocator.address()); } } return callPPPPI(device.address(), pCreateInfo.address(), memAddressSafe(pAllocator), pFunction, __functionAddress); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy