pub struct ShaderSource {
pub label: String,
pub wgsl_source: String,
pub entry_points: Vec<EntryPoint>,
pub version: u64,
pub last_modified: u64,
}Expand description
A versioned WGSL shader source record.
Fields§
§label: StringHuman-readable label used as the map key.
wgsl_source: StringRaw WGSL text.
entry_points: Vec<EntryPoint>Declared entry points (computed on insertion / update).
version: u64Monotonically increasing version counter; starts at 1, increments on
every call to ShaderWatcher::update_source.
last_modified: u64Unix timestamp (seconds) of the last modification.
In an embedded / no-filesystem context this defaults to 0.
Trait Implementations§
Source§impl Clone for ShaderSource
impl Clone for ShaderSource
Source§fn clone(&self) -> ShaderSource
fn clone(&self) -> ShaderSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShaderSource
impl RefUnwindSafe for ShaderSource
impl Send for ShaderSource
impl Sync for ShaderSource
impl Unpin for ShaderSource
impl UnsafeUnpin for ShaderSource
impl UnwindSafe for ShaderSource
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