#include <vulkan.h>
#include <vk_debug_report_lunarg.h>
-#include <vkIcd.h>
+#include <vk_icd.h>
#include <vk_wsi_lunarg.h>
#include "icd.h"
+++ /dev/null
-#ifndef VKICD_H
-#define VKICD_H
-
-#include <stdint.h>
-#include <stdbool.h>
-#include "vk_platform.h"
-
-/*
- * The ICD must reserve space for a pointer for the loader's dispatch
- * table, at the start of <each object>.
- * The ICD must initialize this variable using the SET_LOADER_MAGIC_VALUE macro.
- */
-
-#define ICD_LOADER_MAGIC 0x01CDC0DE
-
-typedef union _VK_LOADER_DATA {
- uint32_t loaderMagic;
- void *loaderData;
-} VK_LOADER_DATA;
-
-static inline void set_loader_magic_value(VkObject pNewObject) {
- VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject;
- loader_info->loaderMagic = ICD_LOADER_MAGIC;
-}
-
-static inline bool valid_loader_magic_value(VkObject pNewObject) {
- const VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject;
- return loader_info->loaderMagic == ICD_LOADER_MAGIC;
-}
-
-#endif // VKICD_H
-
+++ /dev/null
-/* Need to define dispatch table
- * Core struct can then have ptr to dispatch table at the top
- * Along with object ptrs for current and next OBJ
- */
-#pragma once
-
-#include "vulkan.h"
-#include "vk_debug_report_lunarg.h"
-#include "vk_debug_marker_lunarg.h"
-#include "vk_wsi_lunarg.h"
-#include "vk_wsi_lunarg.h"
-#if defined(__GNUC__) && __GNUC__ >= 4
-# define VK_LAYER_EXPORT __attribute__((visibility("default")))
-#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
-# define VK_LAYER_EXPORT __attribute__((visibility("default")))
-#else
-# define VK_LAYER_EXPORT
-#endif
-
-typedef void * (*PFN_vkGPA)(VkObject obj, const char * pName);
-typedef struct VkBaseLayerObject_
-{
- PFN_vkGPA pGPA;
- VkObject nextObject;
- VkObject baseObject;
-} VkBaseLayerObject;
-
-typedef struct VkLayerDispatchTable_
-{
- PFN_vkGetDeviceProcAddr GetDeviceProcAddr;
- PFN_vkCreateDevice CreateDevice;
- PFN_vkDestroyDevice DestroyDevice;
- PFN_vkGetDeviceQueue GetDeviceQueue;
- PFN_vkQueueSubmit QueueSubmit;
- PFN_vkQueueWaitIdle QueueWaitIdle;
- PFN_vkDeviceWaitIdle DeviceWaitIdle;
- PFN_vkAllocMemory AllocMemory;
- PFN_vkFreeMemory FreeMemory;
- PFN_vkMapMemory MapMemory;
- PFN_vkUnmapMemory UnmapMemory;
- PFN_vkFlushMappedMemoryRanges FlushMappedMemoryRanges;
- PFN_vkInvalidateMappedMemoryRanges InvalidateMappedMemoryRanges;
- PFN_vkDestroyObject DestroyObject;
- PFN_vkGetObjectMemoryRequirements GetObjectMemoryRequirements;
- PFN_vkBindObjectMemory BindObjectMemory;
- PFN_vkQueueBindSparseBufferMemory QueueBindSparseBufferMemory;
- PFN_vkQueueBindSparseImageMemory QueueBindSparseImageMemory;
- PFN_vkCreateFence CreateFence;
- PFN_vkGetFenceStatus GetFenceStatus;
- PFN_vkResetFences ResetFences;
- PFN_vkWaitForFences WaitForFences;
- PFN_vkCreateSemaphore CreateSemaphore;
- PFN_vkQueueSignalSemaphore QueueSignalSemaphore;
- PFN_vkQueueWaitSemaphore QueueWaitSemaphore;
- PFN_vkCreateEvent CreateEvent;
- PFN_vkGetEventStatus GetEventStatus;
- PFN_vkSetEvent SetEvent;
- PFN_vkResetEvent ResetEvent;
- PFN_vkCreateQueryPool CreateQueryPool;
- PFN_vkGetQueryPoolResults GetQueryPoolResults;
- PFN_vkCreateBuffer CreateBuffer;
- PFN_vkCreateBufferView CreateBufferView;
- PFN_vkCreateImage CreateImage;
- PFN_vkGetImageSubresourceLayout GetImageSubresourceLayout;
- PFN_vkCreateImageView CreateImageView;
- PFN_vkCreateColorAttachmentView CreateColorAttachmentView;
- PFN_vkCreateDepthStencilView CreateDepthStencilView;
- PFN_vkCreateShaderModule CreateShaderModule;
- PFN_vkCreateShader CreateShader;
- PFN_vkCreateGraphicsPipeline CreateGraphicsPipeline;
- PFN_vkCreateGraphicsPipelineDerivative CreateGraphicsPipelineDerivative;
- PFN_vkCreateComputePipeline CreateComputePipeline;
- PFN_vkStorePipeline StorePipeline;
- PFN_vkLoadPipeline LoadPipeline;
- PFN_vkLoadPipelineDerivative LoadPipelineDerivative;
- PFN_vkCreatePipelineLayout CreatePipelineLayout;
- PFN_vkCreateSampler CreateSampler;
- PFN_vkCreateDescriptorSetLayout CreateDescriptorSetLayout;
- PFN_vkCreateDescriptorPool CreateDescriptorPool;
- PFN_vkResetDescriptorPool ResetDescriptorPool;
- PFN_vkAllocDescriptorSets AllocDescriptorSets;
- PFN_vkUpdateDescriptorSets UpdateDescriptorSets;
- PFN_vkCreateDynamicViewportState CreateDynamicViewportState;
- PFN_vkCreateDynamicRasterState CreateDynamicRasterState;
- PFN_vkCreateDynamicColorBlendState CreateDynamicColorBlendState;
- PFN_vkCreateDynamicDepthStencilState CreateDynamicDepthStencilState;
- PFN_vkCreateCommandBuffer CreateCommandBuffer;
- PFN_vkBeginCommandBuffer BeginCommandBuffer;
- PFN_vkEndCommandBuffer EndCommandBuffer;
- PFN_vkResetCommandBuffer ResetCommandBuffer;
- PFN_vkCmdBindPipeline CmdBindPipeline;
- PFN_vkCmdBindDynamicStateObject CmdBindDynamicStateObject;
- PFN_vkCmdBindDescriptorSets CmdBindDescriptorSets;
- PFN_vkCmdBindVertexBuffers CmdBindVertexBuffers;
- PFN_vkCmdBindIndexBuffer CmdBindIndexBuffer;
- PFN_vkCmdDraw CmdDraw;
- PFN_vkCmdDrawIndexed CmdDrawIndexed;
- PFN_vkCmdDrawIndirect CmdDrawIndirect;
- PFN_vkCmdDrawIndexedIndirect CmdDrawIndexedIndirect;
- PFN_vkCmdDispatch CmdDispatch;
- PFN_vkCmdDispatchIndirect CmdDispatchIndirect;
- PFN_vkCmdCopyBuffer CmdCopyBuffer;
- PFN_vkCmdCopyImage CmdCopyImage;
- PFN_vkCmdBlitImage CmdBlitImage;
- PFN_vkCmdCopyBufferToImage CmdCopyBufferToImage;
- PFN_vkCmdCopyImageToBuffer CmdCopyImageToBuffer;
- PFN_vkCmdUpdateBuffer CmdUpdateBuffer;
- PFN_vkCmdFillBuffer CmdFillBuffer;
- PFN_vkCmdClearColorImage CmdClearColorImage;
- PFN_vkCmdClearDepthStencilImage CmdClearDepthStencilImage;
- PFN_vkCmdClearColorAttachment CmdClearColorAttachment;
- PFN_vkCmdClearDepthStencilAttachment CmdClearDepthStencilAttachment;
- PFN_vkCmdResolveImage CmdResolveImage;
- PFN_vkCmdSetEvent CmdSetEvent;
- PFN_vkCmdResetEvent CmdResetEvent;
- PFN_vkCmdWaitEvents CmdWaitEvents;
- PFN_vkCmdPipelineBarrier CmdPipelineBarrier;
- PFN_vkCmdBeginQuery CmdBeginQuery;
- PFN_vkCmdEndQuery CmdEndQuery;
- PFN_vkCmdResetQueryPool CmdResetQueryPool;
- PFN_vkCmdWriteTimestamp CmdWriteTimestamp;
- PFN_vkCmdCopyQueryPoolResults CmdCopyQueryPoolResults;
- PFN_vkCreateFramebuffer CreateFramebuffer;
- PFN_vkCreateRenderPass CreateRenderPass;
- PFN_vkCmdBeginRenderPass CmdBeginRenderPass;
- PFN_vkCmdEndRenderPass CmdEndRenderPass;
- PFN_vkCmdExecuteCommands CmdExecuteCommands;
- PFN_vkCreateSwapChainWSI CreateSwapChainWSI;
- PFN_vkDestroySwapChainWSI DestroySwapChainWSI;
- PFN_vkGetSwapChainInfoWSI GetSwapChainInfoWSI;
- PFN_vkQueuePresentWSI QueuePresentWSI;
- PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback;
- PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback;
- PFN_vkDbgStringCallback DbgStringCallback;
- PFN_vkDbgStdioCallback DbgStdioCallback;
- PFN_vkDbgBreakCallback DbgBreakCallback;
-} VkLayerDispatchTable;
-
-typedef struct VkLayerInstanceDispatchTable_
-{
- PFN_vkGetInstanceProcAddr GetInstanceProcAddr;
- PFN_vkCreateInstance CreateInstance;
- PFN_vkDestroyInstance DestroyInstance;
- PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices;
- PFN_vkGetPhysicalDeviceFeatures GetPhysicalDeviceFeatures;
- PFN_vkGetPhysicalDeviceFormatInfo GetPhysicalDeviceFormatInfo;
- PFN_vkGetPhysicalDeviceLimits GetPhysicalDeviceLimits;
- PFN_vkGetPhysicalDeviceProperties GetPhysicalDeviceProperties;
- PFN_vkGetPhysicalDevicePerformance GetPhysicalDevicePerformance;
- PFN_vkGetPhysicalDeviceQueueCount GetPhysicalDeviceQueueCount;
- PFN_vkGetPhysicalDeviceQueueProperties GetPhysicalDeviceQueueProperties;
- PFN_vkGetPhysicalDeviceMemoryProperties GetPhysicalDeviceMemoryProperties;
- PFN_vkGetPhysicalDeviceExtensionCount GetPhysicalDeviceExtensionCount;
- PFN_vkGetPhysicalDeviceExtensionProperties GetPhysicalDeviceExtensionProperties;
- PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback;
- PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback;
- PFN_vkDbgStringCallback DbgStringCallback;
- PFN_vkDbgStdioCallback DbgStdioCallback;
- PFN_vkDbgBreakCallback DbgBreakCallback;
-} VkLayerInstanceDispatchTable;
-
-// LL node for tree of dbg callback functions
-typedef struct VkLayerDbgFunctionNode_
-{
- VkDbgMsgCallback msgCallback;
- PFN_vkDbgMsgCallback pfnMsgCallback;
- VkFlags msgFlags;
- const void *pUserData;
- struct VkLayerDbgFunctionNode_ *pNext;
-} VkLayerDbgFunctionNode;
-
-typedef enum VkLayerDbgAction_
-{
- VK_DBG_LAYER_ACTION_IGNORE = 0x0,
- VK_DBG_LAYER_ACTION_CALLBACK = 0x1,
- VK_DBG_LAYER_ACTION_LOG_MSG = 0x2,
- VK_DBG_LAYER_ACTION_BREAK = 0x4
-} VkLayerDbgAction;
-
-// ------------------------------------------------------------------------------------------------
-// API functions
#include "vulkan.h"
#include "vk_debug_marker_lunarg.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
typedef struct VkLayerDebugMarkerDispatchTable_
--- /dev/null
+#ifndef VKICD_H
+#define VKICD_H
+
+#include <stdint.h>
+#include <stdbool.h>
+#include "vk_platform.h"
+
+/*
+ * The ICD must reserve space for a pointer for the loader's dispatch
+ * table, at the start of <each object>.
+ * The ICD must initialize this variable using the SET_LOADER_MAGIC_VALUE macro.
+ */
+
+#define ICD_LOADER_MAGIC 0x01CDC0DE
+
+typedef union _VK_LOADER_DATA {
+ uint32_t loaderMagic;
+ void *loaderData;
+} VK_LOADER_DATA;
+
+static inline void set_loader_magic_value(VkObject pNewObject) {
+ VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject;
+ loader_info->loaderMagic = ICD_LOADER_MAGIC;
+}
+
+static inline bool valid_loader_magic_value(VkObject pNewObject) {
+ const VK_LOADER_DATA *loader_info = (VK_LOADER_DATA *) pNewObject;
+ return loader_info->loaderMagic == ICD_LOADER_MAGIC;
+}
+
+#endif // VKICD_H
+
--- /dev/null
+/* Need to define dispatch table
+ * Core struct can then have ptr to dispatch table at the top
+ * Along with object ptrs for current and next OBJ
+ */
+#pragma once
+
+#include "vulkan.h"
+#include "vk_debug_report_lunarg.h"
+#include "vk_debug_marker_lunarg.h"
+#include "vk_wsi_lunarg.h"
+#include "vk_wsi_lunarg.h"
+#if defined(__GNUC__) && __GNUC__ >= 4
+# define VK_LAYER_EXPORT __attribute__((visibility("default")))
+#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
+# define VK_LAYER_EXPORT __attribute__((visibility("default")))
+#else
+# define VK_LAYER_EXPORT
+#endif
+
+typedef void * (*PFN_vkGPA)(VkObject obj, const char * pName);
+typedef struct VkBaseLayerObject_
+{
+ PFN_vkGPA pGPA;
+ VkObject nextObject;
+ VkObject baseObject;
+} VkBaseLayerObject;
+
+typedef struct VkLayerDispatchTable_
+{
+ PFN_vkGetDeviceProcAddr GetDeviceProcAddr;
+ PFN_vkCreateDevice CreateDevice;
+ PFN_vkDestroyDevice DestroyDevice;
+ PFN_vkGetDeviceQueue GetDeviceQueue;
+ PFN_vkQueueSubmit QueueSubmit;
+ PFN_vkQueueWaitIdle QueueWaitIdle;
+ PFN_vkDeviceWaitIdle DeviceWaitIdle;
+ PFN_vkAllocMemory AllocMemory;
+ PFN_vkFreeMemory FreeMemory;
+ PFN_vkMapMemory MapMemory;
+ PFN_vkUnmapMemory UnmapMemory;
+ PFN_vkFlushMappedMemoryRanges FlushMappedMemoryRanges;
+ PFN_vkInvalidateMappedMemoryRanges InvalidateMappedMemoryRanges;
+ PFN_vkDestroyObject DestroyObject;
+ PFN_vkGetObjectMemoryRequirements GetObjectMemoryRequirements;
+ PFN_vkBindObjectMemory BindObjectMemory;
+ PFN_vkQueueBindSparseBufferMemory QueueBindSparseBufferMemory;
+ PFN_vkQueueBindSparseImageMemory QueueBindSparseImageMemory;
+ PFN_vkCreateFence CreateFence;
+ PFN_vkGetFenceStatus GetFenceStatus;
+ PFN_vkResetFences ResetFences;
+ PFN_vkWaitForFences WaitForFences;
+ PFN_vkCreateSemaphore CreateSemaphore;
+ PFN_vkQueueSignalSemaphore QueueSignalSemaphore;
+ PFN_vkQueueWaitSemaphore QueueWaitSemaphore;
+ PFN_vkCreateEvent CreateEvent;
+ PFN_vkGetEventStatus GetEventStatus;
+ PFN_vkSetEvent SetEvent;
+ PFN_vkResetEvent ResetEvent;
+ PFN_vkCreateQueryPool CreateQueryPool;
+ PFN_vkGetQueryPoolResults GetQueryPoolResults;
+ PFN_vkCreateBuffer CreateBuffer;
+ PFN_vkCreateBufferView CreateBufferView;
+ PFN_vkCreateImage CreateImage;
+ PFN_vkGetImageSubresourceLayout GetImageSubresourceLayout;
+ PFN_vkCreateImageView CreateImageView;
+ PFN_vkCreateColorAttachmentView CreateColorAttachmentView;
+ PFN_vkCreateDepthStencilView CreateDepthStencilView;
+ PFN_vkCreateShaderModule CreateShaderModule;
+ PFN_vkCreateShader CreateShader;
+ PFN_vkCreateGraphicsPipeline CreateGraphicsPipeline;
+ PFN_vkCreateGraphicsPipelineDerivative CreateGraphicsPipelineDerivative;
+ PFN_vkCreateComputePipeline CreateComputePipeline;
+ PFN_vkStorePipeline StorePipeline;
+ PFN_vkLoadPipeline LoadPipeline;
+ PFN_vkLoadPipelineDerivative LoadPipelineDerivative;
+ PFN_vkCreatePipelineLayout CreatePipelineLayout;
+ PFN_vkCreateSampler CreateSampler;
+ PFN_vkCreateDescriptorSetLayout CreateDescriptorSetLayout;
+ PFN_vkCreateDescriptorPool CreateDescriptorPool;
+ PFN_vkResetDescriptorPool ResetDescriptorPool;
+ PFN_vkAllocDescriptorSets AllocDescriptorSets;
+ PFN_vkUpdateDescriptorSets UpdateDescriptorSets;
+ PFN_vkCreateDynamicViewportState CreateDynamicViewportState;
+ PFN_vkCreateDynamicRasterState CreateDynamicRasterState;
+ PFN_vkCreateDynamicColorBlendState CreateDynamicColorBlendState;
+ PFN_vkCreateDynamicDepthStencilState CreateDynamicDepthStencilState;
+ PFN_vkCreateCommandBuffer CreateCommandBuffer;
+ PFN_vkBeginCommandBuffer BeginCommandBuffer;
+ PFN_vkEndCommandBuffer EndCommandBuffer;
+ PFN_vkResetCommandBuffer ResetCommandBuffer;
+ PFN_vkCmdBindPipeline CmdBindPipeline;
+ PFN_vkCmdBindDynamicStateObject CmdBindDynamicStateObject;
+ PFN_vkCmdBindDescriptorSets CmdBindDescriptorSets;
+ PFN_vkCmdBindVertexBuffers CmdBindVertexBuffers;
+ PFN_vkCmdBindIndexBuffer CmdBindIndexBuffer;
+ PFN_vkCmdDraw CmdDraw;
+ PFN_vkCmdDrawIndexed CmdDrawIndexed;
+ PFN_vkCmdDrawIndirect CmdDrawIndirect;
+ PFN_vkCmdDrawIndexedIndirect CmdDrawIndexedIndirect;
+ PFN_vkCmdDispatch CmdDispatch;
+ PFN_vkCmdDispatchIndirect CmdDispatchIndirect;
+ PFN_vkCmdCopyBuffer CmdCopyBuffer;
+ PFN_vkCmdCopyImage CmdCopyImage;
+ PFN_vkCmdBlitImage CmdBlitImage;
+ PFN_vkCmdCopyBufferToImage CmdCopyBufferToImage;
+ PFN_vkCmdCopyImageToBuffer CmdCopyImageToBuffer;
+ PFN_vkCmdUpdateBuffer CmdUpdateBuffer;
+ PFN_vkCmdFillBuffer CmdFillBuffer;
+ PFN_vkCmdClearColorImage CmdClearColorImage;
+ PFN_vkCmdClearDepthStencilImage CmdClearDepthStencilImage;
+ PFN_vkCmdClearColorAttachment CmdClearColorAttachment;
+ PFN_vkCmdClearDepthStencilAttachment CmdClearDepthStencilAttachment;
+ PFN_vkCmdResolveImage CmdResolveImage;
+ PFN_vkCmdSetEvent CmdSetEvent;
+ PFN_vkCmdResetEvent CmdResetEvent;
+ PFN_vkCmdWaitEvents CmdWaitEvents;
+ PFN_vkCmdPipelineBarrier CmdPipelineBarrier;
+ PFN_vkCmdBeginQuery CmdBeginQuery;
+ PFN_vkCmdEndQuery CmdEndQuery;
+ PFN_vkCmdResetQueryPool CmdResetQueryPool;
+ PFN_vkCmdWriteTimestamp CmdWriteTimestamp;
+ PFN_vkCmdCopyQueryPoolResults CmdCopyQueryPoolResults;
+ PFN_vkCreateFramebuffer CreateFramebuffer;
+ PFN_vkCreateRenderPass CreateRenderPass;
+ PFN_vkCmdBeginRenderPass CmdBeginRenderPass;
+ PFN_vkCmdEndRenderPass CmdEndRenderPass;
+ PFN_vkCmdExecuteCommands CmdExecuteCommands;
+ PFN_vkCreateSwapChainWSI CreateSwapChainWSI;
+ PFN_vkDestroySwapChainWSI DestroySwapChainWSI;
+ PFN_vkGetSwapChainInfoWSI GetSwapChainInfoWSI;
+ PFN_vkQueuePresentWSI QueuePresentWSI;
+ PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback;
+ PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback;
+ PFN_vkDbgStringCallback DbgStringCallback;
+ PFN_vkDbgStdioCallback DbgStdioCallback;
+ PFN_vkDbgBreakCallback DbgBreakCallback;
+} VkLayerDispatchTable;
+
+typedef struct VkLayerInstanceDispatchTable_
+{
+ PFN_vkGetInstanceProcAddr GetInstanceProcAddr;
+ PFN_vkCreateInstance CreateInstance;
+ PFN_vkDestroyInstance DestroyInstance;
+ PFN_vkEnumeratePhysicalDevices EnumeratePhysicalDevices;
+ PFN_vkGetPhysicalDeviceFeatures GetPhysicalDeviceFeatures;
+ PFN_vkGetPhysicalDeviceFormatInfo GetPhysicalDeviceFormatInfo;
+ PFN_vkGetPhysicalDeviceLimits GetPhysicalDeviceLimits;
+ PFN_vkGetPhysicalDeviceProperties GetPhysicalDeviceProperties;
+ PFN_vkGetPhysicalDevicePerformance GetPhysicalDevicePerformance;
+ PFN_vkGetPhysicalDeviceQueueCount GetPhysicalDeviceQueueCount;
+ PFN_vkGetPhysicalDeviceQueueProperties GetPhysicalDeviceQueueProperties;
+ PFN_vkGetPhysicalDeviceMemoryProperties GetPhysicalDeviceMemoryProperties;
+ PFN_vkGetPhysicalDeviceExtensionCount GetPhysicalDeviceExtensionCount;
+ PFN_vkGetPhysicalDeviceExtensionProperties GetPhysicalDeviceExtensionProperties;
+ PFN_vkDbgCreateMsgCallback DbgCreateMsgCallback;
+ PFN_vkDbgDestroyMsgCallback DbgDestroyMsgCallback;
+ PFN_vkDbgStringCallback DbgStringCallback;
+ PFN_vkDbgStdioCallback DbgStdioCallback;
+ PFN_vkDbgBreakCallback DbgBreakCallback;
+} VkLayerInstanceDispatchTable;
+
+// LL node for tree of dbg callback functions
+typedef struct VkLayerDbgFunctionNode_
+{
+ VkDbgMsgCallback msgCallback;
+ PFN_vkDbgMsgCallback pfnMsgCallback;
+ VkFlags msgFlags;
+ const void *pUserData;
+ struct VkLayerDbgFunctionNode_ *pNext;
+} VkLayerDbgFunctionNode;
+
+typedef enum VkLayerDbgAction_
+{
+ VK_DBG_LAYER_ACTION_IGNORE = 0x0,
+ VK_DBG_LAYER_ACTION_CALLBACK = 0x1,
+ VK_DBG_LAYER_ACTION_LOG_MSG = 0x2,
+ VK_DBG_LAYER_ACTION_BREAK = 0x4
+} VkLayerDbgAction;
+
+// ------------------------------------------------------------------------------------------------
+// API functions
#include <assert.h>
#include "loader_platform.h"
#include "vk_dispatch_table_helper.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layers_table.h"
// The following is #included again to catch certain OS-specific functions
// being used:
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#include "vkLayer.h"
+#include "vk_layer.h"
#include <vector>
using namespace std;
#include <unordered_map>
#include "loader_platform.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layers_config.h"
#include "vk_enum_validate_helper.h"
#include "vk_struct_validate_helper.h"
#include <stdarg.h>
#include <stdbool.h>
#include <unordered_map>
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layer_data.h"
#include "layers_table.h"
#include <string>
#include <map>
#include <string.h>
-#include <vkLayer.h>
+#include <vk_layer.h>
#include "loader_platform.h"
#include "layers_config.h"
// The following is #included again to catch certain OS-specific functions
*/
#include <stdio.h>
#include <stdbool.h>
-#include "vkLayer.h"
+#include "vk_layer.h"
static VkLayerDbgFunctionNode *g_pDbgFunctionHead = NULL;
static VkFlags g_reportFlags = (VkFlags) 0;
#include <assert.h>
#include <unordered_map>
#include "vk_dispatch_table_helper.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layers_table.h"
static device_table_map tableMap;
static instance_table_map tableInstanceMap;
*/
#pragma once
#include <vector>
-#include "vkLayer.h"
+#include "vk_layer.h"
#ifdef __cplusplus
extern "C" {
#include <unordered_map>
#include "loader_platform.h"
#include "vk_dispatch_table_helper.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
// The following is #included again to catch certain OS-specific functions
// being used:
#include "loader_platform.h"
* DEALINGS IN THE SOFTWARE.
*/
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "vk_enum_string_helper.h"
// Object Tracker ERROR codes
#include <vector>
#include "loader_platform.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layers_config.h"
#include "vk_enum_validate_helper.h"
#include "vk_struct_validate_helper.h"
#include <string>
#include "loader_platform.h"
#include "vk_dispatch_table_helper.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "layers_config.h"
#include "layers_msg.h"
#include "layers_table.h"
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
* DEALINGS IN THE SOFTWARE.
*/
-#include "vkLayer.h"
+#include "vk_layer.h"
#include "vk_debug_report_lunarg.h"
#include <alloca.h>
#endif
#include "debug_report.h"
-#include "vkLayer.h"
+#include "vk_layer.h"
typedef void (VKAPI *PFN_stringCallback)(char *message);
#include "gpa_helper.h"
#include "table_ops.h"
#include "debug_report.h"
-#include "vkIcd.h"
+#include "vk_icd.h"
#include "cJSON.h"
void loader_add_to_ext_list(
#include <vulkan.h>
#include <vk_debug_report_lunarg.h>
#include <vk_wsi_lunarg.h>
-#include <vkLayer.h>
-#include <vkIcd.h>
+#include <vk_layer.h>
+#include <vk_icd.h>
#include <assert.h>
#if defined(__GNUC__) && __GNUC__ >= 4
*/
#include <vulkan.h>
-#include <vkLayer.h>
+#include <vk_layer.h>
#include <string.h>
#include "loader.h"
#include "loader_platform.h"
def generate_header(self):
return "\n".join(["#include <vulkan.h>",
- "#include <vkLayer.h>",
+ "#include <vk_layer.h>",
"#include <string.h>"])
def _generate_init_dispatch(self, type):
class LayerFuncsSubcommand(Subcommand):
def generate_header(self):
- return '#include <vkLayer.h>\n#include "loader.h"'
+ return '#include <vk_layer.h>\n#include "loader.h"'
def generate_body(self):
return self._generate_dispatch_entrypoints("static")
gen_header.append('#include <string.h>')
gen_header.append('#include <unordered_map>')
gen_header.append('#include "loader_platform.h"')
- gen_header.append('#include "vkLayer.h"')
+ gen_header.append('#include "vk_layer.h"')
gen_header.append('//The following is #included again to catch certain OS-specific functions being used:')
gen_header.append('')
gen_header.append('#include "loader_platform.h"')
header_txt.append('')
header_txt.append('%s' % self.lineinfo.get())
header_txt.append('#include "loader_platform.h"')
- header_txt.append('#include "vkLayer.h"')
+ header_txt.append('#include "vk_layer.h"')
header_txt.append('#include "vk_struct_string_helper_cpp.h"')
header_txt.append('#include "layers_table.h"')
header_txt.append('#include <unordered_map>')
header_txt.append('#include <string.h>')
header_txt.append('#include <unordered_map>')
header_txt.append('#include "loader_platform.h"')
- header_txt.append('#include "vkLayer.h"')
+ header_txt.append('#include "vk_layer.h"')
header_txt.append('#include "threading.h"')
header_txt.append('#include "layers_config.h"')
header_txt.append('#include "vk_enum_validate_helper.h"')