class BufferUsage
Defined at line 10597 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 10609 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_none ()
Defined at line 10613 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 10623 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_none ()
Defined at line 10631 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 10640 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_cpu ()
Defined at line 10644 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 10649 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_cpu ()
Defined at line 10657 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 10668 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_vulkan ()
Defined at line 10672 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 10679 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_vulkan ()
Defined at line 10687 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 10697 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_display ()
Defined at line 10701 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 10707 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_display ()
Defined at line 10715 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 10724 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
bool has_video ()
Defined at line 10728 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 10733 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h
void clear_video ()
Defined at line 10741 of file fidling/gen/sdk/fidl/fuchsia.sysmem2/fuchsia.sysmem2/hlcpp/fuchsia/sysmem2/cpp/fidl.h