mirror of
https://github.com/emilk/egui.git
synced 2026-08-31 22:00:03 -04:00
More newlines for improved readability (#1880)
* Add blank lines above all `fn`, `impl`, `struct`, etc * Even newlines between docstringed struct and enum fields * Improve some documentation
This commit is contained in:
@@ -25,6 +25,7 @@ pub type TextureFilter = egui::TextureFilter;
|
||||
trait TextureFilterExt {
|
||||
fn glow_code(&self) -> u32;
|
||||
}
|
||||
|
||||
impl TextureFilterExt for TextureFilter {
|
||||
fn glow_code(&self) -> u32 {
|
||||
match self {
|
||||
|
||||
@@ -60,6 +60,7 @@ impl ShaderVersion {
|
||||
Self::Es300 => "#version 300 es\n",
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn is_new_shader_interface(&self) -> &'static str {
|
||||
match self {
|
||||
ShaderVersion::Es300 | ShaderVersion::Gl140 => "#define NEW_SHADER_INTERFACE\n",
|
||||
|
||||
Reference in New Issue
Block a user