Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/brandonpollack23/sarekt
/ functions
Functions
225 in github.com/brandonpollack23/sarekt
⨍
Functions
225
◇
Types & classes
66
↓ 120 callers
Method
build
(self)
src/renderer/drawable_object.rs:130
↓ 18 callers
Method
recreate_swapchain
Recreates teh swapchain using the new parameters and returns the old swapchain and images/views. Unsafe because of FFI use and the returned swapchain
src/renderer/vulkan/vulkan_renderer/render_targets.rs:123
↓ 15 callers
Method
load_buffer
( &mut self, buffer_type: BufferType, buffer: &[BufElem], )
src/renderer/vulkan/vulkan_renderer/mod.rs:913
↓ 12 callers
Method
format
(&self)
src/image_data.rs:78
↓ 10 callers
Method
draw
TODO(issue#1) MULTITHREADING maybe need put everything that may need to be recreated in a cell? TODO(issue#6) UNIFORMS do push_constant uniform buffer
src/renderer/vulkan/vulkan_renderer/mod.rs:1071
↓ 10 callers
Method
image
(self)
src/renderer/vulkan/vulkan_buffer_image_functions.rs:1037
↓ 10 callers
Method
load_uniform_buffer
( &mut self, buffer: UniformBufElem, )
src/renderer/vulkan/vulkan_renderer/mod.rs:958
↓ 10 callers
Method
uniform_buffer
( mut self, uniform_buffer: &'c UniformBufferHandle<R::BL, DescriptorLayoutStruct>, )
src/renderer/drawable_object.rs:152
↓ 10 callers
Method
vertex_buffer
( mut self, vertex_buffer: &'a BufferImageHandle<R::BL>, )
src/renderer/drawable_object.rs:140
↓ 9 callers
Method
frame
TODO(issue#9) OFFSCREEN handle off screen rendering.
src/renderer/vulkan/vulkan_renderer/mod.rs:841
↓ 9 callers
Method
index_buffer
(mut self, index_buffer: &'b BufferImageHandle<R::BL>)
src/renderer/drawable_object.rs:147
↓ 9 callers
Method
set_rendering_enabled
(&mut self, enabled: bool)
src/renderer/vulkan/vulkan_renderer/mod.rs:836
↓ 7 callers
Method
texture_image
(mut self, texture_image: &'d BufferImageHandle<R::BL>)
src/renderer/drawable_object.rs:159
↓ 6 callers
Method
set_uniform
TODO(issue#6) BUFFERS BACKLOG for UniformBufferHandle/DataHandle can specify push_constant type and switch on that in update uniform. TODO(issue#7) PE
src/renderer/drawable_object.rs:100
↓ 5 callers
Method
load_image_with_staging_initialization
Same as `load_buffer_with_staging` but loads an r8b8g8a8 image instead.
src/renderer/buffers_and_images.rs:281
↓ 4 callers
Method
buffer
(self)
src/renderer/vulkan/vulkan_buffer_image_functions.rs:1030
↓ 4 callers
Method
destroy_buffer
Destroy a buffer and free the memory associated with it from the backend/GPU.
src/renderer/buffers_and_images.rs:269
↓ 3 callers
Method
create_image_view
vk::ImageAspectFlags specify what kind of attachment this image can be used for (COLOR, DEPTH, etc).
src/renderer/vulkan/vulkan_buffer_image_functions.rs:602
↓ 3 callers
Method
delete_buffer_or_image
(&self, handle: ResourceWithMemory)
src/renderer/vulkan/vulkan_buffer_image_functions.rs:994
↓ 3 callers
Method
dimensions
(&self)
src/image_data.rs:63
↓ 3 callers
Method
is_complete
TODO(issue#9) OFFSCREEN is_complete_for_offscreen also that doesn't need presentation.
src/renderer/vulkan/queues.rs:12
↓ 3 callers
Method
setup_next_main_command_buffer
Sets up the command buffers for recording. The command buffers are written to by the [Drawer](trait.Drawer.html) draw commands.
src/renderer/vulkan/vulkan_renderer/mod.rs:440
↓ 3 callers
Function
update_uniforms
( renderer: &VulkanRenderer, rect: &DrawableObject<VulkanRenderer, DefaultForwardShaderLayout>, position:
examples/07_depth_buffer_test.rs:248
↓ 2 callers
Method
as_vec
Returns all the queue indices as an array for easily handing over to Vulkan. Returns None if not complete
src/renderer/vulkan/queues.rs:20
↓ 2 callers
Function
assert_no_warnings_or_errors_in_debug_user_data
(debug_user_data: &Pin<Arc<DebugUserData>>)
src/renderer/vulkan/vulkan_renderer/mod.rs:1175
↓ 2 callers
Method
cleanup
Cleans up all vulkan resources, unsafe because it should only be called when these resources are no longer needed.
src/renderer/vulkan/vulkan_renderer/pipelines.rs:247
↓ 2 callers
Method
cleanup_swapchain
Cleans up all resources dependent on the swapchain and the swapchain itself. ImageViews Render Passes Graphics Pipelines Framebuffers Command Buffers.
src/renderer/vulkan/vulkan_renderer/mod.rs:355
↓ 2 callers
Method
clear
()
src/image_data.rs:105
↓ 2 callers
Method
create_cpu_accessible_buffer
For creating a cpu accessible buffer for any usage (more generic than staging buffer). Set usage flags as you see fit (or don't...).
src/renderer/vulkan/vulkan_buffer_image_functions.rs:121
↓ 2 callers
Method
create_gpu_image
Creates a buffer with TRANSFER_DST and appropriate image type flags flipped.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:179
↓ 2 callers
Method
create_staging_buffer
Creates a CPU visible staging buffer that has the TRANSFER_SRC usage bit flipped.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:110
↓ 2 callers
Method
delete_shader
(&self, shader: vk::ShaderModule)
src/renderer/vulkan/vulkan_shader_functions.rs:33
↓ 2 callers
Method
destroy_image
Same as `destroy_buffer` but for images.
src/renderer/buffers_and_images.rs:356
↓ 2 callers
Method
get_buffer
Retrieves the buffer associated with the handle to be bound etc.
src/renderer/buffers_and_images.rs:368
↓ 2 callers
Method
get_image_available_sem
Returns semaphore associated with swapchain image availability, with bounds checking.
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:80
↓ 2 callers
Method
get_shader
Retrieve a loaded shader to be used in pipeline construction, etc.
src/renderer/shaders.rs:161
↓ 2 callers
Method
get_u32_version
Get Major Minor Patch in a single u32.
src/renderer/config.rs:78
↓ 2 callers
Method
insert_layout_transition_barrier
TODO(issue#18) IMAGE MIPMAPPING levels as params Returns the source and destination queue family indices.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:683
↓ 2 callers
Method
into_bytes
(self)
src/image_data.rs:44
↓ 2 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/10_msaa.rs:236
↓ 2 callers
Method
run
(&mut self)
examples/00_base_code.rs:10
↓ 2 callers
Method
transfer_staging_to_gpu_buffer_or_image
TODO(issue#30) IMAGES support pre-generated mip levels.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:209
↓ 2 callers
Function
usage_flags_from_buffer_type
(buffer_type: BufferType)
src/renderer/vulkan/vulkan_buffer_image_functions.rs:1076
↓ 2 callers
Method
wait_for_acquire_fence
Waits for the image and its associated objects to be ready to be written to.
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:56
↓ 1 callers
Method
accept_image_transfer_and_generate_mipmaps
Accepts ownership of the image and generates the requested number of mip levels using a blit.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:334
↓ 1 callers
Method
acquire_next_image
Gets the next image in the swapchain to draw to and associates the given semaphore and fence with it.
src/renderer/vulkan/vulkan_renderer/render_targets.rs:70
↓ 1 callers
Method
cleanup_descriptor_set_layouts
Must be called during renderer's drop.
src/renderer/vulkan/vulkan_renderer/pipelines.rs:235
↓ 1 callers
Method
cleanup_render_targets
Useful during swapchain recreation, but the specific render targets and swapchain to delete are specified, since the current ones are always contained
src/renderer/vulkan/vulkan_renderer/render_targets.rs:163
↓ 1 callers
Method
create_default_texture
================================================================================ Null object setup methods ===========================================
src/renderer/vulkan/vulkan_renderer/mod.rs:806
↓ 1 callers
Method
create_gpu_buffer
Create a buffer with TRANSFER_DST and appropriate buffer type flags flipped.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:151
↓ 1 callers
Method
create_sampler
( &self, magnification_filter: MagnificationMinificationFilter, minification_filter: MagnificationMini
src/renderer/vulkan/vulkan_buffer_image_functions.rs:627
↓ 1 callers
Method
create_uninitialized_image
Returns the handle to buffer or image and the backend buffer or image and memory.
src/renderer/buffers_and_images.rs:320
↓ 1 callers
Method
destroy_all
(&self)
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:178
↓ 1 callers
Method
destroy_all_images_and_buffers
Does what it says on the tin, but for all the buffers. See destroy_buffers.
src/renderer/buffers_and_images.rs:399
↓ 1 callers
Method
destroy_all_shaders
Destroys all the shaders. Unsafe because any outstanding handles will not result in errors when they drop, so they must be forgotten.
src/renderer/shaders.rs:147
↓ 1 callers
Method
destroy_shader
Using the handle, destroy the shader from the backend.
src/renderer/shaders.rs:134
↓ 1 callers
Method
do_recreate_swapchain
When the target dimensions or requirements change, we must recreate a bunch of stuff to remain compatible and continue rendering to the new surface.
src/renderer/vulkan/vulkan_renderer/mod.rs:249
↓ 1 callers
Method
draw_vertices_cmd
================================================================================ Draw Helper Methods =================================================
src/renderer/vulkan/vulkan_renderer/mod.rs:648
↓ 1 callers
Method
ensure_image_resources_ready
Ensures that the image is not currently in flight, so the command buffers for it are safe to write to (they are in the ready state). Returns the fram
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:100
↓ 1 callers
Method
extent_is_equal_to
Checks if the width and height given differ from the render target extent.
src/renderer/vulkan/vulkan_renderer/render_targets.rs:115
↓ 1 callers
Method
generate_mipmaps_shader_ro_optimal
Use blitting to create mipmap textures. Returns the source and destination queue family indices.
src/renderer/vulkan/vulkan_buffer_image_functions.rs:437
↓ 1 callers
Method
get_acquire_fence
Returns fence used for image acquisition for swapchain.
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:50
↓ 1 callers
Method
get_buffer
( &self, handle: &BufferImageHandle<VulkanBufferImageFunctions>, )
src/renderer/vulkan/vulkan_renderer/mod.rs:943
↓ 1 callers
Method
get_current_pipeline
Gets the currently active pipeline (just the base pipeline for now).
src/renderer/vulkan/vulkan_renderer/pipelines.rs:117
↓ 1 callers
Method
get_debug_user_data
(&self)
src/renderer/vulkan/vulkan_renderer/vulkan_core.rs:94
↓ 1 callers
Method
get_error_counts
(&self)
src/renderer/vulkan/vulkan_renderer/debug_utils_ext.rs:131
↓ 1 callers
Method
get_framebuffer
Returns the framebuffer of the given (swapchain) index.
src/renderer/vulkan/vulkan_renderer/pipelines.rs:139
↓ 1 callers
Method
get_image
Same as `get_buffer` but for images.
src/renderer/buffers_and_images.rs:383
↓ 1 callers
Method
get_image_fence
Returns fence associated with swapchain image, with bounds checking.
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:71
↓ 1 callers
Function
get_mip_levels
(dimensions: (u32, u32))
examples/09_mip_levels.rs:410
↓ 1 callers
Function
get_mip_levels
(dimensions: (u32, u32))
examples/10_msaa.rs:424
↓ 1 callers
Method
get_pipeline_descriptor_layouts
Returns the descriptor layouts of the current pipeline (just base for now).
src/renderer/vulkan/vulkan_renderer/pipelines.rs:128
↓ 1 callers
Method
get_pipeline_layout
Returns the current pipeline layout (just base for now).
src/renderer/vulkan/vulkan_renderer/pipelines.rs:122
↓ 1 callers
Method
get_render_finished_semaphore
Returns semaphore associated with swapchain image render output to COLOR attachment, with bounds checking.
src/renderer/vulkan/vulkan_renderer/draw_synchronization.rs:89
↓ 1 callers
Method
get_render_target_format
(&self)
src/renderer/vulkan/vulkan_renderer/render_targets.rs:110
↓ 1 callers
Method
get_uniform_buffer
( &self, handle: &UniformBufferHandle<VulkanBufferImageFunctions, UniformBufElem>, )
src/renderer/vulkan/vulkan_renderer/mod.rs:980
↓ 1 callers
Method
increment_frame_count
================================================================================ Renderer Utility Methods ============================================
src/renderer/vulkan/vulkan_renderer/mod.rs:825
↓ 1 callers
Method
into_rgba8
(self)
src/image_data.rs:59
↓ 1 callers
Function
load_glb_model
Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/08_model_loading.rs:363
↓ 1 callers
Function
load_glb_model
Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/09_mip_levels.rs:370
↓ 1 callers
Function
load_glb_model
Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/10_msaa.rs:384
↓ 1 callers
Function
load_obj_models
For now only use the first object in the obj file. Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/08_model_loading.rs:283
↓ 1 callers
Function
load_obj_models
For now only use the first object in the obj file. Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/09_mip_levels.rs:290
↓ 1 callers
Function
load_obj_models
For now only use the first object in the obj file. Returns (vertices, vertex_indicies, texture_coordinate indices)
examples/10_msaa.rs:304
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/04_loading_indexed_vertices.rs:44
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/08_model_loading.rs:40
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/05_uniform_buffers.rs:44
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/07_depth_buffer_test.rs:48
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/06_textures.rs:48
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/09_mip_levels.rs:42
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/10_msaa.rs:44
↓ 1 callers
Function
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/03_loading_vertices.rs:42
↓ 1 callers
Method
main_loop
Takes full control of the executing thread and runs the event loop for it.
examples/02_basic_loop.rs:49
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/04_loading_indexed_vertices.rs:134
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/08_model_loading.rs:215
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/05_uniform_buffers.rs:160
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/07_depth_buffer_test.rs:272
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/06_textures.rs:208
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/09_mip_levels.rs:222
↓ 1 callers
Function
main_loop_window_event
Handles all winit window specific events.
examples/03_loading_vertices.rs:126
next →
1–100 of 225, ranked by callers