pub struct MeshSlabArenaGpu(/* private fields */);Implementations§
Source§impl MeshSlabArenaGpu
impl MeshSlabArenaGpu
pub fn required_vram_bytes(desc: MeshSlabArenaDescriptor) -> Option<u64>
pub fn try_new(device: &Device, desc: MeshSlabArenaDescriptor) -> Option<Self>
pub fn register_proc_header( &mut self, queue: &Queue, header: &ProceduralSynthesisHeader, ) -> Option<u16>
Methods from Deref<Target = MeshSlabArenaGpu<VramReservation<'static>, ProceduralSynthesisGpu>>§
pub fn register_proc_header(&mut self, queue: &Queue, header: &P) -> Option<u16>
pub fn register_proc_header(&mut self, queue: &Queue, header: &P) -> Option<u16>
Uploads a .10d PROC1 header into proc_headers_buffer and returns its slot index.
pub fn register_mesh_lod_asset(
&mut self,
queue: &Queue,
asset_id: u32,
vertices: &[MeshSlabVertex],
skin_attrs: Option<&[SkinAttrVertex]>,
lod_indices: [&[u32]; 4],
lod_rep_kinds: [u32; 4],
bounding_sphere: [f32; 4],
proc_header_index: u16,
eont_header_index: u16,
) -> Option<u32>
pub fn register_mesh_lod_asset( &mut self, queue: &Queue, asset_id: u32, vertices: &[MeshSlabVertex], skin_attrs: Option<&[SkinAttrVertex]>, lod_indices: [&[u32]; 4], lod_rep_kinds: [u32; 4], bounding_sphere: [f32; 4], proc_header_index: u16, eont_header_index: u16, ) -> Option<u32>
Allocates vertex/index slab space and uploads a multi-LOD asset entry into the unified arena.
Trait Implementations§
Source§impl Deref for MeshSlabArenaGpu
impl Deref for MeshSlabArenaGpu
Source§type Target = MeshSlabArenaGpu<VramReservation<'static>, ProceduralSynthesisGpu>
type Target = MeshSlabArenaGpu<VramReservation<'static>, ProceduralSynthesisGpu>
The resulting type after dereferencing.
Auto Trait Implementations§
impl !RefUnwindSafe for MeshSlabArenaGpu
impl !UnwindSafe for MeshSlabArenaGpu
impl Freeze for MeshSlabArenaGpu
impl Send for MeshSlabArenaGpu
impl Sync for MeshSlabArenaGpu
impl Unpin for MeshSlabArenaGpu
impl UnsafeUnpin for MeshSlabArenaGpu
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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