NVidia Gameworks
  • Main Page
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

vulkannv.h

00001 // TAGRELEASE: PUBLIC
00002 //
00003 // Extra NVIDIA declarations and prototypes specific to our implementation.
00004 //
00005 
00006 #ifndef __VULKANNV_H__
00007 #define __VULKANNV_H__
00008 
00009 #include <vulkan/vulkan.h>
00010 
00011 #ifdef __cplusplus
00012 extern "C"
00013 {
00014 #endif
00015 
00016 // TODO: These enum values need to be finalized from the NVIDIA
00017 // enum range for Vulkan. They are placeholds for now. Also
00018 // it is TBD whether we even want to define our own return codes.
00019 #define VK_ERROR_INVALID_PARAMETER_NV VkResult(-1000)
00020 #define VK_ERROR_INVALID_ALIGNMENT_NV VkResult(-1001)
00021 #define VK_ERROR_INVALID_SHADER_NV    VkResult(-1002)
00022 
00023 typedef PFN_vkVoidFunction (VKAPI_CALL * PFN_vkGetProcAddressNV) (const char *name);
00024 typedef void (VKAPI_PTR * PFN_vkQueueSemaphoreWaitNV)(VkQueue queue, VkSemaphore semaphore);
00025 typedef void (VKAPI_PTR * PFN_vkQueuePresentNV) (VkQueue queue, VkImage image);
00026 typedef void (VKAPI_PTR * PFN_vkQueuePresentNoWaitNV) (VkQueue queue, VkImage image);
00027 typedef void (VKAPI_PTR * PFN_vkSignalPresentDoneNV) (VkDevice device, VkSemaphore semaphore, VkFence fence);
00028 
00029 #ifndef VK_NO_PROTOTYPES
00030 VKAPI_ATTR PFN_vkVoidFunction VKAPI_CALL vkGetProcAddressNV (const char *name);
00031 VKAPI_ATTR void VKAPI_CALL vkQueueSemaphoreWaitNV(VkQueue queue, VkSemaphore semaphore);
00032 VKAPI_ATTR void VKAPI_CALL vkQueuePresentNV (VkQueue queue, VkImage image);
00033 VKAPI_ATTR void VKAPI_CALL vkQueuePresentNoWaitNV (VkQueue queue, VkImage image);
00034 VKAPI_ATTR void VKAPI_CALL vkSignalPresentDoneNV (VkDevice device, VkSemaphore semaphore, VkFence fence);
00035 #endif // VK_NO_PROTOTYPES
00036 
00037 #ifdef __cplusplus
00038 } // extern "C"
00039 #endif
00040 
00041 #endif // __VULKANNV_H__
Generated on Fri Feb 24 10:54:05 2017 for NVIDIA GameWorks Graphics App Framework and Libraries by Doxygen
©2016 NVIDIA Corporation.