MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / vsync_active

Method vsync_active

native/shared/src/renderer/mod.rs:13053–13056  ·  view source on GitHub ↗

Returns true if vsync is active (Fifo or FifoRelaxed present mode).

(&self)

Source from the content-addressed store, hash-verified

13051
13052 /// Returns true if vsync is active (Fifo or FifoRelaxed present mode).
13053 pub fn vsync_active(&self) -> bool {
13054 matches!(self.surface_config.present_mode,
13055 wgpu::PresentMode::Fifo | wgpu::PresentMode::FifoRelaxed)
13056 }
13057
13058 pub fn load_custom_shader(&mut self, wgsl_source: &str) -> usize {
13059 let shader_module = self.device.create_shader_module(wgpu::ShaderModuleDescriptor {

Callers 1

end_frameMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected