class BufferUsage
Defined at line 7536 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
Describes how a client will access the contents of a buffer.
Public Methods
void BufferUsage ()
Defined at line 7541 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
void BufferUsage (BufferUsage && )
Defined at line 7542 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
void BufferUsage (Storage_ storage)
void BufferUsage (const BufferUsage & other)
BufferUsage & operator= (const BufferUsage & other)
bool operator== (const BufferUsage & other)
bool operator!= (const BufferUsage & other)
bool IsEmpty ()
const std::optional<uint32_t> & none ()
If the client sets this field, the client should not set any other
fields in the same table instance. The only valid bit in this field is
`NONE_USAGE` which must be set if this field is set. The point of this
field and the one bit set in this field is to essentially prove that the
client really means they aren't going to use the buffers, so don't need
any VMOs (didn't just fail to fill out the table).
::std::optional<uint32_t> & none ()
If the client sets this field, the client should not set any other
fields in the same table instance. The only valid bit in this field is
`NONE_USAGE` which must be set if this field is set. The point of this
field and the one bit set in this field is to essentially prove that the
client really means they aren't going to use the buffers, so don't need
any VMOs (didn't just fail to fill out the table).
BufferUsage & none (std::optional<uint32_t> value)
If the client sets this field, the client should not set any other
fields in the same table instance. The only valid bit in this field is
`NONE_USAGE` which must be set if this field is set. The point of this
field and the one bit set in this field is to essentially prove that the
client really means they aren't going to use the buffers, so don't need
any VMOs (didn't just fail to fill out the table).
const std::optional<uint32_t> & cpu ()
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
::std::optional<uint32_t> & cpu ()
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
BufferUsage & cpu (std::optional<uint32_t> value)
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
BufferUsage & operator= (BufferUsage && )
Defined at line 7543 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/cpp/fidl/fuchsia.sysmem2/cpp/natural_types.h
const std::optional<uint32_t> & vulkan ()
If set, holds vulkan usage bits. See `VULKAN_IMAGE_*` and
`VULKAN_BUFFER_*` bits in usages.fidl. The `VULKAN_USAGE_*` bit
definitions/names are deprecated.
::std::optional<uint32_t> & vulkan ()
If set, holds vulkan usage bits. See `VULKAN_IMAGE_*` and
`VULKAN_BUFFER_*` bits in usages.fidl. The `VULKAN_USAGE_*` bit
definitions/names are deprecated.
BufferUsage & vulkan (std::optional<uint32_t> value)
If set, holds vulkan usage bits. See `VULKAN_IMAGE_*` and
`VULKAN_BUFFER_*` bits in usages.fidl. The `VULKAN_USAGE_*` bit
definitions/names are deprecated.
const std::optional<uint32_t> & display ()
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
::std::optional<uint32_t> & display ()
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
BufferUsage & display (std::optional<uint32_t> value)
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
const std::optional<uint32_t> & video ()
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
::std::optional<uint32_t> & video ()
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
BufferUsage & video (std::optional<uint32_t> value)
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
void BufferUsage (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
Friends
class MemberVisitor
class NaturalTableCodingTraits