MCPcopy Create free account

hub / github.com/TanTanDev/first_voxel_engine / functions

Functions90 in github.com/TanTanDev/first_voxel_engine

↓ 16 callersMethodinto
(self)
src/color.rs:6
↓ 7 callersMethodis_solid
(&self)
src/voxel_tools/voxel.rs:23
↓ 4 callersMethodtry_get_voxel
if the local coordinate goes outside bounds, the adjacent chunk will be checked instead
src/voxel_tools/chunks.rs:112
↓ 3 callersFunctioncreate_render_pipeline
( device: &wgpu::Device, layout: &wgpu::PipelineLayout, color_format: wgpu::TextureFormat, dep
src/rendering/render_utils.rs:3
↓ 3 callersMethodresize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/main.rs:350
↓ 2 callersMethodbuild_chunk_data_in_queue
( &mut self, )
src/voxel_tools/chunks.rs:72
↓ 2 callersMethodbuild_chunk_meshes_in_queue
( &mut self, device: &wgpu::Device, gpu_resources: &mut GpuResources, )
src/voxel_tools/chunks.rs:144
↓ 2 callersFunctioncreate_shader_module
(device: &wgpu::Device, shader_str: &str, label: &str)
src/rendering/render_utils.rs:57
↓ 2 callersMethoddraw_light_mesh_instanced
( &mut self, mesh: &'b Mesh, instances: Range<u32>, uniforms: &'b wgpu::BindGr
src/model.rs:311
↓ 2 callersMethoddraw_mesh_instanced
( &mut self, mesh: &'b Mesh, material: &'b Material, instances: Range<u32>,
src/model.rs:59
↓ 2 callersMethodin_range
(&self, chunk_pos: cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:189
↓ 2 callersMethodset_density_fraciton
(&mut self, fraction: f32)
src/voxel_tools/voxel.rs:32
↓ 2 callersMethodupdate_load_data_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:357
↓ 2 callersMethodupdate_load_mesh_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:200
↓ 2 callersMethodupdate_uniform
(&mut self)
src/camera.rs:62
↓ 1 callersFunctionadjacent_voxels
( chunks: &'a mut Chunks, local_pos: (i32, i32, i32), chunk_pos: &cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:434
↓ 1 callersMethodbuild_chunk_data
( &mut self, chunk_pos: cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:132
↓ 1 callersFunctionbuild_chunk_mesh
( chunks: &mut Chunks, //chunk: &mut Chunk, device: &wgpu::Device, gpu_resources: &mut GpuReso
src/voxel_tools/mesh_builder.rs:15
↓ 1 callersMethodbuild_view_projection_matrix
(&self)
src/camera.rs:67
↓ 1 callersMethodbuild_voxel_data
(&mut self, chunk_world_pos: &cgmath::Vector3<f32>)
src/voxel_tools/chunk.rs:115
↓ 1 callersFunctionconstruct_buffers
( device: &wgpu::Device, vertices: Vec<VoxelVertex>, indices: Vec<u32>, )
src/voxel_tools/mesh_builder.rs:108
↓ 1 callersFunctioncopy_res
copy resource folder to OUT_DIR
build.rs:9
↓ 1 callersFunctioncreate_bind_group_layout
less params exposed resulting in shorter code
src/rendering/render_utils.rs:66
↓ 1 callersFunctioncreate_light_bind_group_layout
(device: &wgpu::Device)
src/light.rs:10
↓ 1 callersFunctioncreate_pipeline_layout
less params exposed resulting in shorter code
src/rendering/render_utils.rs:88
↓ 1 callersFunctioncreate_voxel_pipeline
( device: &wgpu::Device, texture_format: wgpu::TextureFormat, light_bind_group_layout: &wgpu::Bind
src/voxel_tools/rendering/voxel_pipeline.rs:8
↓ 1 callersMethoddraw
( &mut self, render_pass: &mut wgpu::RenderPass<'a>, camera_bind_group: &'a wgpu::Bind
src/voxel_tools/chunks.rs:395
↓ 1 callersFunctiondraw_chunk
( render_pass: &mut wgpu::RenderPass<'a>, num_indices: u32, camera_u: &'a wgpu::BindGroup, lig
src/voxel_tools/rendering/voxel_rendering.rs:3
↓ 1 callersMethoddraw_light_model
( &mut self, model: &'b Model, uniforms: &'b wgpu::BindGroup, light: &'b wgpu:
src/model.rs:325
↓ 1 callersMethoddraw_light_model_instanced
( &mut self, model: &'b Model, instances: Range<u32>, uniforms: &'b wgpu::Bind
src/model.rs:333
↓ 1 callersMethoddraw_model_instanced
( &mut self, model: &'b Model, instances: Range<u32>, uniform: &'b wgpu::BindG
src/model.rs:84
↓ 1 callersMethodget_chunk_mesh_mut
( &mut self, chunk_pos: &cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:125
↓ 1 callersMethodget_normal
(&self)
src/voxel_tools/direction.rs:11
↓ 1 callersMethodget_voxel
(&self, coordinate: LocalCoordinate)
src/voxel_tools/chunk.rs:93
↓ 1 callersMethodget_voxel_from_index
(&self, index: usize)
src/voxel_tools/chunk.rs:103
↓ 1 callersMethodinput
(&mut self, event: &DeviceEvent)
src/main.rs:359
↓ 1 callersMethodis_chunk_processing
(&self, chunk_pos: &cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:171
↓ 1 callersMethodis_mesh_processing
(&self, chunk_pos: &cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:176
↓ 1 callersMethodprocess_keyboard
(&mut self, key: VirtualKeyCode, state: ElementState)
src/camera_controller.rs:43
↓ 1 callersMethodprocess_mouse
(&mut self, mouse_dx: f64, mouse_dy: f64)
src/camera_controller.rs:78
↓ 1 callersMethodprocess_scroll
(&mut self, delta: &MouseScrollDelta)
src/camera_controller.rs:83
↓ 1 callersFunctionprocess_voxel
( voxel: &Voxel, voxel_pos: cgmath::Vector3<f32>, left: &Voxel, down: &Voxel, back: &Voxel
src/voxel_tools/mesh_builder.rs:72
↓ 1 callersMethodrender
(&mut self)
src/main.rs:426
↓ 1 callersMethodunload_data_queue
(&mut self)
src/voxel_tools/chunks.rs:323
↓ 1 callersMethodunload_mesh_queue
generate meshes queued up
src/voxel_tools/chunks.rs:334
↓ 1 callersMethodupdate
(&mut self, dt: std::time::Duration)
src/main.rs:384
↓ 1 callersMethodupdate
(&mut self, eye: &cgmath::Point3<f32>, view_proj: cgmath::Matrix4<f32>)
src/camera.rs:19
↓ 1 callersMethodupdate_camera
(&mut self, camera: &mut Camera, dt: Duration)
src/camera_controller.rs:91
↓ 1 callersMethodupdate_unload_data_queue
(&mut self)
src/voxel_tools/chunks.rs:252
↓ 1 callersMethodupdate_unload_mesh_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:288
↓ 1 callersMethodupdate_vertex_buffers
( &mut self, vertex_buffer: generational_arena::Index, index_buffer: generational_aren
src/voxel_tools/chunk.rs:37
Methodchunk_to_world
(chunk_pos: cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:181
Methodcreate_depth_texture
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, label: &str, )
src/texture.rs:137
Methoddensity_fraction
(&self)
src/voxel_tools/voxel.rs:28
Methoddesc
()
src/model.rs:108
Methoddesc
()
src/voxel_tools/rendering/voxel_vertex.rs:12
Methoddesc
()
src/rendering/vertex_instance.rs:11
Methoddraw_light_mesh
( &mut self, mesh: &'b Mesh, uniforms: &'b wgpu::BindGroup, light: &'b wgpu::B
src/model.rs:302
Methoddraw_mesh
( &mut self, mesh: &'b Mesh, material: &'b Material, uniforms: &'b wgpu::BindG
src/model.rs:49
Methoddraw_model
( &mut self, model: &'b Model, uniform: &'b wgpu::BindGroup, light: &'b wgpu::
src/model.rs:75
Methodfrom
(rgb: [u8; 3])
src/color.rs:33
Methodfrom_bytes
( device: &wgpu::Device, queue: &wgpu::Queue, bytes: &[u8], width: u32,
src/texture.rs:47
Methodfrom_bytes_to_image
( device: &wgpu::Device, queue: &wgpu::Queue, bytes: &[u8], label: &str, )
src/texture.rs:16
Methodfrom_color
( device: &wgpu::Device, queue: &wgpu::Queue, color: Color, width: u32,
src/texture.rs:26
Methodfrom_direction
(direction: Direction, pos: Vector3<f32>)
src/voxel_tools/quad.rs:16
Methodfrom_image
( device: &wgpu::Device, queue: &wgpu::Queue, image: &image::DynamicImage, lab
src/texture.rs:118
Methodget_index
convert 3d coordinate to array index
src/voxel_tools/chunk.rs:81
Methodget_local_coordinate
(index: i32)
src/voxel_tools/chunk.rs:85
Methodget_vertex_count
(&self)
src/voxel_tools/chunks.rs:427
Methodget_voxel_from_index_mut
(&mut self, index: usize)
src/voxel_tools/chunk.rs:99
Methodload
( device: &wgpu::Device, queue: &wgpu::Queue, path: P, )
src/texture.rs:177
Methodload
( device: &wgpu::Device, queue: &wgpu::Queue, layout: &wgpu::BindGroupLayout,
src/model.rs:164
Functionmain
()
build.rs:31
Functionmain
()
src/main.rs:484
Methodmake_coords_valid
( chunk_pos: &mut cgmath::Vector3<i32>, local_pos: &mut LocalCoordinate, )
src/voxel_tools/chunks.rs:80
Methodnew
(window: &Window)
src/main.rs:83
Methodnew
()
src/camera.rs:10
Methodnew
(device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor)
src/depth_pass.rs:37
Methodnew
(r: f32, g: f32, b: f32, a: f32)
src/color.rs:45
Methodnew
(speed: f32, sensitivity: f32)
src/camera_controller.rs:27
Methodnew
()
src/voxel_tools/chunks.rs:55
Methodnew
()
src/voxel_tools/chunk.rs:28
Methodnew
(density: Density)
src/voxel_tools/voxel.rs:10
Methodnew
()
src/rendering/gpu_resources.rs:7
Methodnew_empty
()
src/voxel_tools/voxel.rs:14
Methodnew_solid
()
src/voxel_tools/voxel.rs:19
Methodrender
(&self, frame: &wgpu::SwapChainTexture, encoder: &mut wgpu::CommandEncoder)
src/depth_pass.rs:167
Methodreset
(&mut self)
src/voxel_tools/chunk.rs:56
Methodresize
(&mut self, device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor)
src/depth_pass.rs:149
Methodto_raw
(&self)
src/rendering/vertex_instance.rs:70