Struct wgpu_hal::gles::AdapterShared
source · struct AdapterShared {
context: AdapterContext,
private_caps: PrivateCapabilities,
features: Features,
workarounds: Workarounds,
shading_language_version: Version,
next_shader_id: AtomicU32,
program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>,
es: bool,
max_msaa_samples: i32,
}
Fields§
§context: AdapterContext
§private_caps: PrivateCapabilities
§features: Features
§workarounds: Workarounds
§shading_language_version: Version
§next_shader_id: AtomicU32
§program_cache: Mutex<FastHashMap<ProgramCacheKey, Result<Arc<PipelineInner>, PipelineError>>>
§es: bool
§max_msaa_samples: i32
Result of gl.get_parameter_i32(glow::MAX_SAMPLES)
.
Cached here so it doesn’t need to be queried every time texture format capabilities are requested.
(this has been shown to be a significant enough overhead)
Implementations§
pub(super) fn describe_texture_format( &self, texture_format: TextureFormat, ) -> TextureFormatDesc
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more