class BufferUsage
Defined at line 10641 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
Describes how a client will access the contents of a buffer.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
BufferUsage & set_none (uint32_t _value)
BufferUsage & set_cpu (uint32_t _value)
BufferUsage & set_vulkan (uint32_t _value)
BufferUsage & set_display (uint32_t _value)
BufferUsage & set_video (uint32_t _value)
void BufferUsage ()
void BufferUsage (BufferUsage && other)
void ~BufferUsage ()
BufferUsage & operator= (BufferUsage && other)
::std::unique_ptr<BufferUsage> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, BufferUsage * _value, size_t _offset)
zx_status_t Clone (BufferUsage * _result)
const 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).
Defined at line 10653 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_none ()
Defined at line 10657 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
uint32_t * mutable_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).
Defined at line 10667 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_none ()
Defined at line 10675 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
const uint32_t & cpu ()
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
Defined at line 10684 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_cpu ()
Defined at line 10688 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
uint32_t * mutable_cpu ()
If set, holds CPU usage bits. See `CPU_USAGE_*` flags in usages.fidl.
Defined at line 10693 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_cpu ()
Defined at line 10701 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
const 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.
Defined at line 10712 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_vulkan ()
Defined at line 10716 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
uint32_t * mutable_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.
Defined at line 10723 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_vulkan ()
Defined at line 10731 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
const uint32_t & display ()
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
Defined at line 10741 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_display ()
Defined at line 10745 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
uint32_t * mutable_display ()
If set, holds display usage bits. See `DISPLAY_USAGE_*` bits in
usages.fidl.
Defined at line 10751 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_display ()
Defined at line 10759 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
const uint32_t & video ()
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
Defined at line 10768 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_video ()
Defined at line 10772 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
uint32_t * mutable_video ()
If set, holds video usage bits. See `VIDEO_USAGE_*` bits in usages.fidl.
Defined at line 10777 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_video ()
Defined at line 10785 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h