#[repr(transparent)]pub struct AHardwareBufferFormat(pub c_uint);Expand description
Buffer pixel formats.
Tuple Fields§
§0: c_uintImplementations§
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const R8G8B8A8_UNORM: AHardwareBufferFormat
pub const R8G8B8A8_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_R8G8B8A8_UNORM OpenGL ES: GL_RGBA8
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const R8G8B8X8_UNORM: AHardwareBufferFormat
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
impl AHardwareBufferFormat
Sourcepub const R8G8B8_UNORM: AHardwareBufferFormat
pub const R8G8B8_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_R8G8B8_UNORM OpenGL ES: GL_RGB8
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const R5G6B5_UNORM: AHardwareBufferFormat
pub const R5G6B5_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_R5G6B5_UNORM_PACK16 OpenGL ES: GL_RGB565
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const R16G16B16A16_FLOAT: AHardwareBufferFormat
pub const R16G16B16A16_FLOAT: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_R16G16B16A16_SFLOAT OpenGL ES: GL_RGBA16F
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const R10G10B10A2_UNORM: AHardwareBufferFormat
pub const R10G10B10A2_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_A2B10G10R10_UNORM_PACK32 OpenGL ES: GL_RGB10_A2
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const BLOB: AHardwareBufferFormat
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
impl AHardwareBufferFormat
Sourcepub const D16_UNORM: AHardwareBufferFormat
pub const D16_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_D16_UNORM OpenGL ES: GL_DEPTH_COMPONENT16
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const D24_UNORM: AHardwareBufferFormat
pub const D24_UNORM: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_X8_D24_UNORM_PACK32 OpenGL ES: GL_DEPTH_COMPONENT24
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const D24_UNORM_S8_UINT: AHardwareBufferFormat
pub const D24_UNORM_S8_UINT: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_D24_UNORM_S8_UINT OpenGL ES: GL_DEPTH24_STENCIL8
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const D32_FLOAT: AHardwareBufferFormat
pub const D32_FLOAT: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_D32_SFLOAT OpenGL ES: GL_DEPTH_COMPONENT32F
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const D32_FLOAT_S8_UINT: AHardwareBufferFormat
pub const D32_FLOAT_S8_UINT: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_D32_SFLOAT_S8_UINT OpenGL ES: GL_DEPTH32F_STENCIL8
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const S8_UINT: AHardwareBufferFormat
pub const S8_UINT: AHardwareBufferFormat
Corresponding formats: Vulkan: VK_FORMAT_S8_UINT OpenGL ES: GL_STENCIL_INDEX8
Source§impl AHardwareBufferFormat
impl AHardwareBufferFormat
Sourcepub const Y8Cb8Cr8_420: AHardwareBufferFormat
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
impl Clone for AHardwareBufferFormat
Source§fn clone(&self) -> AHardwareBufferFormat
fn clone(&self) -> AHardwareBufferFormat
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AHardwareBufferFormat
Source§impl Debug for AHardwareBufferFormat
impl Debug for AHardwareBufferFormat
impl Eq for AHardwareBufferFormat
Source§impl Hash for AHardwareBufferFormat
impl Hash for AHardwareBufferFormat
Source§impl PartialEq for AHardwareBufferFormat
impl PartialEq for AHardwareBufferFormat
Source§fn eq(&self, other: &AHardwareBufferFormat) -> bool
fn eq(&self, other: &AHardwareBufferFormat) -> bool
self and other values to be equal, and is used by ==.