class CreateColorBuffer2Params

Defined at line 242 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.CreateColorBuffer2()` method.

Includes necessary properties of a Vulkan-backed color buffer.

Public Methods

void CreateColorBuffer2Params ()

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

void CreateColorBuffer2Params (const CreateColorBuffer2Params & other)

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

bool has_memory_property ()
CreateColorBuffer2Params & operator= (const CreateColorBuffer2Params & other)

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

void CreateColorBuffer2Params (CreateColorBuffer2Params && other)

Defined at line 247 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::CreateColorBuffer2Params> Builder (::fidl::AnyArena & arena)

Return a builder that by defaults allocates of an arena.

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

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

CreateColorBuffer2Params & operator= (CreateColorBuffer2Params && other)

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

uint32_t & width ()

Width of the color buffer (unit: pixel).

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

`ZX_ERR_INVALID_ARGS` if `width` is missing.

bool has_width ()
uint32_t & height ()

Height of the color buffer (unit: pixel).

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

`ZX_ERR_INVALID_ARGS` if `height` is missing.

bool has_height ()
::fuchsia_hardware_goldfish::wire::ColorBufferFormatType & format ()

Color format type of the color buffer.

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

`ZX_ERR_INVALID_ARGS` if `format` is missing.

bool has_format ()
uint32_t & memory_property ()

Memory property flags the color buffer should support. Only bits

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

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

`ZX_ERR_INVALID_ARGS` if `memory_property` is missing.

uint64_t & physical_address ()

Goldfish address space device allocates a physical memory address

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

corresponding hardware address when that host-visible

color buffer is created, and is unmapped when the color 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,

`CreateColorBuffer2()` 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 ()
CreateColorBuffer2Params & set_width (uint32_t elem)
CreateColorBuffer2Params & clear_width ()
CreateColorBuffer2Params & set_height (uint32_t elem)
CreateColorBuffer2Params & clear_height ()
CreateColorBuffer2Params & set_format (::fuchsia_hardware_goldfish::wire::ColorBufferFormatType elem)
CreateColorBuffer2Params & clear_format ()
CreateColorBuffer2Params & set_memory_property (uint32_t elem)
CreateColorBuffer2Params & clear_memory_property ()
CreateColorBuffer2Params & set_physical_address (::fidl::ObjectView<uint64_t> elem)
CreateColorBuffer2Params & set_physical_address (std::nullptr_t )
CreateColorBuffer2Params & clear_physical_address ()
void CreateColorBuffer2Params (::fidl::AnyArena & allocator)
void CreateColorBuffer2Params (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_hardware_goldfish::wire::CreateColorBuffer2Params>> && 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::CreateColorBuffer2Params>> && frame_ptr)
void ~CreateColorBuffer2Params ()

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

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

Defined at line 331 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