pub struct VertexProbe { /* private fields */ }Expand description
A vertex program made ready to run one vertex at a time.
Implementations§
Source§impl VertexProbe
impl VertexProbe
Sourcepub fn new(program: Program) -> Result<Self, String>
pub fn new(program: Program) -> Result<Self, String>
The probe of program, a vertex program that writes a clip position and that the executor takes.
Sourcepub fn run<B: BufferReads>(
&self,
constants: BTreeMap<ResourceId, Vec<[u32; 4]>>,
inputs: &[[u32; 4]],
buffers: B,
) -> Result<ProbeRun<B>, String>
pub fn run<B: BufferReads>( &self, constants: BTreeMap<ResourceId, Vec<[u32; 4]>>, inputs: &[[u32; 4]], buffers: B, ) -> Result<ProbeRun<B>, String>
Runs one vertex: the constant buffers’ rows by resource (a buffer not given is zeros), the program’s inputs in
the order of its interface, and its buffers as buffers answers them.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VertexProbe
impl RefUnwindSafe for VertexProbe
impl Send for VertexProbe
impl Sync for VertexProbe
impl Unpin for VertexProbe
impl UnsafeUnpin for VertexProbe
impl UnwindSafe for VertexProbe
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