Struct AHardwareBufferFormat

Source
#[repr(transparent)]
pub struct AHardwareBufferFormat(pub c_uint);
Expand description

Buffer pixel formats.

Tuple Fields§

§0: c_uint

Implementations§

Source§

impl AHardwareBufferFormat

Source

pub const R8G8B8A8_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_R8G8B8A8_UNORM OpenGL ES: GL_RGBA8

Source§

impl AHardwareBufferFormat

Source

pub const R8G8B8X8_UNORM: AHardwareBufferFormat

32 bits per pixel, 8 bits per channel format where alpha values are ignored (always opaque). Corresponding formats: Vulkan: VK_FORMAT_R8G8B8A8_UNORM OpenGL ES: GL_RGB8

Source§

impl AHardwareBufferFormat

Source

pub const R8G8B8_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_R8G8B8_UNORM OpenGL ES: GL_RGB8

Source§

impl AHardwareBufferFormat

Source

pub const R5G6B5_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_R5G6B5_UNORM_PACK16 OpenGL ES: GL_RGB565

Source§

impl AHardwareBufferFormat

Source

pub const R16G16B16A16_FLOAT: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_R16G16B16A16_SFLOAT OpenGL ES: GL_RGBA16F

Source§

impl AHardwareBufferFormat

Source

pub const R10G10B10A2_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_A2B10G10R10_UNORM_PACK32 OpenGL ES: GL_RGB10_A2

Source§

impl AHardwareBufferFormat

Source

pub const BLOB: AHardwareBufferFormat

Opaque binary blob format. Must have height 1 and one layer, with width equal to the buffer size in bytes. Corresponds to Vulkan buffers and OpenGL buffer objects. Can be bound to the latter using GL_EXT_external_buffer.

Source§

impl AHardwareBufferFormat

Source

pub const D16_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_D16_UNORM OpenGL ES: GL_DEPTH_COMPONENT16

Source§

impl AHardwareBufferFormat

Source

pub const D24_UNORM: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_X8_D24_UNORM_PACK32 OpenGL ES: GL_DEPTH_COMPONENT24

Source§

impl AHardwareBufferFormat

Source

pub const D24_UNORM_S8_UINT: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_D24_UNORM_S8_UINT OpenGL ES: GL_DEPTH24_STENCIL8

Source§

impl AHardwareBufferFormat

Source

pub const D32_FLOAT: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_D32_SFLOAT OpenGL ES: GL_DEPTH_COMPONENT32F

Source§

impl AHardwareBufferFormat

Source

pub const D32_FLOAT_S8_UINT: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_D32_SFLOAT_S8_UINT OpenGL ES: GL_DEPTH32F_STENCIL8

Source§

impl AHardwareBufferFormat

Source

pub const S8_UINT: AHardwareBufferFormat

Corresponding formats: Vulkan: VK_FORMAT_S8_UINT OpenGL ES: GL_STENCIL_INDEX8

Source§

impl AHardwareBufferFormat

Source

pub const Y8Cb8Cr8_420: AHardwareBufferFormat

YUV 420 888 format. Must have an even width and height. Can be accessed in OpenGL shaders through an external sampler. Does not support mip-maps cube-maps or multi-layered textures.

Trait Implementations§

Source§

impl Clone for AHardwareBufferFormat

Source§

fn clone(&self) -> AHardwareBufferFormat

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AHardwareBufferFormat

Source§

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

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

impl Hash for AHardwareBufferFormat

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AHardwareBufferFormat

Source§

fn eq(&self, other: &AHardwareBufferFormat) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AHardwareBufferFormat

Source§

impl Eq for AHardwareBufferFormat

Source§

impl StructuralPartialEq for AHardwareBufferFormat

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.