 |
Flutter Impeller
|
|
Go to the documentation of this file.
9 #include "flutter/fml/macros.h"
17 #include "impeller/scene/importer/scene_flatbuffers.h"
25 class UnskinnedVertexBufferGeometry;
37 const fb::MeshPrimitive& mesh,
70 Command& command)
const override;
96 Command& command)
const override;
122 Command& command)
const override;
129 std::shared_ptr<Texture> joints_texture_;
~SkinnedVertexBufferGeometry() override
virtual void SetJointsTexture(const std::shared_ptr< Texture > &texture)
An object used to specify work to the GPU along with references to resources the GPU will used when d...
static std::shared_ptr< CuboidGeometry > MakeCuboid(Vector3 size)
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, Command &command) const override
UnskinnedVertexBufferGeometry()
SkinnedVertexBufferGeometry()
GeometryType GetGeometryType() const override
~CuboidGeometry() override
GeometryType GetGeometryType() const override
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
virtual VertexBuffer GetVertexBuffer(Allocator &allocator) const =0
GeometryType GetGeometryType() const override
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, Command &command) const override
void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, Command &command) const override
void SetVertexBuffer(VertexBuffer vertex_buffer)
An object that allocates device memory.
static std::shared_ptr< Geometry > MakeFromFlatbuffer(const fb::MeshPrimitive &mesh, Allocator &allocator)
static std::shared_ptr< Geometry > MakeVertexBuffer(VertexBuffer vertex_buffer, bool is_skinned)
~UnskinnedVertexBufferGeometry() override
void SetVertexBuffer(VertexBuffer vertex_buffer)
virtual void BindToCommand(const SceneContext &scene_context, HostBuffer &buffer, const Matrix &transform, Command &command) const =0
VertexBuffer GetVertexBuffer(Allocator &allocator) const override
void SetJointsTexture(const std::shared_ptr< Texture > &texture) override
A 4x4 matrix using column-major storage.
void SetSize(Vector3 size)
virtual GeometryType GetGeometryType() const =0