Namespaces

Enumerations

enum class MeshIndexFormat : uint32_t
Name Value
kUint16 1u
kUint32 2u

Set a mesh's indices and vertices.

`mesh_id` refs the Mesh to be updated.

`index_buffer_id` refs a Buffer that contains the mesh indices.

`index_format` defines how the index buffer data is to be interpreted.

`index_offset` number of bytes from the start of the index Buffer.

`index_count` number of indices.

`vertex_buffer_id` refs a Buffer that contains the mesh vertices.

`vertex_format` defines how the vertex buffer data is to be interpreted.

`vertex_offset` number of bytes from the start of the vertex Buffer.

`vertex_count` number of vertices.

`bounding_box` must contain all vertices within the specified range.

The MeshVertexFormat defines which per-vertex attributes are provided by the

mesh, and the size of each attribute (and therefore the size of each vertex).

The attributes are ordered within the vertex in the same order that they

appear within the MeshVertexFormat struct. For example, if the values are

kVector3, kNone and kVector2, then:

- each vertex has a position and UV-coordinates, but no surface normal.

- the 3D position occupies bytes 0-11 (3 dimensions * 4 bytes per float32).

- the UV coords occupy bytes 12-19, since no surface normal is provided.

Defined at line 41 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

enum class ShadowTechnique : uint32_t
Name Value Comments
kUnshadowed 0u

No shadows.

kScreenSpace 1u

Default. Screen-space, depth-buffer based shadows; SSDO-ish.

kShadowMap 2u

Basic shadow map.

kMomentShadowMap 3u

Moment shadow map (see http:///momentsingraphics.de).

kStencilShadowVolume 4u

Stencil shadow volume.

Represents the shadow algorithm that the `Renderer` should use when lighting

the scene.

Defined at line 66 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

enum class RenderFrequency : uint32_t
Name Value
kWhenRequested 0u
kContinuously 1u

Defined at line 100 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

enum class ImportSpec : uint32_t
Name Value
kNode 0u

Describes an exported resource that is to be imported by an

ImportResourceCmd.

NOTE: Currently just an enum of importable resource types, but may later be

expanded to express concepts like "meshes with a particular vertex format".

Defined at line 128 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

enum class ValueType : uint32_t
Name Value
kNone 0u
kVector1 1u
kVector2 2u
kVector3 3u
kVector4 4u
kMatrix4 5u
kColorRgb 6u
kColorRgba 7u
kQuaternion 8u
kFactoredTransform 9u

Defined at line 149 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

enum class HitTestBehavior : uint32_t
Name Value Comments
kDefault 0u

Apply hit testing to the node's content, its parts, and its children.

kSuppress 1u

Suppress hit testing of the node and everything it contains.

Describes how nodes interact with hit testings.

Defined at line 189 of file fidling/gen/sdk/fidl/fuchsia.ui.gfx/fuchsia.ui.gfx/cpp/fidl/fuchsia.ui.gfx/cpp/common_types.h

Records