Enum tweak_shader::UserJobs
source · pub enum UserJobs {
LoadImageFile {
location: PathBuf,
var_name: String,
},
LoadAudioFile {
location: PathBuf,
var_name: String,
fft: bool,
max_samples: Option<u32>,
},
}
Expand description
Video and Audio loading Tasks for the user to complete, as specified
by the tweak shader pragmas. you can retrieve a list of these from the context with
crate::RenderContext::list_set_up_jobs
. see RenderContext::load_video_stream_raw
, RenderContext::load_video_stream_raw
,
RenderContext::load_texture
, and RenderContext::load_shared_texture
for interfaces
to complete these requests.
Variants§
LoadImageFile
The Context has meta data that indicates the file at location
should be loaded into the texture var_name. It could be a video or image file.
LoadAudioFile
The context wants you to load an audio file at location alocation
and
to process it into a frame width of at most max_samples
. if fft is
true, process run it through an FFT with at most max_samples
buckets.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UserJobs
impl RefUnwindSafe for UserJobs
impl Send for UserJobs
impl Sync for UserJobs
impl Unpin for UserJobs
impl UnwindSafe for UserJobs
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