Lines Matching refs:dev_
99 dev_ = ctx.dev; in attach_shell()
118 meshes_ = new Meshes(dev_, mem_flags_); in attach_shell()
160 vk::DestroyPipeline(dev_, pipeline_, nullptr); in detach_shell()
161 vk::DestroyPipelineLayout(dev_, pipeline_layout_, nullptr); in detach_shell()
163 vk::DestroyDescriptorSetLayout(dev_, desc_set_layout_, nullptr); in detach_shell()
164 vk::DestroyShaderModule(dev_, fs_, nullptr); in detach_shell()
165 vk::DestroyShaderModule(dev_, vs_, nullptr); in detach_shell()
166 vk::DestroyRenderPass(dev_, render_pass_, nullptr); in detach_shell()
220 vk::assert_success(vk::CreateRenderPass(dev_, &render_pass_info, nullptr, &render_pass_)); in create_render_pass()
236 vk::assert_success(vk::CreateShaderModule(dev_, &sh_info, nullptr, &vs_)); in create_shader_modules()
241 vk::assert_success(vk::CreateShaderModule(dev_, &sh_info, nullptr, &fs_)); in create_shader_modules()
260 vk::assert_success(vk::CreateDescriptorSetLayout(dev_, &layout_info, in create_descriptor_set_layout()
283 vk::assert_success(vk::CreatePipelineLayout(dev_, &pipeline_layout_info, in create_pipeline_layout()
367 …vk::assert_success(vk::CreateGraphicsPipelines(dev_, VK_NULL_HANDLE, 1, &pipeline_info, nullptr, &… in create_pipeline()
389 vk::DestroyDescriptorPool(dev_, desc_pool_, nullptr); in destroy_frame_data()
392 vk::DestroyCommandPool(dev_, cmd_pool, nullptr); in destroy_frame_data()
394 vk::DestroyCommandPool(dev_, primary_cmd_pool_, nullptr); in destroy_frame_data()
396 vk::UnmapMemory(dev_, frame_data_mem_); in destroy_frame_data()
397 vk::FreeMemory(dev_, frame_data_mem_, nullptr); in destroy_frame_data()
400 vk::DestroyBuffer(dev_, data.buf, nullptr); in destroy_frame_data()
404 vk::DestroyFence(dev_, data.fence, nullptr); in destroy_frame_data()
416 vk::assert_success(vk::CreateFence(dev_, &fence_info, nullptr, &data.fence)); in create_fences()
438 vk::assert_success(vk::CreateCommandPool(dev_, &cmd_pool_info, in create_command_buffers()
445 vk::assert_success(vk::AllocateCommandBuffers(dev_, &cmd_info, cmds.data())); in create_command_buffers()
483 vk::assert_success(vk::CreateBuffer(dev_, &buf_info, nullptr, &data.buf)); in create_buffers()
489 vk::GetBufferMemoryRequirements(dev_, frame_data_[0].buf, &mem_reqs); in create_buffer_memory()
511 vk::AllocateMemory(dev_, &mem_info, nullptr, &frame_data_mem_); in create_buffer_memory()
514 vk::MapMemory(dev_, frame_data_mem_, 0, VK_WHOLE_SIZE, 0, &ptr); in create_buffer_memory()
518 vk::BindBufferMemory(dev_, data.buf, frame_data_mem_, offset); in create_buffer_memory()
537 vk::assert_success(vk::CreateDescriptorPool(dev_, &desc_pool_info, in create_descriptor_sets()
549 vk::assert_success(vk::AllocateDescriptorSets(dev_, &set_info, desc_sets.data())); in create_descriptor_sets()
576 vk::UpdateDescriptorSets(dev_, in create_descriptor_sets()
594 vk::DestroyFramebuffer(dev_, fb, nullptr); in detach_swapchain()
596 vk::DestroyImageView(dev_, view, nullptr); in detach_swapchain()
621 vk::get(dev_, swapchain, images_); in prepare_framebuffers()
637 vk::assert_success(vk::CreateImageView(dev_, &view_info, nullptr, &view)); in prepare_framebuffers()
650 vk::assert_success(vk::CreateFramebuffer(dev_, &fb_info, nullptr, &fb)); in prepare_framebuffers()
774 vk::assert_success(vk::WaitForFences(dev_, 1, &data.fence, true, UINT64_MAX)); in on_frame()
775 vk::assert_success(vk::ResetFences(dev_, 1, &data.fence)); in on_frame()