#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <assert.h>
#include <signal.h>
#include <GLFW/glfw3.h>
Go to the source code of this file.
Classes | |
struct | demo |
struct | SwapchainBuffers |
struct | texture_object |
Macros | |
#define | APP_LONG_NAME "The Vulkan Triangle Demo Program" |
#define | APP_SHORT_NAME "tri" |
#define | ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0])) |
#define | DEMO_TEXTURE_COUNT 1 |
#define | ERR_EXIT(err_msg, err_class) |
#define | GET_DEVICE_PROC_ADDR(dev, entrypoint) |
#define | GET_INSTANCE_PROC_ADDR(inst, entrypoint) |
#define | GLFW_INCLUDE_NONE |
#define | GLFW_INCLUDE_VULKAN |
#define | U_ASSERT_ONLY |
#define | VERTEX_BUFFER_BIND_ID 0 |
Variables | |
static const char | fragShaderCode [] |
static int | validation_error = 0 |
static const char | vertShaderCode [] |
#define APP_LONG_NAME "The Vulkan Triangle Demo Program" |
Definition at line 51 of file tests/vulkan.c.
#define APP_SHORT_NAME "tri" |
Definition at line 50 of file tests/vulkan.c.
Definition at line 53 of file tests/vulkan.c.
#define DEMO_TEXTURE_COUNT 1 |
Definition at line 48 of file tests/vulkan.c.
#define ERR_EXIT | ( | err_msg, | |
err_class | |||
) |
Definition at line 61 of file tests/vulkan.c.
#define GET_DEVICE_PROC_ADDR | ( | dev, | |
entrypoint | |||
) |
Definition at line 78 of file tests/vulkan.c.
#define GET_INSTANCE_PROC_ADDR | ( | inst, | |
entrypoint | |||
) |
Definition at line 68 of file tests/vulkan.c.
#define GLFW_INCLUDE_NONE |
Definition at line 44 of file tests/vulkan.c.
#define GLFW_INCLUDE_VULKAN |
Definition at line 45 of file tests/vulkan.c.
#define U_ASSERT_ONLY |
Definition at line 58 of file tests/vulkan.c.
#define VERTEX_BUFFER_BIND_ID 0 |
Definition at line 49 of file tests/vulkan.c.
VKAPI_ATTR VkBool32 VKAPI_CALL BreakCallback | ( | VkFlags | msgFlags, |
VkDebugReportObjectTypeEXT | objType, | ||
uint64_t | srcObject, | ||
size_t | location, | ||
int32_t | msgCode, | ||
const char * | pLayerPrefix, | ||
const char * | pMsg, | ||
void * | pUserData | ||
) |
Definition at line 248 of file tests/vulkan.c.
VKAPI_ATTR VkBool32 VKAPI_CALL dbgFunc | ( | VkFlags | msgFlags, |
VkDebugReportObjectTypeEXT | objType, | ||
uint64_t | srcObject, | ||
size_t | location, | ||
int32_t | msgCode, | ||
const char * | pLayerPrefix, | ||
const char * | pMsg, | ||
void * | pUserData | ||
) |
Definition at line 363 of file tests/vulkan.c.
|
static |
Definition at line 1674 of file tests/vulkan.c.
Definition at line 2173 of file tests/vulkan.c.
Definition at line 1649 of file tests/vulkan.c.
|
static |
Definition at line 1030 of file tests/vulkan.c.
Definition at line 616 of file tests/vulkan.c.
Definition at line 520 of file tests/vulkan.c.
|
static |
Definition at line 1606 of file tests/vulkan.c.
Definition at line 419 of file tests/vulkan.c.
Definition at line 2131 of file tests/vulkan.c.
Definition at line 2115 of file tests/vulkan.c.
Definition at line 1980 of file tests/vulkan.c.
Definition at line 1694 of file tests/vulkan.c.
Definition at line 2020 of file tests/vulkan.c.
|
static |
Definition at line 1611 of file tests/vulkan.c.
Definition at line 1569 of file tests/vulkan.c.
Definition at line 706 of file tests/vulkan.c.
Definition at line 865 of file tests/vulkan.c.
Definition at line 1241 of file tests/vulkan.c.
Definition at line 1489 of file tests/vulkan.c.
Definition at line 1508 of file tests/vulkan.c.
Definition at line 1540 of file tests/vulkan.c.
|
static |
Definition at line 1362 of file tests/vulkan.c.
Definition at line 1371 of file tests/vulkan.c.
Definition at line 1273 of file tests/vulkan.c.
|
static |
Definition at line 1336 of file tests/vulkan.c.
|
static |
Definition at line 941 of file tests/vulkan.c.
Definition at line 1037 of file tests/vulkan.c.
Definition at line 1161 of file tests/vulkan.c.
|
static |
Definition at line 1353 of file tests/vulkan.c.
|
static |
Definition at line 1616 of file tests/vulkan.c.
Definition at line 2227 of file tests/vulkan.c.
|
static |
Definition at line 1621 of file tests/vulkan.c.
Definition at line 1628 of file tests/vulkan.c.
|
static |
Definition at line 450 of file tests/vulkan.c.
int main | ( | const int | argc, |
const char * | argv[] | ||
) |
Definition at line 2277 of file tests/vulkan.c.
|
static |
Definition at line 399 of file tests/vulkan.c.
|
static |
Definition at line 88 of file tests/vulkan.c.
|
static |
Definition at line 245 of file tests/vulkan.c.
|
static |
Definition at line 144 of file tests/vulkan.c.