/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | json_format_serialization.h | 26 CORE_JSON_SERIALIZE_ENUM(BASE_NS::Format, 28 { BASE_NS::Format::BASE_FORMAT_UNDEFINED, "undefined" }, 29 { BASE_NS::Format::BASE_FORMAT_R4G4_UNORM_PACK8, "r4g4_unorm_pack8" }, 30 { BASE_NS::Format::BASE_FORMAT_R4G4B4A4_UNORM_PACK16, "r4g4b4a4_unorm_pack16" }, 31 { BASE_NS::Format::BASE_FORMAT_B4G4R4A4_UNORM_PACK16, "b4g4r4a4_unorm_pack16" }, 32 { BASE_NS::Format::BASE_FORMAT_R5G6B5_UNORM_PACK16, "r5g6b5_unorm_pack16" }, 33 { BASE_NS::Format::BASE_FORMAT_B5G6R5_UNORM_PACK16, "b5g6r5_unorm_pack16" }, 34 { BASE_NS::Format::BASE_FORMAT_R5G5B5A1_UNORM_PACK16, "r5g5b5a1_unorm_pack16" }, 35 { BASE_NS::Format::BASE_FORMAT_B5G5R5A1_UNORM_PACK16, "b5g5r5a1_unorm_pack16" }, 36 { BASE_NS [all...] |
H A D | shader_data_loader.h | 39 explicit LoadResult(const BASE_NS::string& aError) : success(false), error(aError) {} in LoadResult() 45 BASE_NS::string error; 51 BASE_NS::string variantName; 52 BASE_NS::string displayName; 54 BASE_NS::string vertexShader; 55 BASE_NS::string fragmentShader; 56 BASE_NS::string computeShader; 58 BASE_NS::string vertexInputDeclaration; 59 BASE_NS::string pipelineLayout; 62 BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/ |
H A D | default_material_constants.h | 44 static constexpr const BASE_NS::string_view LIGHT_DATA_BUFFER_NAME { "CORE3D_DM_LIGHT_DATA_BUFFER" }; 46 static constexpr const BASE_NS::string_view LIGHT_CLUSTER_DATA_BUFFER_NAME { 51 static constexpr const BASE_NS::string_view SHADOW_DEPTH_BUFFER_NAME { "CORE3D_DM_SHADOW_DEPTH_BUFFER" }; 53 static constexpr const BASE_NS::string_view SHADOW_VSM_COLOR_BUFFER_NAME { "CORE3D_DM_VSM_SHADOW_COLOR_BUFFER" }; 61 static constexpr const BASE_NS::string_view MATERIAL_DATA_BUFFER_NAME { "CORE3D_DM_DATA_BUFFER" }; 63 static constexpr const BASE_NS::string_view MATERIAL_TRANSFORM_DATA_BUFFER_NAME { 67 static constexpr const BASE_NS::string_view MATERIAL_USER_DATA_BUFFER_NAME { "CORE3D_DM_USER_DATA_BUFFER" }; 69 static constexpr const BASE_NS::string_view MESH_DATA_BUFFER_NAME { "CORE3D_DM_MESH_DATA_BUFFER" }; 71 static constexpr const BASE_NS::string_view SKIN_DATA_BUFFER_NAME { "CORE3D_DM_SKIN_DATA_BUFFER" }; 77 static constexpr const BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/image/loaders/ |
H A D | gl_util.h | 294 BASE_NS::Format coreFormat; 295 BASE_NS::Format coreFormatForceSrgb; 296 BASE_NS::Format coreFormatForceLinear; 310 { BASE_NS::Format::BASE_FORMAT_R8_UNORM, BASE_NS::Format::BASE_FORMAT_R8_SRGB, 311 BASE_NS::Format::BASE_FORMAT_R8_UNORM, GL_R8, false, 1, 1, 1, 8 }, 312 { BASE_NS::Format::BASE_FORMAT_R8G8_UNORM, BASE_NS::Format::BASE_FORMAT_R8G8_SRGB, 313 BASE_NS::Format::BASE_FORMAT_R8G8_UNORM, GL_RG8, false, 1, 1, 1, 16 }, 314 { BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | data.h | 38 BASE_NS::string filepath; 39 BASE_NS::string defaultResources; 44 BASE_NS::unique_ptr<GLTF2::Material> defaultMaterial; 45 BASE_NS::unique_ptr<GLTF2::Sampler> defaultSampler; 48 BASE_NS::vector<BASE_NS::unique_ptr<GLTF2::Buffer>> buffers; 49 BASE_NS::vector<BASE_NS::unique_ptr<GLTF2::BufferView>> bufferViews; 50 BASE_NS::vector<BASE_NS [all...] |
H A D | gltf2_util.h | 29 bool GetAttributeType(BASE_NS::string_view dataType, AttributeBase& out); 30 bool GetMimeType(BASE_NS::string_view type, MimeType& out); 32 bool GetDataType(BASE_NS::string_view dataType, DataType& out); 33 bool GetCameraType(BASE_NS::string_view type, CameraType& out); 35 bool GetAlphaMode(BASE_NS::string_view dataType, AlphaMode& out); 36 bool GetBlendMode(BASE_NS::string_view dataType, BlendMode& out); 38 bool GetAnimationInterpolation(BASE_NS::string_view interpolation, AnimationInterpolation& out); 39 bool GetAnimationPath(BASE_NS::string_view path, AnimationPath& out); 41 BASE_NS::string_view GetAttributeType(AttributeBase type); 42 BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_graph_share_manager.h | 43 void SetGlobalRenderNodeResources(const BASE_NS::string_view nodeName, 44 const BASE_NS::array_view<const IRenderNodeGraphShareManager::NamedResource> resources); 45 BASE_NS::array_view<const IRenderNodeGraphShareManager::NamedResource> GetGlobalRenderNodeResources( 46 const BASE_NS::string_view nodeName) const; 52 BASE_NS::vector<IRenderNodeGraphShareManager::NamedResource> resources; 54 BASE_NS::unordered_map<BASE_NS::string, RenderNodeDataSet> renderNodes_; 62 RenderNodeGraphShareDataManager(const BASE_NS::array_view<const RenderNodeGraphOutputResource> rngOutputResources); 69 const BASE_NS::array_view<const IRenderNodeGraphShareManager::NamedResource> inputs, 70 const BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/dev/ |
H A D | file_monitor.h | 38 bool AddPath(BASE_NS::string_view path); 44 bool RemovePath(BASE_NS::string_view path); 51 void ScanModifications(BASE_NS::vector<BASE_NS::string>& added, BASE_NS::vector<BASE_NS::string>& removed, 52 BASE_NS::vector<BASE_NS::string>& modified); 57 BASE_NS::vector<BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/io/ |
H A D | file_manager.h | 37 const IInterface* GetInterface(const BASE_NS::Uid& uid) const override; 38 IInterface* GetInterface(const BASE_NS::Uid& uid) override; 45 IDirectory::Entry GetEntry(BASE_NS::string_view uri) override; 47 IFile::Ptr OpenFile(BASE_NS::string_view uri) override; 48 IFile::Ptr CreateFile(BASE_NS::string_view uri) override; 50 bool DeleteFile(BASE_NS::string_view uri) override; 52 IDirectory::Ptr OpenDirectory(BASE_NS::string_view uri) override; 53 IDirectory::Ptr CreateDirectory(BASE_NS::string_view uri) override; 54 bool DeleteDirectory(BASE_NS::string_view uri) override; 56 bool Rename(BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.h | 32 CORE3D_NS::IGraphicsContext& graphicsContext, IEntityCollection& ec, BASE_NS::string_view src, 33 BASE_NS::string_view contextUri); 37 static BASE_NS::string NormalizePath(BASE_NS::string_view path) in NormalizePath() 39 BASE_NS::string res; in NormalizePath() 55 BASE_NS::string_view sub = path.substr(0, pos); in NormalizePath() 63 if (auto p = res.find_last_of('/'); BASE_NS::string::npos != p) { in NormalizePath() 72 if (pos == BASE_NS::string::npos) { in NormalizePath() 79 if (pos == BASE_NS::string::npos) { in NormalizePath() 92 static BASE_NS [all...] |
H A D | entity_collection.h | 28 using Ptr = BASE_NS::unique_ptr<EntityCollection, Deleter>; 30 EntityCollection(CORE_NS::IEcs& ecs, BASE_NS::string_view uri, BASE_NS::string_view contextUri); 40 BASE_NS::string_view uri, BASE_NS::string_view contextUri) override; 43 BASE_NS::string GetUri() const override; 44 void SetUri(const BASE_NS::string& uri) override; 46 BASE_NS::string GetContextUri() const override; 48 BASE_NS::string GetSrc() const override; 49 void SetSrc(BASE_NS [all...] |
H A D | asset_manager.h | 35 ExtensionType GetExtensionType(BASE_NS::string_view ext) const override; 38 IEntityCollection& ec, BASE_NS::string_view src, BASE_NS::string_view contextUri) override; 40 bool LoadAsset(IEntityCollection& ec, BASE_NS::string_view uri, BASE_NS::string_view contextUri) override; 43 const IEntityCollection& ec, BASE_NS::string_view uri, BASE_NS::string_view contextUri) const override; 45 IEntityCollection* LoadAssetToCache(CORE_NS::IEcs& ecs, BASE_NS::string_view cacheUri, BASE_NS::string_view uri, 46 BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_picking.h | 50 BASE_NS::Math::Vec3 minAABB { CORE_FMAX, CORE_FMAX, CORE_FMAX }; 51 BASE_NS::Math::Vec3 maxAABB { -CORE_FMAX, -CORE_FMAX, -CORE_FMAX }; 67 BASE_NS::Math::Vec3 worldPosition { 0.0f, 0.0f, 0.0f }; 76 BASE_NS::Math::Vec3 worldPosition { 0.0f, 0.0f, 0.0f }; 79 BASE_NS::Math::Vec2 hitUv { 0.0f, 0.0f }; 87 static constexpr auto UID = BASE_NS::Uid { "9a4791d7-19e2-4dc0-a4fd-b0804d153d70" }; 89 using Ptr = BASE_NS::refcnt_ptr<IPicking>; 98 virtual BASE_NS::Math::Vec3 ScreenToWorld( 99 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) const = 0; 107 virtual BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | picking.h | 40 BASE_NS::Math::Vec3 ScreenToWorld( 41 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 screenCoordinate) const override; 43 BASE_NS::Math::Vec3 WorldToScreen( 44 CORE_NS::IEcs const& ecs, CORE_NS::Entity cameraEntity, BASE_NS::Math::Vec3 worldCoordinate) const override; 46 BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, 47 const BASE_NS::Math::Vec3& direction) const override; 48 BASE_NS::vector<RayCastResult> RayCast(CORE_NS::IEcs const& ecs, const BASE_NS::Math::Vec3& start, 49 const BASE_NS [all...] |
H A D | mesh_util.h | 39 CORE_NS::Entity GeneratePlaneMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 41 CORE_NS::Entity GenerateSphereMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 43 CORE_NS::Entity GenerateConeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 45 CORE_NS::Entity GenerateTorusMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 47 CORE_NS::Entity GenerateCubeMesh(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 51 const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity meshEntity) override; 53 CORE_NS::Entity GenerateCube(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 55 CORE_NS::Entity GeneratePlane(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 58 CORE_NS::Entity GenerateSphere(const CORE_NS::IEcs& ecs, BASE_NS::string_view name, CORE_NS::Entity material, 61 CORE_NS::Entity GenerateCone(const CORE_NS::IEcs& ecs, BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/include/scene_plugin/interface/ |
H A D | intf_entity_collection.h | 38 using Ptr = BASE_NS::unique_ptr<IEntityCollection, Deleter>; 48 using PropertyList = BASE_NS::vector<BASE_NS::string>; 52 BASE_NS::string_view uri, BASE_NS::string_view contextUri) = 0; 55 virtual BASE_NS::string GetUri() const = 0; 56 virtual void SetUri(const BASE_NS::string& uri) = 0; 57 virtual BASE_NS::string GetContextUri() const = 0; 59 virtual BASE_NS::string GetSrc() const = 0; 60 virtual void SetSrc(BASE_NS [all...] |
H A D | mesh_arrays.h | 21 using Ptr = BASE_NS::shared_ptr<MeshGeometry<IndexType>>; 22 using WeakPtr = BASE_NS::weak_ptr<MeshGeometry<IndexType>>; 23 BASE_NS::vector<BASE_NS::Math::Vec3> vertices; 24 BASE_NS::vector<BASE_NS::Math::Vec3> normals; // optional, will be generated if empty 25 BASE_NS::vector<BASE_NS::Math::Vec2> uvs; // optional, will be generated if empty 26 BASE_NS::vector<BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/ |
H A D | ohos_filesystem.h | 41 OhosFilesystem(const BASE_NS::string_view hapPath, const BASE_NS::string_view bundleName, 42 const BASE_NS::string_view moduleName); 48 IDirectory::Entry GetEntry(BASE_NS::string_view path) override; 49 IFile::Ptr CreateFile(BASE_NS::string_view path) override; 50 bool DeleteFile(BASE_NS::string_view path) override; 51 IDirectory::Ptr OpenDirectory(BASE_NS::string_view path) override; 52 IDirectory::Ptr CreateDirectory(BASE_NS::string_view path) override; 53 bool DeleteDirectory(BASE_NS::string_view path) override; 54 bool Rename(BASE_NS [all...] |
H A D | ohos_filesystem.cpp | 43 using BASE_NS::move; 44 using BASE_NS::string; 45 using BASE_NS::string_view; 46 using BASE_NS::vector; 63 IFile::Ptr OhosFilesystem::OpenFile(const BASE_NS::string_view path) in OpenFile() 68 auto file = BASE_NS::make_unique<OhosFile>(resManager_); in OpenFile() 74 auto file = BASE_NS::make_unique<OhosFile>(resManager_); in OpenFile() 85 OhosFilesystem::OhosFilesystem(const BASE_NS::string_view hapPath, const BASE_NS::string_view bundleName, in OhosFilesystem() 86 const BASE_NS in OhosFilesystem() [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/api/core/io/ |
H A D | intf_file_manager.h | 40 static constexpr auto UID = BASE_NS::Uid { "5507e02b-b900-44e4-a969-0eda2d0918ac" }; 42 using Ptr = BASE_NS::refcnt_ptr<IFileManager>; 48 virtual IDirectory::Entry GetEntry(BASE_NS::string_view uri) = 0; 54 virtual IFile::Ptr OpenFile(BASE_NS::string_view uri) = 0; 60 virtual IFile::Ptr CreateFile(BASE_NS::string_view uri) = 0; 66 virtual bool DeleteFile(BASE_NS::string_view uri) = 0; 72 virtual IDirectory::Ptr OpenDirectory(BASE_NS::string_view uri) = 0; 78 virtual IDirectory::Ptr CreateDirectory(BASE_NS::string_view uri) = 0; 84 virtual bool DeleteDirectory(BASE_NS::string_view uri) = 0; 91 virtual bool Rename(BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/ |
H A D | render_data_store_post_process.h | 39 RenderDataStorePostProcess(const IRenderContext& renderContex, const BASE_NS::string_view name); 53 void Create(const BASE_NS::string_view name) override; 54 void Create(const BASE_NS::string_view name, const BASE_NS::string_view ppName, 57 void Destroy(const BASE_NS::string_view name) override; 58 void Destroy(const BASE_NS::string_view name, const BASE_NS::string_view ppName) override; 60 bool Contains(const BASE_NS::string_view name) const override; 61 bool Contains(const BASE_NS::string_view name, const BASE_NS [all...] |
H A D | render_data_store_pod.h | 38 explicit RenderDataStorePod(const BASE_NS::string_view name); 52 void CreatePod(const BASE_NS::string_view typeName, const BASE_NS::string_view name, 53 const BASE_NS::array_view<const uint8_t> data) override; 54 void DestroyPod(const BASE_NS::string_view typeName, const BASE_NS::string_view name) override; 56 void Set(const BASE_NS::string_view name, const BASE_NS::array_view<const uint8_t> data) override; 57 BASE_NS::array_view<const uint8_t> Get(const BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_resource_manager.h | 92 BASE_NS::vector<uint8_t> stagingData; 97 BASE_NS::Format format { BASE_NS::Format::BASE_FORMAT_UNDEFINED }; 111 BASE_NS::Format format { BASE_NS::Format::BASE_FORMAT_UNDEFINED }; 121 BASE_NS::vector<StagingImageScalingStruct> scalingImages; 123 BASE_NS::unordered_map<uint32_t, size_t> formatToScalingImages; 129 BASE_NS::vector<StagingCopyStruct> bufferToBuffer; 131 BASE_NS::vector<StagingCopyStruct> bufferToImage; 133 BASE_NS [all...] |
H A D | shader_manager.h | 52 BASE_NS::string_view path; 58 BASE_NS::string_view shaderFileStr; 59 BASE_NS::string_view materialMetadata; 63 BASE_NS::string_view path; 73 BASE_NS::string_view shaderFileStr; 74 BASE_NS::string_view materialMetadata; 78 BASE_NS::array_view<const uint8_t> reflectionData; 83 BASE_NS::vector<ShaderSpecialization::Constant> GetSpecializationConstants() const; 84 BASE_NS::vector<VertexInputDeclaration::VertexInputAttributeDescription> GetInputDescriptions() const; 85 BASE_NS [all...] |
/foundation/graphic/graphic_3d/lume/LumeEngine/src/ |
H A D | plugin_registry.h | 48 BASE_NS::array_view<const IPlugin* const> GetPlugins() const override; 49 bool LoadPlugins(const BASE_NS::array_view<const BASE_NS::Uid> pluginUids) override; 50 void UnloadPlugins(const BASE_NS::array_view<const BASE_NS::Uid> pluginUids) override; 54 BASE_NS::array_view<const ITypeInfo* const> GetTypeInfos(const BASE_NS::Uid& typeUid) const override; 61 BASE_NS::array_view<const InterfaceTypeInfo* const> GetInterfaceMetadata() const override; 62 const InterfaceTypeInfo& GetInterfaceMetadata(const BASE_NS::Uid& uid) const override; 63 IInterface* GetInstance(const BASE_NS [all...] |