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 const fn new(executor: E) -> GpuCompiler<E>
pub const fn new(executor: E) -> GpuCompiler<E>
Wrap one initialized concrete executor.
Sourcepub fn device(&self) -> &GpuDeviceDescriptorwhere
E: GpuGraphExecutor,
pub fn device(&self) -> &GpuDeviceDescriptorwhere
E: GpuGraphExecutor,
Underlying device facts.
Trait Implementations§
Source§impl<E> Backend for GpuCompiler<E>where
E: GpuGraphExecutor,
impl<E> Backend for GpuCompiler<E>where
E: GpuGraphExecutor,
Source§fn descriptor(&self) -> BackendDescriptor
fn descriptor(&self) -> BackendDescriptor
Runtime descriptor and capability inventory.
Source§impl<E> Debug for GpuCompiler<E>where
E: Debug,
impl<E> Debug for GpuCompiler<E>where
E: Debug,
Source§impl<E> MeshCompiler for GpuCompiler<E>where
E: GpuGraphExecutor,
impl<E> MeshCompiler for GpuCompiler<E>where
E: GpuGraphExecutor,
Source§fn compile_mesh_batch_into(
&self,
graph: &GeometryGraph,
roots: &[NodeId],
options: &ExecutionOptions,
destination: &mut Vec<TriMesh>,
) -> Result<(), GeomError>
fn compile_mesh_batch_into( &self, graph: &GeometryGraph, roots: &[NodeId], options: &ExecutionOptions, destination: &mut Vec<TriMesh>, ) -> Result<(), GeomError>
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,
) -> Result<TriMesh, GeomError>
fn compile_mesh( &self, graph: &GeometryGraph, root: NodeId, options: &ExecutionOptions, ) -> Result<TriMesh, GeomError>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more