#include <scene_context.h>
Public Member Functions | |
| SceneContext (std::shared_ptr< Context > context) | |
| ~SceneContext () | |
| bool | IsValid () const |
| std::shared_ptr< Pipeline< PipelineDescriptor > > | GetPipeline (PipelineKey key, SceneContextOptions opts) const |
| std::shared_ptr< Context > | GetContext () const |
| std::shared_ptr< Texture > | GetPlaceholderTexture () const |
| HostBuffer & | GetTransientsBuffer () const |
Definition at line 41 of file scene_context.h.
|
explicit |
Definition at line 38 of file scene_context.cc.
References impeller::HostBuffer::Create(), impeller::TextureDescriptor::format, GetContext(), impeller::kHostVisible, impeller::kR8G8B8A8UNormInt, impeller::scene::kSkinned, impeller::scene::kUnlit, impeller::scene::kUnskinned, impeller::TextureDescriptor::mip_count, impeller::TextureDescriptor::size, and impeller::TextureDescriptor::storage_mode.
|
default |
| std::shared_ptr< Context > impeller::scene::SceneContext::GetContext | ( | ) | const |
Definition at line 106 of file scene_context.cc.
Referenced by impeller::scene::CuboidGeometry::BindToCommand(), impeller::scene::UnlitMaterial::BindToCommand(), impeller::scene::UnskinnedVertexBufferGeometry::BindToCommand(), impeller::scene::SkinnedVertexBufferGeometry::BindToCommand(), and SceneContext().
| std::shared_ptr< Pipeline< PipelineDescriptor > > impeller::scene::SceneContext::GetPipeline | ( | PipelineKey | key, |
| SceneContextOptions | opts | ||
| ) | const |
Definition at line 90 of file scene_context.cc.
References IsValid().
Referenced by impeller::scene::EncodeCommand().
| std::shared_ptr< Texture > impeller::scene::SceneContext::GetPlaceholderTexture | ( | ) | const |
Definition at line 110 of file scene_context.cc.
Referenced by impeller::scene::UnlitMaterial::BindToCommand(), and impeller::scene::SkinnedVertexBufferGeometry::BindToCommand().
|
inline |
Definition at line 57 of file scene_context.h.
Referenced by impeller::scene::EncodeCommand().
| bool impeller::scene::SceneContext::IsValid | ( | ) | const |
Definition at line 102 of file scene_context.cc.
Referenced by GetPipeline().