diff options
author | Lenny Komow <lenny@lunarg.com> | 2018-11-19 17:08:04 -0700 |
---|---|---|
committer | Lenny Komow <lenny@lunarg.com> | 2018-11-19 17:10:06 -0700 |
commit | 9bbdd552f0fd62741aa1f1e02ab3eafc45cf3c1e (patch) | |
tree | bceb674c5cec23980f242b73acf98498a56e4b47 | |
parent | f012152666ac9defd3c50a6a60f29a2e1e6a981c (diff) | |
download | Vulkan-Tools-upstream/1.1.92.tar.gz Vulkan-Tools-upstream/1.1.92.tar.bz2 Vulkan-Tools-upstream/1.1.92.zip |
cube: Update cube/vkcube namingupstream/1.1.92
Change-Id: I633c97e9b82a6b5069cc2e7a83106f5d17600c6b
-rw-r--r-- | cube/cube.c | 14 | ||||
-rw-r--r-- | cube/cube.cpp | 4 |
2 files changed, 9 insertions, 9 deletions
diff --git a/cube/cube.c b/cube/cube.c index e88fdc2c..09723c8e 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -60,8 +60,8 @@ #define BILLION 1000000000L #define DEMO_TEXTURE_COUNT 1 -#define APP_SHORT_NAME "cube" -#define APP_LONG_NAME "The Vulkan Cube Demo Program" +#define APP_SHORT_NAME "vkcube" +#define APP_LONG_NAME "Vulkan Cube" // Allow a maximum of two outstanding presentation operations. #define FRAME_LAG 2 @@ -99,20 +99,20 @@ void DbgMsg(char *fmt, ...) { #include <android/log.h> #define ERR_EXIT(err_msg, err_class) \ do { \ - ((void)__android_log_print(ANDROID_LOG_INFO, "Cube", err_msg)); \ + ((void)__android_log_print(ANDROID_LOG_INFO, "Vulkan Cube", err_msg)); \ exit(1); \ } while (0) #ifdef VARARGS_WORKS_ON_ANDROID void DbgMsg(const char *fmt, ...) { va_list va; va_start(va, fmt); - __android_log_print(ANDROID_LOG_INFO, "Cube", fmt, va); + __android_log_print(ANDROID_LOG_INFO, "Vulkan Cube", fmt, va); va_end(va); } #else // VARARGS_WORKS_ON_ANDROID #define DbgMsg(fmt, ...) \ do { \ - ((void)__android_log_print(ANDROID_LOG_INFO, "Cube", fmt, ##__VA_ARGS__)); \ + ((void)__android_log_print(ANDROID_LOG_INFO, "Vulkan Cube", fmt, ##__VA_ARGS__)); \ } while (0) #endif // VARARGS_WORKS_ON_ANDROID #else @@ -3707,7 +3707,7 @@ static void demo_init(struct demo *demo, int argc, char **argv) { } #if defined(ANDROID) - ERR_EXIT("Usage: cube [--validate]\n", "Usage"); + ERR_EXIT("Usage: vkcube [--validate]\n", "Usage"); #else fprintf(stderr, "Usage:\n %s\t[--use_staging] [--validate] [--validate-checks-disabled] [--break]\n" @@ -3798,7 +3798,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, } demo.connection = hInstance; - strncpy(demo.name, "cube", APP_NAME_STR_LEN); + strncpy(demo.name, "Vulkan Cube", APP_NAME_STR_LEN); demo_create_window(&demo); demo_init_vk_swapchain(&demo); diff --git a/cube/cube.cpp b/cube/cube.cpp index bf51eda3..5b90fd2e 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -45,7 +45,7 @@ #define VERIFY(x) ((void)(x)) #endif -#define APP_SHORT_NAME "cube" +#define APP_SHORT_NAME "vkcube" #ifdef _WIN32 #define APP_NAME_STR_LEN 80 #endif @@ -2934,7 +2934,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, } demo.connection = hInstance; - strncpy(demo.name, "cube", APP_NAME_STR_LEN); + strncpy(demo.name, "Vulkan Cube", APP_NAME_STR_LEN); demo.create_window(); demo.init_vk_swapchain(); |