aboutsummaryrefslogtreecommitdiff
path: root/layers/vk_layer_utils.h
diff options
context:
space:
mode:
authorMark Lobodzinski <mark@lunarg.com>2016-01-11 14:17:05 -0700
committerMark Lobodzinski <mark@lunarg.com>2016-02-08 13:57:36 -0700
commit19e65b4732bd6d1df86ce84949f3fc0fbe84197b (patch)
tree6911f6760fadf58d1a3dd1892439cc29bb780586 /layers/vk_layer_utils.h
parent7ee1c6d9619fa9dc66939ccd8756c393a18117f8 (diff)
downloadusermoji-19e65b4732bd6d1df86ce84949f3fc0fbe84197b.tar.xz
layers: Add UTF-8 String validation utility
Diffstat (limited to 'layers/vk_layer_utils.h')
-rw-r--r--layers/vk_layer_utils.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/layers/vk_layer_utils.h b/layers/vk_layer_utils.h
index 9c443284..41b78758 100644
--- a/layers/vk_layer_utils.h
+++ b/layers/vk_layer_utils.h
@@ -90,6 +90,12 @@ typedef enum VkFormatCompatibilityClass {
VK_FORMAT_COMPATIBILITY_CLASS_MAX_ENUM = 45
} VkFormatCompatibilityClass;
+typedef enum VkStringErrorFlagBits {
+ VK_STRING_ERROR_NONE = 0x00000000,
+ VK_STRING_ERROR_LENGTH = 0x00000001,
+ VK_STRING_ERROR_BAD_DATA = 0x00000002,
+} VkStringErrorFlagBits;
+typedef VkFlags VkStringErrorFlags;
static inline bool vk_format_is_undef(VkFormat format)
{
@@ -117,6 +123,7 @@ size_t vk_format_get_size(VkFormat format);
unsigned int vk_format_get_channel_count(VkFormat format);
VkFormatCompatibilityClass vk_format_get_compatibility_class(VkFormat format);
VkDeviceSize vk_safe_modulo(VkDeviceSize dividend, VkDeviceSize divisor);
+VkStringErrorFlags vk_string_validate(const int max_length, char *char_array);
static inline int u_ffs(int val)
{