Lines Matching defs:demo
152 struct demo { struct
153 GLFWwindow* window;
154 VkSurfaceKHR surface;
155 bool use_staging_buffer;
157 VkInstance inst;
158 VkPhysicalDevice gpu;
159 VkDevice device;
160 VkQueue queue;
161 VkPhysicalDeviceProperties gpu_props;
162 VkPhysicalDeviceFeatures gpu_features;
163 VkQueueFamilyProperties *queue_props;
164 uint32_t graphics_queue_node_index;
166 uint32_t enabled_extension_count;
167 uint32_t enabled_layer_count;
168 const char *extension_names[64];
169 const char *enabled_layers[64];
171 int width, height;
172 VkFormat format;
173 VkColorSpaceKHR color_space;
175 uint32_t swapchainImageCount;
176 VkSwapchainKHR swapchain;
177 SwapchainBuffers *buffers;
179 VkCommandPool cmd_pool;
181 struct {
187 } depth;
189 struct texture_object textures[DEMO_TEXTURE_COUNT];
191 struct {
198 } vertices;
200 VkCommandBuffer setup_cmd; // Command Buffer for initialization commands
201 VkCommandBuffer draw_cmd; // Command Buffer for drawing commands
202 VkPipelineLayout pipeline_layout;
203 VkDescriptorSetLayout desc_layout;
204 VkPipelineCache pipelineCache;
205 VkRenderPass render_pass;
206 VkPipeline pipeline;
208 VkShaderModule vert_shader_module;
209 VkShaderModule frag_shader_module;
211 VkDescriptorPool desc_pool;
212 VkDescriptorSet desc_set;
214 VkFramebuffer *framebuffers;
216 VkPhysicalDeviceMemoryProperties memory_properties;
218 int32_t curFrame;
219 int32_t frameCount;
220 bool validate;
221 bool use_break;
222 VkDebugReportCallbackEXT msg_callback;
224 float depthStencil;
225 float depthIncrement;
227 uint32_t current_buffer;
228 uint32_t queue_count;
268 static bool memory_type_from_properties(struct demo *demo, uint32_t typeBits, in memory_type_from_properties()
288 static void demo_flush_init_cmd(struct demo *demo) { in demo_flush_init_cmd()
319 static void demo_set_image_layout(struct demo *demo, VkImage image, in demo_set_image_layout()
389 static void demo_draw_build_cmd(struct demo *demo) { in demo_draw_build_cmd()
485 static void demo_draw(struct demo *demo) { in demo_draw()
575 static void demo_prepare_buffers(struct demo *demo) { in demo_prepare_buffers()
733 static void demo_prepare_depth(struct demo *demo) { in demo_prepare_depth()
809 demo_prepare_texture_image(struct demo *demo, const uint32_t *tex_colors, in demo_prepare_texture_image()
898 static void demo_destroy_texture_image(struct demo *demo, in demo_destroy_texture_image()
905 static void demo_prepare_textures(struct demo *demo) { in demo_prepare_textures()
1029 static void demo_prepare_vertices(struct demo *demo) { in demo_prepare_vertices()
1109 static void demo_prepare_descriptor_layout(struct demo *demo) { in demo_prepare_descriptor_layout()
1141 static void demo_prepare_render_pass(struct demo *demo) { in demo_prepare_render_pass()
1204 demo_prepare_shader_module(struct demo *demo, const void *code, size_t size) { in demo_prepare_shader_module()
1221 static VkShaderModule demo_prepare_vs(struct demo *demo) { in demo_prepare_vs()
1230 static VkShaderModule demo_prepare_fs(struct demo *demo) { in demo_prepare_fs()
1239 static void demo_prepare_pipeline(struct demo *demo) { in demo_prepare_pipeline()
1357 static void demo_prepare_descriptor_pool(struct demo *demo) { in demo_prepare_descriptor_pool()
1376 static void demo_prepare_descriptor_set(struct demo *demo) { in demo_prepare_descriptor_set()
1408 static void demo_prepare_framebuffers(struct demo *demo) { in demo_prepare_framebuffers()
1437 static void demo_prepare(struct demo *demo) { in demo_prepare()
1485 struct demo* demo = glfwGetWindowUserPointer(window); in demo_refresh_callback() local
1490 struct demo* demo = glfwGetWindowUserPointer(window); in demo_resize_callback() local
1496 static void demo_run(struct demo *demo) { in demo_run()
1517 static void demo_create_window(struct demo *demo) { in demo_create_window()
1562 static void demo_init_vk(struct demo *demo) { in demo_init_vk()
1832 static void demo_init_device(struct demo *demo) { in demo_init_device()
1866 static void demo_init_vk_swapchain(struct demo *demo) { in demo_init_vk_swapchain()
1961 static void demo_init_connection(struct demo *demo) { in demo_init_connection()
1979 static void demo_init(struct demo *demo, const int argc, const char *argv[]) in demo_init()
2021 static void demo_cleanup(struct demo *demo) { in demo_cleanup()
2075 static void demo_resize(struct demo *demo) { in demo_resize()
2127 struct demo demo; in main() local