MCPcopy Create free account
hub / github.com/PerroEngine/Perro / poll

Method poll

perro_source/render_stack/perro_graphics/src/gpu.rs:324–358  ·  view source on GitHub ↗
(&mut self, device: &wgpu::Device)

Source from the content-addressed store, hash-verified

322 surfaces: surfaces.clone(),
323 instance_mats: Arc::from([]),
324 blend_shape_weights: Arc::from([]),
325 debug_color: None,
326 skeleton: None,
327 dense_multimesh: Some(DenseMultiMeshDraw3D {
328 node_model: *node_model,
329 instance_scale: *instance_scale,
330 instances: instances.clone(),
331 }),
332 meshlet_override: *meshlet_override,
333 lod: *lod,
334 blend: *blend,
335 cast_shadows: *cast_shadows,
336 receive_shadows: *receive_shadows,
337 },
338 }))
339}
340
341#[inline]
342fn camera_stream_uses_render_target(stream: &CameraStreamState) -> bool {
343 match &stream.source {
344 CameraStreamSourceState::Webcam { texture, .. } => stream.output_texture != *texture,
345 _ => true,
346 }
347}
348
349fn camera_stream_lighting_3d(lighting: &CameraStreamLighting3DState) -> Lighting3DState {
350 Lighting3DState {
351 frame_time_seconds: 0.0,
352 frame_delta_seconds: 0.0,
353 frame_index: 0,
354 ambient_light: lighting.ambient_light,
355 sky: lighting.sky.clone(),
356 sky_time_seconds: 0.0,
357 ray_lights: lighting.ray_lights,
358 point_lights: lighting.point_lights,
359 spot_lights: lighting.spot_lights,
360 }
361}

Callers 5

poll_readbackMethod · 0.45
wait_idleMethod · 0.45
renderMethod · 0.45
render_uv_readbackFunction · 0.45
prepareMethod · 0.45

Calls 4

as_refMethod · 0.45
expectMethod · 0.45
lenMethod · 0.45
maxMethod · 0.45

Tested by

no test coverage detected