#[repr(u8)]pub enum ShaderProgramId {
UiUber = 0,
BackdropBlur = 1,
Engine3dPbr = 2,
FluidOceanOptical = 3,
}Expand description
Built-in cross-platform GPU shader pipeline programs registered for ahead-of-time precompilation and PSO caching.
Variants§
UiUber = 0
64-byte instanced SDF UI uber-shader (euv_ui_vertex / euv_ui_fragment).
BackdropBlur = 1
Dual-Kawase frosted glass BackdropBlur downsample/upsample shaders.
Engine3dPbr = 2
UE5-aligned instanced 3D Cook-Torrance GGX PBR + ACES filmic shader (euv_3d_vertex / euv_3d_fragment).
FluidOceanOptical = 3
Photorealistic ocean Gerstner-wave, Fresnel, GGX sun-glitter & ACES optical shader (euv_ocean_vertex / euv_ocean_fragment).
Implementations§
Source§impl ShaderProgramId
Canonical shader program listing, metadata, and per-backend source lookup for ShaderProgramId.
impl ShaderProgramId
Canonical shader program listing, metadata, and per-backend source lookup for ShaderProgramId.
Sourcepub const fn all() -> [Self; 4]
pub const fn all() -> [Self; 4]
Returns all built-in GPU shader programs ordered for ahead-of-time precompilation.
§Returns
[Self; 4]- Complete ordered list of built-in shader programs.
Sourcepub const fn label(self) -> &'static str
pub const fn label(self) -> &'static str
Returns the human-readable diagnostic title for this shader program.
§Returns
&'static str- Descriptive shader pipeline name.
Sourcepub const fn language_for_backend(backend: GraphicsBackend) -> &'static str
pub const fn language_for_backend(backend: GraphicsBackend) -> &'static str
Sourcepub const fn source_pair(
self,
backend: GraphicsBackend,
) -> (&'static str, &'static str)
pub const fn source_pair( self, backend: GraphicsBackend, ) -> (&'static str, &'static str)
Trait Implementations§
Source§impl Clone for ShaderProgramId
impl Clone for ShaderProgramId
impl Copy for ShaderProgramId
Source§impl Debug for ShaderProgramId
impl Debug for ShaderProgramId
Source§impl Default for ShaderProgramId
impl Default for ShaderProgramId
impl Eq for ShaderProgramId
Source§impl Hash for ShaderProgramId
impl Hash for ShaderProgramId
Source§impl Ord for ShaderProgramId
impl Ord for ShaderProgramId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ShaderProgramId
impl PartialEq for ShaderProgramId
Source§impl PartialOrd for ShaderProgramId
impl PartialOrd for ShaderProgramId
impl StructuralPartialEq for ShaderProgramId
Auto Trait Implementations§
impl Forget for ShaderProgramId
impl Freeze for ShaderProgramId
impl Move for ShaderProgramId
impl RefUnwindSafe for ShaderProgramId
impl Send for ShaderProgramId
impl Sync for ShaderProgramId
impl Unpin for ShaderProgramId
impl UnsafeUnpin for ShaderProgramId
impl UnwindSafe for ShaderProgramId
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