class CreateBuffer2Params

Defined at line 614 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

Input arguments of `ControlDevice.CreateBuffer2()` method.

Includes necessary properties of a Vulkan-backed data buffer.

Public Methods

void CreateBuffer2Params ()

Defined at line 616 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

void CreateBuffer2Params (const CreateBuffer2Params & other)

Defined at line 617 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

void CreateBuffer2Params (CreateBuffer2Params && other)

Defined at line 619 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

bool IsEmpty ()

Returns whether no field is set.

bool HasUnknownData ()

Returns whether the table references unknown fields.

::fidl::WireTableBuilder< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

::fidl::WireTableExternalBuilder< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params>> frame)

Return a builder that relies on explicitly allocating |fidl::ObjectView|s.

uint64_t & size ()

Size of the buffer (unit: byte).

This argument is mandatory. `CreateBuffer2()` method returns

`ZX_ERR_INVALID_ARGS` if `size` is missing.

bool has_size ()
uint32_t & memory_property ()

Memory property flags the buffer should support. Only bits

from `fuchsia.hardware.goldfish.MEMORY_PROPERTY_*` are allowed.

This argument is mandatory. `CreateBuffer2()` method returns

`ZX_ERR_INVALID_ARGS` if `memory_property` is missing.

bool has_memory_property ()
uint64_t & physical_address ()

Goldfish address space device allocates a physical memory address

for each host-visible buffer. This address is mapped to a

corresponding hardware address when that host-visible buffer is

created, and is unmapped when the buffer is torn down.

This field stores the physical memory address allocated by address

space device.

If `memory_property` has the bit `MEMORY_PROPERTY_HOST_VISIBLE` set,

this argument is mandatory. If `physical_address` is missing,

`CreateBuffer2()` returns `ZX_ERR_INVALID_ARGS`.

If `memory_property` doesn't have the `MEMORY_PROPERTY_HOST_VISIBLE`

bit, this argument is ignored.

bool has_physical_address ()
CreateBuffer2Params & operator= (const CreateBuffer2Params & other)

Defined at line 618 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

CreateBuffer2Params & operator= (CreateBuffer2Params && other)

Defined at line 620 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

CreateBuffer2Params & set_size (::fidl::ObjectView<uint64_t> elem)
CreateBuffer2Params & set_size (std::nullptr_t )
CreateBuffer2Params & clear_size ()
CreateBuffer2Params & set_memory_property (uint32_t elem)
CreateBuffer2Params & clear_memory_property ()
CreateBuffer2Params & set_physical_address (::fidl::ObjectView<uint64_t> elem)
CreateBuffer2Params & set_physical_address (std::nullptr_t )
CreateBuffer2Params & clear_physical_address ()
void CreateBuffer2Params (::fidl::AnyArena & allocator)
void CreateBuffer2Params (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params>> && frame)

This constructor allows a user controlled allocation (not using a Arena).

It should only be used when performance is key.

As soon as the frame is given to the table, it must not be used directly or for another table.

void Allocate (::fidl::AnyArena & allocator)
void Init (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_goldfish::wire::CreateBuffer2Params>> && frame_ptr)
void ~CreateBuffer2Params ()

Defined at line 622 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

template <typename... Args>
CreateBuffer2Params & set_size (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 676 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

template <typename... Args>
CreateBuffer2Params & set_physical_address (::fidl::AnyArena & allocator, Args &&... args)

Defined at line 688 of file fidling/gen/sdk/fidl/fuchsia.hardware.goldfish/fuchsia.hardware.goldfish/cpp/fidl/fuchsia.hardware.goldfish/cpp/wire_types.h

Friends

class WireTableBaseBuilder
class WireTableBaseBuilder