pub struct GpuCompiler<E> { /* private fields */ }Expand description
Graph-compiler provider backed by one initialized GPU executor.
Implementations§
Source§impl<E> GpuCompiler<E>
impl<E> GpuCompiler<E>
Sourcepub fn device(&self) -> &GpuDeviceDescriptorwhere
E: GpuGraphExecutor,
pub fn device(&self) -> &GpuDeviceDescriptorwhere
E: GpuGraphExecutor,
Underlying device facts.
Trait Implementations§
Source§impl<E: GpuGraphExecutor> Backend for GpuCompiler<E>
impl<E: GpuGraphExecutor> Backend for GpuCompiler<E>
Source§fn descriptor(&self) -> BackendDescriptor
fn descriptor(&self) -> BackendDescriptor
Runtime descriptor and capability inventory.
Source§impl<E: Debug> Debug for GpuCompiler<E>
impl<E: Debug> Debug for GpuCompiler<E>
Source§impl<E: GpuGraphExecutor> MeshCompiler for GpuCompiler<E>
impl<E: GpuGraphExecutor> MeshCompiler for GpuCompiler<E>
Source§fn compile_mesh_batch_into(
&self,
graph: &GeometryGraph,
roots: &[NodeId],
options: &ExecutionOptions,
destination: &mut Vec<TriMesh>,
) -> GeomResult<()>
fn compile_mesh_batch_into( &self, graph: &GeometryGraph, roots: &[NodeId], options: &ExecutionOptions, destination: &mut Vec<TriMesh>, ) -> GeomResult<()>
Overriding the _into seam keeps both batch call shapes on the
single-dispatch GPU path; overriding only compile_mesh_batch would leave
compile_mesh_batch_into silently falling back to one submission per root.
Source§fn compile_mesh(
&self,
graph: &GeometryGraph,
root: NodeId,
options: &ExecutionOptions,
) -> GeomResult<TriMesh>
fn compile_mesh( &self, graph: &GeometryGraph, root: NodeId, options: &ExecutionOptions, ) -> GeomResult<TriMesh>
Compile one root.
Source§fn scratch_requirement(&self) -> ScratchRequirement
fn scratch_requirement(&self) -> ScratchRequirement
Scratch this compiler needs beyond the graph and the produced meshes. Read more
Source§fn output_bound(&self) -> OutputBound
fn output_bound(&self) -> OutputBound
Outputs produced per requested root. Read more
Source§fn compile_mesh_reported(
&self,
graph: &GeometryGraph,
root: NodeId,
options: &ExecutionOptions,
) -> Result<CompileOutcome, GeomError>
fn compile_mesh_reported( &self, graph: &GeometryGraph, root: NodeId, options: &ExecutionOptions, ) -> Result<CompileOutcome, GeomError>
Compile one root and report what happened to each attribute channel. Read more
Source§fn compile_mesh_batch(
&self,
graph: &GeometryGraph,
roots: &[NodeId],
options: &ExecutionOptions,
) -> Result<Vec<TriMesh>, GeomError>
fn compile_mesh_batch( &self, graph: &GeometryGraph, roots: &[NodeId], options: &ExecutionOptions, ) -> Result<Vec<TriMesh>, GeomError>
Compile roots as a batch. Read more
Auto Trait Implementations§
impl<E> Freeze for GpuCompiler<E>where
E: Freeze,
impl<E> RefUnwindSafe for GpuCompiler<E>where
E: RefUnwindSafe,
impl<E> Send for GpuCompiler<E>where
E: Send,
impl<E> Sync for GpuCompiler<E>where
E: Sync,
impl<E> Unpin for GpuCompiler<E>where
E: Unpin,
impl<E> UnwindSafe for GpuCompiler<E>where
E: UnwindSafe,
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