Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BrassLion/rust-pbr
/ functions
Functions
45 in github.com/BrassLion/rust-pbr
⨍
Functions
45
◇
Types & classes
31
↓ 8 callers
Function
update_uniform_buffer
( device: &wgpu::Device, uniform_buffer: &wgpu::Buffer, encoder: &mut wgpu::CommandEncoder, un
src/graphics/material_base.rs:132
↓ 6 callers
Method
begin_render_pass
( &'a self, device: &wgpu::Device, encoder: &'a mut wgpu::CommandEncoder, rp_d
src/graphics/material_pbr.rs:368
↓ 6 callers
Function
build_render_pipeline
( device: &wgpu::Device, vertex_shader_src: &str, fragment_shader_src: &str, bind_group_layout
src/graphics/material_base.rs:26
↓ 5 callers
Method
draw
(&'a self, render_pass: &mut wgpu::RenderPass<'a>)
src/graphics/mesh.rs:59
↓ 4 callers
Method
create_texture
( device: &wgpu::Device, queue: &wgpu::Queue, image: &gltf::image::Data, image
src/graphics/renderable.rs:203
↓ 3 callers
Function
create_texture_bind_group
( device: &wgpu::Device, visibility: wgpu::ShaderStage, textures: &[&Texture], )
src/graphics/material_base.rs:157
↓ 2 callers
Method
render
( &'a self, render_state: &RenderState, render_pass_desc: &wgpu::RenderPassDescriptor,
src/graphics/renderable.rs:14
↓ 2 callers
Method
resize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/graphics/render_state.rs:56
↓ 1 callers
Method
handle_event
( &mut self, window: &winit::window::Window, event: &winit::event::WindowEvent, )
src/graphics/camera.rs:127
↓ 1 callers
Method
run
(&mut self, data: Self::SystemData)
src/graphics/render_system.rs:41
↓ 1 callers
Method
setup
(&mut self, world: &mut World)
src/graphics/render_system.rs:20
↓ 1 callers
Method
update_camera_position
(&mut self, mouse_position: &Vector2<f32>)
src/graphics/camera.rs:109
↓ 1 callers
Method
update_camera_rotation
(&mut self, window_size: [f32; 2], mouse_position: &Vector2<f32>)
src/graphics/camera.rs:69
↓ 1 callers
Method
update_camera_zoom
(&mut self, zoom_magnitude: f32)
src/graphics/camera.rs:49
Method
begin_render_pass
( &'a self, device: &wgpu::Device, encoder: &'a mut wgpu::CommandEncoder, rp_d
src/graphics/material_skybox.rs:163
Method
create_environment_map_from_hdr
( device: &wgpu::Device, queue: &wgpu::Queue, hdr_texture: &Texture, unit_cube
src/graphics/skybox.rs:184
Method
create_hdr_texture
(device: &wgpu::Device, queue: &wgpu::Queue, hdr_data: &[u8])
src/graphics/skybox.rs:147
Method
create_irradiance_map
( device: &wgpu::Device, queue: &wgpu::Queue, environment_texture: &Texture, u
src/graphics/skybox.rs:264
Method
create_mesh
( device: &wgpu::Device, gltf_mesh: &gltf::Mesh, buffers: &Vec<gltf::buffer::Data>,
src/graphics/renderable.rs:244
Method
create_precomputed_brdf_texture
(device: &wgpu::Device, queue: &wgpu::Queue)
src/graphics/skybox.rs:443
Method
create_prefiltered_environment_map
( device: &wgpu::Device, queue: &wgpu::Queue, environment_texture: &Texture, u
src/graphics/skybox.rs:337
Function
create_uniform_buffer
( device: &wgpu::Device, visibility: wgpu::ShaderStage, )
src/graphics/material_base.rs:98
Method
handle_event
(&mut self, window: &winit::window::Window, event: &winit::event::WindowEvent)
src/main.rs:149
Method
import_gltf
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, queue: &wgpu::Queue,
src/graphics/renderable.rs:47
Method
init
(window: &winit::window::Window)
src/main.rs:40
Function
main
()
src/main.rs:167
Method
new
( device: &wgpu::Device, swap_chain_desc: &wgpu::SwapChainDescriptor, params: &PbrBind
src/graphics/material_pbr.rs:35
Method
new
(device: &wgpu::Device, params: &HdrCvtBindGroup)
src/graphics/material_hdr.rs:51
Method
new
( eye: &Point3<f32>, target: &Point3<f32>, up: &Vector3<f32>, aspect_ratio: f3
src/graphics/camera.rs:21
Method
new
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, params: &SkyboxBindGroup
src/graphics/material_skybox.rs:17
Method
new
(meshes: Vec<Mesh>, material: Box<dyn MaterialBase + Send + Sync>)
src/graphics/renderable.rs:35
Method
new
(window: &Window)
src/graphics/render_state.rs:12
Method
new
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, queue: &wgpu::Queue,
src/graphics/skybox.rs:12
Method
new
(device: &wgpu::Device, vertex_data: &[Vertex], index_data: Option<&[u32]>)
src/graphics/mesh.rs:18
Method
new_cubemap_texture
( device: &wgpu::Device, queue: &wgpu::Queue, width: u32, height: u32,
src/graphics/texture.rs:151
Method
new_framebuffer_texture
( device: &wgpu::Device, width: u32, height: u32, image_format: wgpu::TextureF
src/graphics/texture.rs:237
Method
new_from_glb
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, queue: &wgpu::Queue,
src/graphics/renderable.rs:191
Method
new_from_path
( device: &wgpu::Device, sc_desc: &wgpu::SwapChainDescriptor, queue: &wgpu::Queue,
src/graphics/renderable.rs:179
Method
new_from_single_mesh
(mesh: Mesh, material: Box<dyn MaterialBase + Send + Sync>)
src/graphics/renderable.rs:39
Method
new_texture_from_data
( device: &wgpu::Device, queue: &wgpu::Queue, width: u32, height: u32,
src/graphics/texture.rs:9
Method
new_texture_from_framebuffer
( device: &wgpu::Device, queue: &wgpu::Queue, width: u32, height: u32,
src/graphics/texture.rs:82
Method
render
(&mut self)
src/main.rs:162
Method
resize
(&mut self, new_size: winit::dpi::PhysicalSize<u32>)
src/main.rs:143
Function
run
()
src/graphics/render_loop.rs:17
Method
run
(&mut self, data: Self::SystemData)
src/main.rs:27