Struct hardware_buffer::AHardwareBufferFormat
source · #[repr(transparent)]pub struct AHardwareBufferFormat(pub c_uint);
Expand description
Buffer pixel formats.
Tuple Fields§
§0: c_uint
Implementations§
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 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AHardwareBufferFormat
impl Debug 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 ==
.