#[repr(i32)]pub enum PxHeightFieldFormat {
S16Tm = 1,
}Expand description
Describes the format of height field samples.
Variants§
S16Tm = 1
Height field height data is 16 bit signed integers, followed by triangle materials.
Each sample is 32 bits wide arranged as follows:
- First there is a 16 bit height value.
- Next, two one byte material indices, with the high bit of each byte reserved for special use. (so the material index is only 7 bits). The high bit of material0 is the tess-flag. The high bit of material1 is reserved for future use.
There are zero or more unused bytes before the next sample depending on PxHeightFieldDesc.sampleStride, where the application may eventually keep its own data.
This is the only format supported at the moment.
Trait Implementations§
Source§impl Clone for PxHeightFieldFormat
impl Clone for PxHeightFieldFormat
Source§fn clone(&self) -> PxHeightFieldFormat
fn clone(&self) -> PxHeightFieldFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PxHeightFieldFormat
impl Debug for PxHeightFieldFormat
Source§impl PartialEq for PxHeightFieldFormat
impl PartialEq for PxHeightFieldFormat
impl Copy for PxHeightFieldFormat
impl Eq for PxHeightFieldFormat
impl StructuralPartialEq for PxHeightFieldFormat
Auto Trait Implementations§
impl Freeze for PxHeightFieldFormat
impl RefUnwindSafe for PxHeightFieldFormat
impl Send for PxHeightFieldFormat
impl Sync for PxHeightFieldFormat
impl Unpin for PxHeightFieldFormat
impl UnwindSafe for PxHeightFieldFormat
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