Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanTanDev/first_voxel_engine
/ functions
Functions
90 in github.com/TanTanDev/first_voxel_engine
⨍
Functions
90
◇
Types & classes
28
↓ 16 callers
Method
into
(self)
src/color.rs:6
↓ 7 callers
Method
is_solid
(&self)
src/voxel_tools/voxel.rs:23
↓ 4 callers
Method
try_get_voxel
if the local coordinate goes outside bounds, the adjacent chunk will be checked instead
src/voxel_tools/chunks.rs:112
↓ 3 callers
Function
create_render_pipeline
( device: &wgpu::Device, layout: &wgpu::PipelineLayout, color_format: wgpu::TextureFormat, dep
src/rendering/render_utils.rs:3
↓ 3 callers
Method
resize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/main.rs:350
↓ 2 callers
Method
build_chunk_data_in_queue
( &mut self, )
src/voxel_tools/chunks.rs:72
↓ 2 callers
Method
build_chunk_meshes_in_queue
( &mut self, device: &wgpu::Device, gpu_resources: &mut GpuResources, )
src/voxel_tools/chunks.rs:144
↓ 2 callers
Function
create_shader_module
(device: &wgpu::Device, shader_str: &str, label: &str)
src/rendering/render_utils.rs:57
↓ 2 callers
Method
draw_light_mesh_instanced
( &mut self, mesh: &'b Mesh, instances: Range<u32>, uniforms: &'b wgpu::BindGr
src/model.rs:311
↓ 2 callers
Method
draw_mesh_instanced
( &mut self, mesh: &'b Mesh, material: &'b Material, instances: Range<u32>,
src/model.rs:59
↓ 2 callers
Method
in_range
(&self, chunk_pos: cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:189
↓ 2 callers
Method
set_density_fraciton
(&mut self, fraction: f32)
src/voxel_tools/voxel.rs:32
↓ 2 callers
Method
update_load_data_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:357
↓ 2 callers
Method
update_load_mesh_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:200
↓ 2 callers
Method
update_uniform
(&mut self)
src/camera.rs:62
↓ 1 callers
Function
adjacent_voxels
( chunks: &'a mut Chunks, local_pos: (i32, i32, i32), chunk_pos: &cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:434
↓ 1 callers
Method
build_chunk_data
( &mut self, chunk_pos: cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:132
↓ 1 callers
Function
build_chunk_mesh
( chunks: &mut Chunks, //chunk: &mut Chunk, device: &wgpu::Device, gpu_resources: &mut GpuReso
src/voxel_tools/mesh_builder.rs:15
↓ 1 callers
Method
build_view_projection_matrix
(&self)
src/camera.rs:67
↓ 1 callers
Method
build_voxel_data
(&mut self, chunk_world_pos: &cgmath::Vector3<f32>)
src/voxel_tools/chunk.rs:115
↓ 1 callers
Function
construct_buffers
( device: &wgpu::Device, vertices: Vec<VoxelVertex>, indices: Vec<u32>, )
src/voxel_tools/mesh_builder.rs:108
↓ 1 callers
Function
copy_res
copy resource folder to OUT_DIR
build.rs:9
↓ 1 callers
Function
create_bind_group_layout
less params exposed resulting in shorter code
src/rendering/render_utils.rs:66
↓ 1 callers
Function
create_light_bind_group_layout
(device: &wgpu::Device)
src/light.rs:10
↓ 1 callers
Function
create_pipeline_layout
less params exposed resulting in shorter code
src/rendering/render_utils.rs:88
↓ 1 callers
Function
create_voxel_pipeline
( device: &wgpu::Device, texture_format: wgpu::TextureFormat, light_bind_group_layout: &wgpu::Bind
src/voxel_tools/rendering/voxel_pipeline.rs:8
↓ 1 callers
Method
draw
( &mut self, render_pass: &mut wgpu::RenderPass<'a>, camera_bind_group: &'a wgpu::Bind
src/voxel_tools/chunks.rs:395
↓ 1 callers
Function
draw_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 callers
Method
draw_light_model
( &mut self, model: &'b Model, uniforms: &'b wgpu::BindGroup, light: &'b wgpu:
src/model.rs:325
↓ 1 callers
Method
draw_light_model_instanced
( &mut self, model: &'b Model, instances: Range<u32>, uniforms: &'b wgpu::Bind
src/model.rs:333
↓ 1 callers
Method
draw_model_instanced
( &mut self, model: &'b Model, instances: Range<u32>, uniform: &'b wgpu::BindG
src/model.rs:84
↓ 1 callers
Method
get_chunk_mesh_mut
( &mut self, chunk_pos: &cgmath::Vector3<i32>, )
src/voxel_tools/chunks.rs:125
↓ 1 callers
Method
get_normal
(&self)
src/voxel_tools/direction.rs:11
↓ 1 callers
Method
get_voxel
(&self, coordinate: LocalCoordinate)
src/voxel_tools/chunk.rs:93
↓ 1 callers
Method
get_voxel_from_index
(&self, index: usize)
src/voxel_tools/chunk.rs:103
↓ 1 callers
Method
input
(&mut self, event: &DeviceEvent)
src/main.rs:359
↓ 1 callers
Method
is_chunk_processing
(&self, chunk_pos: &cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:171
↓ 1 callers
Method
is_mesh_processing
(&self, chunk_pos: &cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:176
↓ 1 callers
Method
process_keyboard
(&mut self, key: VirtualKeyCode, state: ElementState)
src/camera_controller.rs:43
↓ 1 callers
Method
process_mouse
(&mut self, mouse_dx: f64, mouse_dy: f64)
src/camera_controller.rs:78
↓ 1 callers
Method
process_scroll
(&mut self, delta: &MouseScrollDelta)
src/camera_controller.rs:83
↓ 1 callers
Function
process_voxel
( voxel: &Voxel, voxel_pos: cgmath::Vector3<f32>, left: &Voxel, down: &Voxel, back: &Voxel
src/voxel_tools/mesh_builder.rs:72
↓ 1 callers
Method
render
(&mut self)
src/main.rs:426
↓ 1 callers
Method
unload_data_queue
(&mut self)
src/voxel_tools/chunks.rs:323
↓ 1 callers
Method
unload_mesh_queue
generate meshes queued up
src/voxel_tools/chunks.rs:334
↓ 1 callers
Method
update
(&mut self, dt: std::time::Duration)
src/main.rs:384
↓ 1 callers
Method
update
(&mut self, eye: &cgmath::Point3<f32>, view_proj: cgmath::Matrix4<f32>)
src/camera.rs:19
↓ 1 callers
Method
update_camera
(&mut self, camera: &mut Camera, dt: Duration)
src/camera_controller.rs:91
↓ 1 callers
Method
update_unload_data_queue
(&mut self)
src/voxel_tools/chunks.rs:252
↓ 1 callers
Method
update_unload_mesh_queue
based on current position load all meshes
src/voxel_tools/chunks.rs:288
↓ 1 callers
Method
update_vertex_buffers
( &mut self, vertex_buffer: generational_arena::Index, index_buffer: generational_aren
src/voxel_tools/chunk.rs:37
Method
chunk_to_world
(chunk_pos: cgmath::Vector3<i32>)
src/voxel_tools/chunks.rs:181
Method
create_depth_texture
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, label: &str, )
src/texture.rs:137
Method
density_fraction
(&self)
src/voxel_tools/voxel.rs:28
Method
desc
()
src/model.rs:108
Method
desc
()
src/voxel_tools/rendering/voxel_vertex.rs:12
Method
desc
()
src/rendering/vertex_instance.rs:11
Method
draw_light_mesh
( &mut self, mesh: &'b Mesh, uniforms: &'b wgpu::BindGroup, light: &'b wgpu::B
src/model.rs:302
Method
draw_mesh
( &mut self, mesh: &'b Mesh, material: &'b Material, uniforms: &'b wgpu::BindG
src/model.rs:49
Method
draw_model
( &mut self, model: &'b Model, uniform: &'b wgpu::BindGroup, light: &'b wgpu::
src/model.rs:75
Method
from
(rgb: [u8; 3])
src/color.rs:33
Method
from_bytes
( device: &wgpu::Device, queue: &wgpu::Queue, bytes: &[u8], width: u32,
src/texture.rs:47
Method
from_bytes_to_image
( device: &wgpu::Device, queue: &wgpu::Queue, bytes: &[u8], label: &str, )
src/texture.rs:16
Method
from_color
( device: &wgpu::Device, queue: &wgpu::Queue, color: Color, width: u32,
src/texture.rs:26
Method
from_direction
(direction: Direction, pos: Vector3<f32>)
src/voxel_tools/quad.rs:16
Method
from_image
( device: &wgpu::Device, queue: &wgpu::Queue, image: &image::DynamicImage, lab
src/texture.rs:118
Method
get_index
convert 3d coordinate to array index
src/voxel_tools/chunk.rs:81
Method
get_local_coordinate
(index: i32)
src/voxel_tools/chunk.rs:85
Method
get_vertex_count
(&self)
src/voxel_tools/chunks.rs:427
Method
get_voxel_from_index_mut
(&mut self, index: usize)
src/voxel_tools/chunk.rs:99
Method
load
( device: &wgpu::Device, queue: &wgpu::Queue, path: P, )
src/texture.rs:177
Method
load
( device: &wgpu::Device, queue: &wgpu::Queue, layout: &wgpu::BindGroupLayout,
src/model.rs:164
Function
main
()
build.rs:31
Function
main
()
src/main.rs:484
Method
make_coords_valid
( chunk_pos: &mut cgmath::Vector3<i32>, local_pos: &mut LocalCoordinate, )
src/voxel_tools/chunks.rs:80
Method
new
(window: &Window)
src/main.rs:83
Method
new
()
src/camera.rs:10
Method
new
(device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor)
src/depth_pass.rs:37
Method
new
(r: f32, g: f32, b: f32, a: f32)
src/color.rs:45
Method
new
(speed: f32, sensitivity: f32)
src/camera_controller.rs:27
Method
new
()
src/voxel_tools/chunks.rs:55
Method
new
()
src/voxel_tools/chunk.rs:28
Method
new
(density: Density)
src/voxel_tools/voxel.rs:10
Method
new
()
src/rendering/gpu_resources.rs:7
Method
new_empty
()
src/voxel_tools/voxel.rs:14
Method
new_solid
()
src/voxel_tools/voxel.rs:19
Method
render
(&self, frame: &wgpu::SwapChainTexture, encoder: &mut wgpu::CommandEncoder)
src/depth_pass.rs:167
Method
reset
(&mut self)
src/voxel_tools/chunk.rs:56
Method
resize
(&mut self, device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor)
src/depth_pass.rs:149
Method
to_raw
(&self)
src/rendering/vertex_instance.rs:70