Struct GpuCompiler

Source
pub struct GpuCompiler<E> { /* private fields */ }
Expand description

Graph-compiler provider backed by one initialized GPU executor.

Implementations§

Source§

impl<E> GpuCompiler<E>

Source

pub const fn new(executor: E) -> Self

Wrap one initialized concrete executor.

Source

pub fn device(&self) -> &GpuDeviceDescriptor

Underlying device facts.

Source

pub const fn executor(&self) -> &E

Borrow the API-specific executor for advanced operations.

Trait Implementations§

Source§

impl<E: GpuGraphExecutor> Backend for GpuCompiler<E>

Source§

fn descriptor(&self) -> BackendDescriptor

Runtime descriptor and capability inventory.
Source§

impl<E: Debug> Debug for GpuCompiler<E>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

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<()>

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>

Compile one root.
Source§

fn scratch_requirement(&self) -> ScratchRequirement

Scratch this compiler needs beyond the graph and the produced meshes. Read more
Source§

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>

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>

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.