diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2016-05-19 17:10:58 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-05-20 08:28:09 -0600 |
| commit | b2ea603775cf8038ff2bb9ab86cb30aa903f4b87 (patch) | |
| tree | 336c0f45e94dc6060c6bbd2cf7552d4e9e04663b /layers/device_limits.h | |
| parent | 7cb5eba2c4de2e6be60e078190916a4410cf8bcd (diff) | |
| download | usermoji-b2ea603775cf8038ff2bb9ab86cb30aa903f4b87.tar.xz | |
layers: GH7, Fix bad var names in device_limits
Change-Id: I6dec3fd87f62ac171886562206f3fc528f24bc29
Diffstat (limited to 'layers/device_limits.h')
| -rw-r--r-- | layers/device_limits.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/layers/device_limits.h b/layers/device_limits.h index 1eec8ced..bec9dce1 100644 --- a/layers/device_limits.h +++ b/layers/device_limits.h @@ -24,7 +24,7 @@ using namespace std; // Device Limits ERROR codes -typedef enum _DEV_LIMITS_ERROR { +enum DEV_LIMITS_ERROR { DEVLIMITS_NONE, // Used for INFO & other non-error messages DEVLIMITS_INVALID_INSTANCE, // Invalid instance used DEVLIMITS_INVALID_PHYSICAL_DEVICE, // Invalid physical device used @@ -38,22 +38,22 @@ typedef enum _DEV_LIMITS_ERROR { DEVLIMITS_INVALID_UNIFORM_BUFFER_OFFSET, // Uniform buffer offset violates device limit granularity DEVLIMITS_INVALID_STORAGE_BUFFER_OFFSET, // Storage buffer offset violates device limit granularity DEVLIMITS_INVALID_BUFFER_UPDATE_ALIGNMENT, // Alignment requirement for buffer update is violated -} DEV_LIMITS_ERROR; +}; -typedef enum _CALL_STATE { +enum CALL_STATE{ UNCALLED, // Function has not been called QUERY_COUNT, // Function called once to query a count QUERY_DETAILS, // Function called w/ a count to query details -} CALL_STATE; +}; -typedef struct _INSTANCE_STATE { +struct INSTANCE_STATE { // Track the call state and array size for physical devices CALL_STATE vkEnumeratePhysicalDevicesState; uint32_t physicalDevicesCount; - _INSTANCE_STATE() : vkEnumeratePhysicalDevicesState(UNCALLED), physicalDevicesCount(0){}; -} INSTANCE_STATE; + INSTANCE_STATE() : vkEnumeratePhysicalDevicesState(UNCALLED), physicalDevicesCount(0){}; +}; -typedef struct _PHYSICAL_DEVICE_STATE { +struct PHYSICAL_DEVICE_STATE { // Track the call state and array sizes for various query functions CALL_STATE vkGetPhysicalDeviceQueueFamilyPropertiesState; uint32_t queueFamilyPropertiesCount; @@ -62,9 +62,9 @@ typedef struct _PHYSICAL_DEVICE_STATE { CALL_STATE vkGetPhysicalDeviceExtensionPropertiesState; uint32_t deviceExtensionCount; CALL_STATE vkGetPhysicalDeviceFeaturesState; - _PHYSICAL_DEVICE_STATE() + PHYSICAL_DEVICE_STATE() : vkGetPhysicalDeviceQueueFamilyPropertiesState(UNCALLED), queueFamilyPropertiesCount(0), vkGetPhysicalDeviceLayerPropertiesState(UNCALLED), deviceLayerCount(0), vkGetPhysicalDeviceExtensionPropertiesState(UNCALLED), deviceExtensionCount(0), vkGetPhysicalDeviceFeaturesState(UNCALLED){}; -} PHYSICAL_DEVICE_STATE; +}; |
