pub struct RuntimeProgram {
pub spirv: Vec<u32>,
pub glsl_es: String,
}Expand description
A caller’s fragment program, in the forms each backend can take one.
Both are given because a program is registered once and drawn on whichever backend the context happens to be, and neither payload can be derived from the other here: nothing in this workspace translates shaders at run time, by the decision recorded in the architecture document. A caller’s build produces both, which is what the reference implementation’s toolchain does and what this project’s own build does.
Fields§
§spirv: Vec<u32>A SPIR-V fragment module, for Vulkan.
glsl_es: StringA GLSL ES 300 fragment source, for GLES.
Trait Implementations§
Source§impl Clone for RuntimeProgram
impl Clone for RuntimeProgram
Auto Trait Implementations§
impl Freeze for RuntimeProgram
impl RefUnwindSafe for RuntimeProgram
impl Send for RuntimeProgram
impl Sync for RuntimeProgram
impl Unpin for RuntimeProgram
impl UnsafeUnpin for RuntimeProgram
impl UnwindSafe for RuntimeProgram
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