Lines Matching defs:demo

287 struct demo {  struct
290 HINSTANCE connection; // hInstance - Windows Instance
291 char name[APP_NAME_STR_LEN]; // Name to put on the window/icon
292 HWND window; // hWnd - window handle
293 POINT minsize; // minimum window size
313 VkSurfaceKHR surface;
314 bool prepared;
315 bool use_staging_buffer;
316 bool use_xlib;
317 bool separate_present_queue;
319 VkInstance inst;
320 VkPhysicalDevice gpu;
321 VkDevice device;
322 VkQueue graphics_queue;
323 VkQueue present_queue;
324 uint32_t graphics_queue_family_index;
325 uint32_t present_queue_family_index;
326 VkSemaphore image_acquired_semaphores[FRAME_LAG];
327 VkSemaphore draw_complete_semaphores[FRAME_LAG];
328 VkSemaphore image_ownership_semaphores[FRAME_LAG];
329 VkPhysicalDeviceProperties gpu_props;
330 VkQueueFamilyProperties *queue_props;
331 VkPhysicalDeviceMemoryProperties memory_properties;
333 uint32_t enabled_extension_count;
334 uint32_t enabled_layer_count;
335 char *extension_names[64];
336 char *enabled_layers[64];
338 int width, height;
339 VkFormat format;
340 VkColorSpaceKHR color_space;
343 fpGetPhysicalDeviceSurfaceSupportKHR;
345 fpGetPhysicalDeviceSurfaceCapabilitiesKHR;
347 fpGetPhysicalDeviceSurfaceFormatsKHR;
349 fpGetPhysicalDeviceSurfacePresentModesKHR;
350 PFN_vkCreateSwapchainKHR fpCreateSwapchainKHR;
351 PFN_vkDestroySwapchainKHR fpDestroySwapchainKHR;
352 PFN_vkGetSwapchainImagesKHR fpGetSwapchainImagesKHR;
353 PFN_vkAcquireNextImageKHR fpAcquireNextImageKHR;
354 PFN_vkQueuePresentKHR fpQueuePresentKHR;
355 uint32_t swapchainImageCount;
356 VkSwapchainKHR swapchain;
357 SwapchainBuffers *buffers;
358 VkFence fences[FRAME_LAG];
359 int frame_index;
361 VkCommandPool cmd_pool;
362 VkCommandPool present_cmd_pool;
364 struct {
371 } depth;
373 struct texture_object textures[DEMO_TEXTURE_COUNT];
375 struct {
380 } uniform_data;
382 VkCommandBuffer cmd; // Buffer for initialization commands
383 VkPipelineLayout pipeline_layout;
384 VkDescriptorSetLayout desc_layout;
385 VkPipelineCache pipelineCache;
386 VkRenderPass render_pass;
387 VkPipeline pipeline;
389 mat4x4 projection_matrix;
390 mat4x4 view_matrix;
391 mat4x4 model_matrix;
393 float spin_angle;
394 float spin_increment;
395 bool pause;
397 VkShaderModule vert_shader_module;
398 VkShaderModule frag_shader_module;
400 VkDescriptorPool desc_pool;
401 VkDescriptorSet desc_set;
403 VkFramebuffer *framebuffers;
405 bool quit;
406 int32_t curFrame;
407 int32_t frameCount;
408 bool validate;
409 bool use_break;
410 bool suppress_popups;
411 PFN_vkCreateDebugReportCallbackEXT CreateDebugReportCallback;
412 PFN_vkDestroyDebugReportCallbackEXT DestroyDebugReportCallback;
413 VkDebugReportCallbackEXT msg_callback;
414 PFN_vkDebugReportMessageEXT DebugReportMessage;
416 uint32_t current_buffer;
417 uint32_t queue_family_count;
457 struct demo *demo = (struct demo*) pUserData; in dbgFunc() local
502 static bool memory_type_from_properties(struct demo *demo, uint32_t typeBits, in memory_type_from_properties()
521 static void demo_flush_init_cmd(struct demo *demo) { in demo_flush_init_cmd()
559 static void demo_set_image_layout(struct demo *demo, VkImage image, in demo_set_image_layout()
640 static void demo_draw_build_cmd(struct demo *demo, VkCommandBuffer cmd_buf) { in demo_draw_build_cmd()
719 void demo_build_image_ownership_cmd(struct demo *demo, int i) { in demo_build_image_ownership_cmd()
752 void demo_update_data_buffer(struct demo *demo) { in demo_update_data_buffer()
776 static void demo_draw(struct demo *demo) { in demo_draw()
869 static void demo_prepare_buffers(struct demo *demo) { in demo_prepare_buffers()
1078 static void demo_prepare_depth(struct demo *demo) { in demo_prepare_depth()
1228 static void demo_prepare_texture_image(struct demo *demo, const char *filename, in demo_prepare_texture_image()
1314 static void demo_destroy_texture_image(struct demo *demo, in demo_destroy_texture_image()
1321 static void demo_prepare_textures(struct demo *demo) { in demo_prepare_textures()
1455 void demo_prepare_cube_data_buffer(struct demo *demo) { in demo_prepare_cube_data_buffer()
1525 static void demo_prepare_descriptor_layout(struct demo *demo) { in demo_prepare_descriptor_layout()
1568 static void demo_prepare_render_pass(struct demo *demo) { in demo_prepare_render_pass()
1641 demo_prepare_shader_module(struct demo *demo, const void *code, size_t size) { in demo_prepare_shader_module()
1683 static VkShaderModule demo_prepare_vs(struct demo *demo) { in demo_prepare_vs()
1708 static VkShaderModule demo_prepare_fs(struct demo *demo) { in demo_prepare_fs()
1733 static void demo_prepare_pipeline(struct demo *demo) { in demo_prepare_pipeline()
1851 static void demo_prepare_descriptor_pool(struct demo *demo) { in demo_prepare_descriptor_pool()
1878 static void demo_prepare_descriptor_set(struct demo *demo) { in demo_prepare_descriptor_set()
1918 static void demo_prepare_framebuffers(struct demo *demo) { in demo_prepare_framebuffers()
1947 static void demo_prepare(struct demo *demo) { in demo_prepare()
2028 static void demo_cleanup(struct demo *demo) { in demo_cleanup()
2114 static void demo_resize(struct demo *demo) { in demo_resize()
2171 struct demo demo; variable
2174 static void demo_run(struct demo *demo) { in demo_run()
2219 static void demo_create_window(struct demo *demo) { in demo_create_window()
2268 static void demo_create_xlib_window(struct demo *demo) { in demo_create_xlib_window()
2301 static void demo_handle_xlib_event(struct demo *demo, const XEvent *event) { in demo_handle_xlib_event()
2337 static void demo_run_xlib(struct demo *demo) { in demo_run_xlib()
2361 static void demo_handle_xcb_event(struct demo *demo, in demo_handle_xcb_event()
2407 static void demo_run_xcb(struct demo *demo) { in demo_run_xcb()
2432 static void demo_create_xcb_window(struct demo *demo) { in demo_create_xcb_window()
2473 static void demo_run(struct demo *demo) { in demo_run()
2500 static void demo_create_window(struct demo *demo) { in demo_create_window()
2520 static void demo_run(struct demo *demo) { in demo_run()
2553 static void demo_init_vk(struct demo *demo) { in demo_init_vk()
2944 static void demo_create_device(struct demo *demo) { in demo_create_device()
2980 static void demo_init_vk_swapchain(struct demo *demo) { in demo_init_vk_swapchain()
3174 struct demo *demo = data; in registry_handle_global() local
3193 static void demo_init_connection(struct demo *demo) { in demo_init_connection()
3229 static void demo_init(struct demo *demo, int argc, char **argv) { in demo_init()
3389 struct demo demo; variable
3485 struct demo demo; in main() local