Enum physx_sys::PxHeightFieldFormat
source · #[repr(i32)]
pub enum PxHeightFieldFormat {
S16Tm,
}
Expand description
Describes the format of height field samples.
Variants§
S16Tm
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 copy 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<PxHeightFieldFormat> for PxHeightFieldFormat
impl PartialEq<PxHeightFieldFormat> for PxHeightFieldFormat
source§fn eq(&self, other: &PxHeightFieldFormat) -> bool
fn eq(&self, other: &PxHeightFieldFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.