class CreateBuffer2Params

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

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

Includes necessary properties of a Vulkan-backed data buffer.

Public Methods

void CreateBuffer2Params (Storage_ storage)
void CreateBuffer2Params ()

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

void CreateBuffer2Params (CreateBuffer2Params && )

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

void CreateBuffer2Params (const CreateBuffer2Params & other)
CreateBuffer2Params & operator= (CreateBuffer2Params && )

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

CreateBuffer2Params & operator= (const CreateBuffer2Params & other)
bool operator== (const CreateBuffer2Params & other)
bool operator!= (const CreateBuffer2Params & other)
bool IsEmpty ()
const std::optional<uint64_t> & size ()

Size of the buffer (unit: byte).

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

`ZX_ERR_INVALID_ARGS` if `size` is missing.

::std::optional<uint64_t> & size ()

Size of the buffer (unit: byte).

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

`ZX_ERR_INVALID_ARGS` if `size` is missing.

CreateBuffer2Params & size (std::optional<uint64_t> value)

Size of the buffer (unit: byte).

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

`ZX_ERR_INVALID_ARGS` if `size` is missing.

const std::optional<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.

::std::optional<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.

CreateBuffer2Params & memory_property (std::optional<uint32_t> value)

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.

const std::optional<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.

::std::optional<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.

CreateBuffer2Params & physical_address (std::optional<uint64_t> value)

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.

void CreateBuffer2Params (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )

Friends

class MemberVisitor
class NaturalTableCodingTraits