#include "imgui_impl_impeller.h"#include <algorithm>#include <climits>#include <memory>#include <vector>#include "fml/mapping.h"#include "impeller/core/buffer_view.h"#include "impeller/core/host_buffer.h"#include "impeller/geometry/scalar.h"#include "impeller/geometry/vector.h"#include "impeller/playground/imgui/imgui_raster.frag.h"#include "impeller/playground/imgui/imgui_raster.vert.h"#include "third_party/imgui/imgui.h"#include "impeller/core/allocator.h"#include "impeller/core/formats.h"#include "impeller/core/range.h"#include "impeller/core/sampler.h"#include "impeller/core/texture.h"#include "impeller/core/texture_descriptor.h"#include "impeller/core/vertex_buffer.h"#include "impeller/geometry/matrix.h"#include "impeller/geometry/point.h"#include "impeller/geometry/rect.h"#include "impeller/geometry/size.h"#include "impeller/renderer/context.h"#include "impeller/renderer/pipeline_builder.h"#include "impeller/renderer/pipeline_descriptor.h"#include "impeller/renderer/pipeline_library.h"#include "impeller/renderer/render_pass.h"Go to the source code of this file.
Classes | |
| struct | ImGui_ImplImpeller_Data |
Functions | |
| static ImGui_ImplImpeller_Data * | ImGui_ImplImpeller_GetBackendData () |
| bool | ImGui_ImplImpeller_Init (const std::shared_ptr< impeller::Context > &context) |
| void | ImGui_ImplImpeller_Shutdown () |
| void | ImGui_ImplImpeller_RenderDrawData (ImDrawData *draw_data, impeller::RenderPass &render_pass, impeller::HostBuffer &host_buffer) |
|
static |
Definition at line 49 of file imgui_impl_impeller.cc.
Referenced by ImGui_ImplImpeller_RenderDrawData(), and ImGui_ImplImpeller_Shutdown().
| bool ImGui_ImplImpeller_Init | ( | const std::shared_ptr< impeller::Context > & | context | ) |
Definition at line 56 of file imgui_impl_impeller.cc.
References impeller::DeviceBuffer::AsBufferView(), impeller::TextureDescriptor::format, impeller::TextureDescriptor::GetByteSizeOfBaseMipLevel(), impeller::kDevicePrivate, impeller::kR8G8B8A8UNormInt, impeller::TextureDescriptor::mip_count, impeller::TextureDescriptor::size, and impeller::TextureDescriptor::storage_mode.
Referenced by impeller::Playground::OpenPlaygroundHere().
| void ImGui_ImplImpeller_RenderDrawData | ( | ImDrawData * | draw_data, |
| impeller::RenderPass & | render_pass, | ||
| impeller::HostBuffer & | host_buffer | ||
| ) |
Definition at line 138 of file imgui_impl_impeller.cc.
References impeller::RenderPass::Draw(), impeller::HostBuffer::EmplaceUniform(), impeller::RenderPass::GetRenderTargetSize(), ImGui_ImplImpeller_GetBackendData(), impeller::VertexBuffer::index_buffer, impeller::VertexBuffer::index_type, impeller::k16bit, impeller::kHostVisible, impeller::TRect< Scalar >::MakeLTRB(), impeller::Matrix::MakeOrthographic(), impeller::TRect< Scalar >::MakeSize(), impeller::TRect< Scalar >::MakeXYWH(), impeller::Viewport::rect, impeller::HostBuffer::Reset(), impeller::TRect< T >::RoundOut(), impeller::TRect< T >::Scale(), impeller::RenderPass::SetBaseVertex(), impeller::RenderPass::SetCommandLabel(), impeller::RenderPass::SetPipeline(), impeller::RenderPass::SetScissor(), impeller::RenderPass::SetVertexBuffer(), impeller::RenderPass::SetViewport(), impeller::DeviceBufferDescriptor::size, impeller::SPrintF(), impeller::DeviceBufferDescriptor::storage_mode, impeller::Matrix::Translate(), impeller::VertexBuffer::vertex_buffer, and impeller::VertexBuffer::vertex_count.
Referenced by impeller::Playground::OpenPlaygroundHere().
| void ImGui_ImplImpeller_Shutdown | ( | ) |
Definition at line 131 of file imgui_impl_impeller.cc.
References ImGui_ImplImpeller_GetBackendData().
Referenced by impeller::Playground::OpenPlaygroundHere().