A descriptor use to specify hardware buffer allocations. More...
#include <hardware_buffer.h>
Public Member Functions | |
bool | IsAllocatable () const |
If hardware buffers can be created using this descriptor. Allocatable descriptors may still cause failing allocations in case of resource exhaustion. More... | |
constexpr bool | operator== (const HardwareBufferDescriptor &o) const |
constexpr bool | operator!= (const HardwareBufferDescriptor &o) const |
Static Public Member Functions | |
static HardwareBufferDescriptor | MakeForSwapchainImage (const ISize &size) |
Create a descriptor of the given size that is suitable for use as a swapchain image. More... | |
Public Attributes | |
HardwareBufferFormat | format = HardwareBufferFormat::kR8G8B8A8UNormInt |
ISize | size |
HardwareBufferUsage | usage = HardwareBufferUsageFlags::kNone |
A descriptor use to specify hardware buffer allocations.
Definition at line 47 of file hardware_buffer.h.
bool impeller::android::HardwareBufferDescriptor::IsAllocatable | ( | ) | const |
If hardware buffers can be created using this descriptor. Allocatable descriptors may still cause failing allocations in case of resource exhaustion.
true
if allocatable (unless resource exhaustion). Definition at line 52 of file hardware_buffer.cc.
References impeller::android::GetProcTable(), and impeller::android::ToAHardwareBufferDesc().
Referenced by impeller::AHBTexturePoolVK::AHBTexturePoolVK(), and impeller::android::HardwareBuffer::HardwareBuffer().
|
static |
Create a descriptor of the given size that is suitable for use as a swapchain image.
[in] | size | The size. See the restrictions about valid sizes above. |
Definition at line 87 of file hardware_buffer.cc.
References format, impeller::android::kCompositorOverlay, impeller::android::kFrameBufferAttachment, impeller::android::kR8G8B8A8UNormInt, impeller::android::kSampledImage, impeller::TSize< T >::Max(), size, and usage.
Referenced by impeller::android::testing::TEST().
|
inlineconstexpr |
Definition at line 80 of file hardware_buffer.h.
|
inlineconstexpr |
Definition at line 76 of file hardware_buffer.h.
HardwareBufferFormat impeller::android::HardwareBufferDescriptor::format = HardwareBufferFormat::kR8G8B8A8UNormInt |
Definition at line 48 of file hardware_buffer.h.
Referenced by MakeForSwapchainImage(), operator==(), impeller::android::testing::TEST(), impeller::android::ToAHardwareBufferDesc(), and impeller::ToSwapchainTextureDescriptor().
ISize impeller::android::HardwareBufferDescriptor::size |
Definition at line 49 of file hardware_buffer.h.
Referenced by impeller::AHBSwapchainImplVK::GetSize(), MakeForSwapchainImage(), operator==(), impeller::android::testing::TEST(), impeller::android::ToAHardwareBufferDesc(), and impeller::ToSwapchainTextureDescriptor().
HardwareBufferUsage impeller::android::HardwareBufferDescriptor::usage = HardwareBufferUsageFlags::kNone |
Definition at line 50 of file hardware_buffer.h.
Referenced by MakeForSwapchainImage(), operator==(), impeller::android::testing::TEST(), and impeller::android::ToAHardwareBufferDesc().