MCPcopy Create free account

hub / github.com/adrien-ben/vulkan-tutorial-rs / functions

Functions92 in github.com/adrien-ben/vulkan-tutorial-rs

↓ 32 callersMethoddevice
(&self)
src/context.rs:30
↓ 5 callersFunctionload
(path: P)
src/fs.rs:4
↓ 4 callersMethoddestroy
(&self, device: &Device)
src/main.rs:2312
↓ 2 callersMethodcleanup_swapchain
Clean up the swapchain and all resources that depends on it.
src/main.rs:2212
↓ 2 callersFunctioncreate_debug_create_info
()
src/debug.rs:89
↓ 2 callersMethodget_mem_properties
(&self)
src/context.rs:36
↓ 2 callersMethodinstance
(&self)
src/context.rs:14
↓ 2 callersMethodphysical_device
(&self)
src/context.rs:26
↓ 2 callersMethodsurface
(&self)
src/context.rs:18
↓ 2 callersMethodsurface_khr
(&self)
src/context.rs:22
↓ 2 callersMethodwait_gpu_idle
(&self)
src/main.rs:2037
↓ 1 callersFunctioncheck_validation_layer_support
Check if the required validation set in `REQUIRED_LAYERS` are supported by the Vulkan instance. # Panics Panic if at least one on the layer is not s
src/debug.rs:54
↓ 1 callersFunctionclamp
Clamp `value` between `min` and `max`.
src/math.rs:48
↓ 1 callersFunctioncompile_shaders
()
build.rs:22
↓ 1 callersMethoddraw_frame
(&mut self)
src/main.rs:2041
↓ 1 callersMethodfind_supported_format
Find the first compatible format from `candidates`.
src/context.rs:44
↓ 1 callersMethodforward
(&mut self, r: f32)
src/camera.rs:28
↓ 1 callersMethodget_ideal_swapchain_properties
( &self, preferred_dimensions: [u32; 2], )
src/swapchain.rs:41
↓ 1 callersFunctionget_layer_names_and_pointers
Get the pointers to the validation layers names. Also return the corresponding `CString` to avoid dangling pointers.
src/debug.rs:36
↓ 1 callersMethodget_max_usable_sample_count
Return the maximim sample count supported.
src/context.rs:62
↓ 1 callersFunctionget_root_path
()
build.rs:56
↓ 1 callersFunctionget_shader_source_dir_path
()
build.rs:50
↓ 1 callersFunctionhandle_program_result
(result: Result<Output>)
build.rs:60
↓ 1 callersMethodnext
(&mut self)
src/main.rs:2342
↓ 1 callersFunctionperspective
Perspective matrix that is suitable for Vulkan. It inverts the projected y-axis. And set the depth range to 0..1 instead of -1..1. Mind the vertex wi
src/math.rs:8
↓ 1 callersMethodposition
(&self)
src/camera.rs:12
↓ 1 callersMethodrecreate_swapchain
Recreates the swapchain. If the window has been resized, then the new size is used otherwise, the size of the current swapchain is used. If the wind
src/main.rs:2130
↓ 1 callersMethodrotate
(&mut self, theta: f32, phi: f32)
src/camera.rs:22
↓ 1 callersFunctionsetup_debug_messenger
Setup the debug message if validation layers are enabled.
src/debug.rs:70
↓ 1 callersFunctionshould_skip_shader_compilation
()
build.rs:16
↓ 1 callersMethodupdate_uniform_buffers
(&mut self, current_image: u32)
src/main.rs:2231
Methodabout_to_wait
(&mut self, _: &ActiveEventLoop)
src/main.rs:108
Methodcheck_device_extension_support
(instance: &Instance, device: vk::PhysicalDevice)
src/main.rs:458
Methodchoose_swapchain_extent
Choose the swapchain extent. If a current extent is defined it will be returned. Otherwise the surface extent clamped between the min and max image e
src/swapchain.rs:99
Methodchoose_swapchain_surface_format
Choose the swapchain surface format. Will choose B8G8R8A8_UNORM/SRGB_NONLINEAR if possible or the first available otherwise.
src/swapchain.rs:59
Methodchoose_swapchain_surface_present_mode
Choose the swapchain present mode. Will favor MAILBOX if present otherwise FIFO. If none is present it will fallback to IMMEDIATE.
src/swapchain.rs:82
Methodcopy_buffer
Copy the `size` first bytes of `src` into `dst`. It's done using a command buffer allocated from `command_pool`. The command buffer is cubmitted tp `
src/main.rs:1806
Methodcopy_buffer_to_image
( device: &Device, command_pool: vk::CommandPool, transition_queue: vk::Queue,
src/main.rs:1420
Methodcreate_and_register_command_buffers
( device: &Device, pool: vk::CommandPool, framebuffers: &[vk::Framebuffer], re
src/main.rs:1899
Methodcreate_buffer
Create a buffer and allocate its memory. # Returns The buffer, its memory and the actual size in bytes of the allocated memory since in may differ f
src/main.rs:1767
Methodcreate_color_texture
( vk_context: &VkContext, command_pool: vk::CommandPool, transition_queue: vk::Queue,
src/main.rs:1069
Methodcreate_command_pool
( device: &Device, queue_families_indices: QueueFamiliesIndices, create_flags: vk::Com
src/main.rs:1053
Methodcreate_depth_texture
Create the depth buffer texture (image, memory and view). This function also transitions the image to be ready to be used as a depth/stencil attachem
src/main.rs:1114
Methodcreate_descriptor_pool
Create a descriptor pool to allocate the descriptor sets.
src/main.rs:808
Methodcreate_descriptor_set_layout
(device: &Device)
src/main.rs:789
Methodcreate_descriptor_sets
Create one descriptor set for each uniform buffer.
src/main.rs:828
Methodcreate_device_local_buffer_with_data
Create a buffer and it's gpu memory and fill it. This function internally creates an host visible staging buffer and a device local buffer. The data
src/main.rs:1690
Methodcreate_framebuffers
( device: &Device, image_views: &[vk::ImageView], color_texture: Texture, dept
src/main.rs:1030
Methodcreate_image
( vk_context: &VkContext, mem_properties: vk::MemoryPropertyFlags, extent: vk::Extent2
src/main.rs:1280
Methodcreate_image_view
( device: &Device, image: vk::Image, mip_levels: u32, format: vk::Format,
src/main.rs:690
Methodcreate_index_buffer
( vk_context: &VkContext, command_pool: vk::CommandPool, transfer_queue: vk::Queue,
src/main.rs:1669
Methodcreate_instance
(entry: &Entry, window: &Window)
src/main.rs:357
Methodcreate_logical_device_with_graphics_queue
Create the logical device to interact with `device`, a graphics queue and a presentation queue. # Returns Return a tuple containing the logical devi
src/main.rs:537
Methodcreate_pipeline
( device: &Device, swapchain_properties: SwapchainProperties, msaa_samples: vk::Sample
src/main.rs:880
Methodcreate_render_pass
( device: &Device, swapchain_properties: SwapchainProperties, msaa_samples: vk::Sample
src/main.rs:712
Methodcreate_shader_module
(device: &Device, code: &[u32])
src/main.rs:1025
Methodcreate_swapchain_and_images
Create the swapchain with optimal settings possible with `device`. # Returns A tuple containing the swapchain loader and the actual swapchain.
src/main.rs:596
Methodcreate_swapchain_image_views
Create one image view for each image of the swapchain.
src/main.rs:671
Methodcreate_sync_objects
(device: &Device)
src/main.rs:2007
Methodcreate_texture_image
( vk_context: &VkContext, command_pool: vk::CommandPool, copy_queue: vk::Queue, )
src/main.rs:1169
Methodcreate_uniform_buffers
( vk_context: &VkContext, count: usize, )
src/main.rs:1739
Methodcreate_vertex_buffer
( vk_context: &VkContext, command_pool: vk::CommandPool, transfer_queue: vk::Queue,
src/main.rs:1654
Methoddefault
()
src/camera.rs:34
Methoddestroy
(&mut self, device: &Device)
src/texture.rs:26
Methoddrop
(&mut self)
src/main.rs:2272
Methoddrop
(&mut self)
src/context.rs:112
Methodexecute_one_time_commands
Create a one time use command buffer and pass it to `executor`.
src/main.rs:1827
Methodexiting
(&mut self, _: &ActiveEventLoop)
src/main.rs:124
Methodfind_depth_format
(vk_context: &VkContext)
src/main.rs:1150
Methodfind_memory_type
Find a memory type in `mem_properties` that is suitable for `requirements` and supports `required_properties`. # Returns The index of the memory typ
src/main.rs:1882
Methodfind_queue_families
Find a queue family with at least one graphics queue and one with at least one presentation queue from `device`. #Returns Return a tuple (Option<gra
src/main.rs:497
Methodgenerate_mipmaps
( vk_context: &VkContext, command_pool: vk::CommandPool, transfer_queue: vk::Queue,
src/main.rs:1458
Methodget_attribute_descriptions
()
src/main.rs:2368
Methodget_binding_description
()
src/main.rs:2361
Methodget_descriptor_set_layout_binding
()
src/main.rs:2397
Methodget_required_device_extensions
()
src/main.rs:482
Methodhas_stencil_component
(format: vk::Format)
src/main.rs:1165
Methodis_device_suitable
( instance: &Instance, surface: &surface::Instance, surface_khr: vk::SurfaceKHR,
src/main.rs:438
Methodload_model
()
src/main.rs:1616
Functionmain
()
build.rs:10
Functionmain
()
src/main.rs:34
Methodnew
(window: &Window)
src/main.rs:175
Methodnew
( image: vk::Image, memory: vk::DeviceMemory, view: vk::ImageView, sampler: Op
src/texture.rs:12
Methodnew
( device: vk::PhysicalDevice, surface: &surface::Instance, surface_khr: vk::SurfaceKHR
src/swapchain.rs:11
Methodnew
( entry: Entry, instance: Instance, debug_report_callback: Option<(debug_utils::Instan
src/context.rs:90
Methodnew_events
(&mut self, _: &ActiveEventLoop, _: StartCause)
src/main.rs:64
Methodpick_physical_device
Pick the first suitable physical device. # Requirements - At least one queue family with one queue supportting graphics. - At least one queue family
src/main.rs:413
Methodread_shader_from_file
(path: P)
src/main.rs:1019
Methodresumed
(&mut self, event_loop: &ActiveEventLoop)
src/main.rs:51
Methodtransition_image_layout
( device: &Device, command_pool: vk::CommandPool, transition_queue: vk::Queue,
src/main.rs:1328
Functionvulkan_debug_callback
( flag: vk::DebugUtilsMessageSeverityFlagsEXT, typ: vk::DebugUtilsMessageTypeFlagsEXT, p_callback_
src/debug.rs:14
Methodwindow_event
(&mut self, event_loop: &ActiveEventLoop, _: WindowId, event: WindowEvent)
src/main.rs:71