/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | render_node_util.cpp | 94 const IRenderNodeGraphShareManager& rngShareMgr, const RenderNodeGraphInputs::InputResources& resources, in SetupRenderNodeResourceHandles() 127 setHandles(gpuResourceMgr, rngShareMgr, RenderHandleType::GPU_BUFFER, resources.buffers, res.buffers); in SetupRenderNodeResourceHandles() 128 setHandles(gpuResourceMgr, rngShareMgr, RenderHandleType::GPU_SAMPLER, resources.samplers, res.samplers); in SetupRenderNodeResourceHandles() 132 setImageHandles(gpuResourceMgr, rngShareMgr, res.samplers, resources.images, res.images); in SetupRenderNodeResourceHandles() 134 setHandles(gpuResourceMgr, rngShareMgr, RenderHandleType::GPU_BUFFER, resources.customInputBuffers, in SetupRenderNodeResourceHandles() 136 setHandles(gpuResourceMgr, rngShareMgr, RenderHandleType::GPU_BUFFER, resources.customOutputBuffers, in SetupRenderNodeResourceHandles() 140 setImageHandles(gpuResourceMgr, rngShareMgr, sams, resources.customInputImages, res.customInputImages); in SetupRenderNodeResourceHandles() 141 setImageHandles(gpuResourceMgr, rngShareMgr, sams, resources.customOutputImages, res.customOutputImages); in SetupRenderNodeResourceHandles() 184 const RenderNodeGraphInputs::InputResources& resources) const in CreateInputResources() 189 SetupRenderNodeResourceHandles(gpuResourceMgr, rngShareMgr, resources, re in CreateInputResources() 93 SetupRenderNodeResourceHandles(const IRenderNodeGpuResourceManager& gpuResourceMgr, const IRenderNodeGraphShareManager& rngShareMgr, const RenderNodeGraphInputs::InputResources& resources, RenderNodeHandles::InputResources& res) SetupRenderNodeResourceHandles() argument 211 BindResourcesToBinder( const RenderNodeHandles::InputResources& resources, IPipelineDescriptorSetBinder& pipelineDescriptorSetBinder) const BindResourcesToBinder() argument [all...] |
H A D | pipeline_descriptor_set_binder.cpp | 202 auto ClearResourcesBindings = [](auto& resources) { in ClearBindings() 203 for (auto& ref : resources) { in ClearBindings() 295 void DescriptorSetBinder::BindBuffers(const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) in BindBuffers() argument 297 if ((!resources.empty()) && (binding < maxBindingCount_)) { in BindBuffers() 306 const uint32_t maxCount = Math::min(static_cast<uint32_t>(resources.size()), bind.binding.descriptorCount); in BindBuffers() 309 const RenderHandle currHandle = resources[idx].handle; in BindBuffers() 318 if (bind.binding.descriptorCount != resources.size()) { in BindBuffers() 324 bRes = resources[idx]; in BindBuffers() 333 static_cast<uint32_t>(resources.size()), bind.binding.descriptorCount); in BindBuffers() 403 void DescriptorSetBinder::BindImages(const uint32_t binding, const array_view<const BindableImage> resources) in BindImages() argument 488 BindSamplers(const uint32_t binding, const array_view<const BindableSampler> resources) BindSamplers() argument 621 BindBuffers( const uint32_t set, const uint32_t binding, const array_view<const BindableBuffer> resources) BindBuffers() argument 648 BindImages( const uint32_t set, const uint32_t binding, const array_view<const BindableImage> resources) BindImages() argument 676 BindSamplers( const uint32_t set, const uint32_t binding, const array_view<const BindableSampler> resources) BindSamplers() argument [all...] |
H A D | render_node_parser_util.cpp | 411 void ParseResources(const string_view name, const json::value& node, RenderNodeGraphInputs::InputResources& resources, in ParseResources() argument 415 ParseArray<decltype(resources.buffers)::value_type>(*res, "buffers", resources.buffers, result); in ParseResources() 416 ParseArray<decltype(resources.images)::value_type>(*res, "images", resources.images, result); in ParseResources() 417 ParseArray<decltype(resources.samplers)::value_type>(*res, "samplers", resources.samplers, result); in ParseResources() 419 ParseArray<decltype(resources.customInputBuffers)::value_type>( in ParseResources() 420 *res, "customInputBuffers", resources.customInputBuffers, result); in ParseResources() 421 ParseArray<decltype(resources in ParseResources() 491 RenderNodeGraphInputs::InputResources resources; GetInputResources() local 519 vector<RenderNodeGraphInputs::RenderNodeGraphGpuImageDesc> resources; GetGpuImageDescs() local 537 vector<RenderNodeGraphInputs::RenderNodeGraphGpuBufferDesc> resources; GetGpuBufferDescs() local [all...] |
H A D | pipeline_descriptor_set_binder.h | 111 void BindBuffers(const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) override; 120 void BindImages(const uint32_t binding, const BASE_NS::array_view<const BindableImage> resources) override; 128 void BindSamplers(const uint32_t binding, const BASE_NS::array_view<const BindableSampler> resources) override; 184 const uint32_t set, const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) override; 190 const uint32_t set, const uint32_t binding, const BASE_NS::array_view<const BindableImage> resources) override; 196 const BASE_NS::array_view<const BindableSampler> resources) override;
|
H A D | render_node_util.h | 53 void BindResourcesToBinder(const RenderNodeHandles::InputResources& resources, 65 bool HasChangeableResources(const RenderNodeGraphInputs::InputResources& resources) const override;
|
H A D | render_node_post_process_util.cpp | 201 if ((!jsonInputs_.resources.customOutputImages.empty()) && (!inputResources_.customOutputImages.empty()) && in Init() 205 jsonInputs_.resources.customOutputImages[0u].name, inputResources_.customOutputImages[0u].handle); in Init() 218 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in PreExecute() 414 if ((!jsonInputs_.resources.customOutputImages.empty()) && (!inputResources_.customOutputImages.empty()) && in PreExecute() 418 jsonInputs_.resources.customOutputImages[0u].name, inputResources_.customOutputImages[0u].handle); in PreExecute() 525 DescriptorSetLayoutBindingResources resources[2U] {}; in ExecuteCombine() 535 resources[0U] = binder.GetDescriptorSetLayoutBindingResources(); in ExecuteCombine() 547 resources[1U] = binder.GetDescriptorSetLayoutBindingResources(); in ExecuteCombine() 549 cmdList.UpdateDescriptorSets(sets, resources); in ExecuteCombine() 584 DescriptorSetLayoutBindingResources resources[ in ExecuteFXAA() [all...] |
H A D | render_node_graph_share_manager.cpp | 42 const string_view nodeName, const array_view<const IRenderNodeGraphShareManager::NamedResource> resources) in SetGlobalRenderNodeResources() 45 ref.resources.insert(ref.resources.end(), resources.begin(), resources.end()); in SetGlobalRenderNodeResources() 48 PLUGIN_ASSERT_MSG(ref.resources.size() < A_BIG_TEST_NUMBER, in SetGlobalRenderNodeResources() 57 return iter->second.resources; in GetGlobalRenderNodeResources() 60 PLUGIN_LOG_W("RENDER_VALIDATION: No global render node for resources found (%s)", nodeName.data()); in GetGlobalRenderNodeResources() 405 // check for name from the resources 41 SetGlobalRenderNodeResources( const string_view nodeName, const array_view<const IRenderNodeGraphShareManager::NamedResource> resources) SetGlobalRenderNodeResources() argument
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/nodecontext/ |
H A D | intf_pipeline_descriptor_set_binder.h | 38 /** Get descriptor set layout binding resources */ 73 * @param resources Binding resources 75 virtual void BindBuffers(const uint32_t binding, const BASE_NS::array_view<const BindableBuffer> resources) = 0; 92 * @param resource Binding resources 98 * @param resources Binding resources 100 virtual void BindImages(const uint32_t binding, const BASE_NS::array_view<const BindableImage> resources) = 0; 118 virtual void BindSamplers(const uint32_t binding, const BASE_NS::array_view<const BindableSampler> resources) = 0; 131 * @param resource Binding resources [all...] |
H A D | intf_render_node_util.h | 40 * @return Input render pass with handles. I.e. resources and their type-mapping used for rendering. 45 /** Create input resources from json data input render pass. 47 * @return Input resources with handles. I.e. resources and their type-mapping used for rendering. 86 /** Bind render node handle input resources to binder. 87 * @param resources Render node handle input resources. 90 virtual void BindResourcesToBinder(const RenderNodeHandles::InputResources& resources, 119 /** Has resources in render pass that might change every frame. 120 * For example broadcasted resources fro [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_pipeline_binder.cpp | 298 auto ClearResourcesBindings = [](auto& resources) { in ClearBindings() 299 for (auto& ref : resources) { in ClearBindings() 398 const uint32_t set, const uint32_t binding, const array_view<const BindableBufferWithHandleReference> resources) in BindBuffers() 400 if ((!resources.empty()) && set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindBuffers() 403 const RenderHandleType type = resources[0].handle.GetHandleType(); in BindBuffers() 412 setResources.buffers[resIdx] = resources[0]; in BindBuffers() 418 bindables.resize(resources.size()); in BindBuffers() 419 for (size_t idx = 0; idx < resources.size(); ++idx) { in BindBuffers() 420 const auto& rRef = resources[idx]; in BindBuffers() 463 const uint32_t set, const uint32_t binding, array_view<const BindableImageWithHandleReference> resources) in BindImages() 397 BindBuffers( const uint32_t set, const uint32_t binding, const array_view<const BindableBufferWithHandleReference> resources) BindBuffers() argument 462 BindImages( const uint32_t set, const uint32_t binding, array_view<const BindableImageWithHandleReference> resources) BindImages() argument 524 BindSamplers( const uint32_t set, const uint32_t binding, array_view<const BindableSamplerWithHandleReference> resources) BindSamplers() argument [all...] |
H A D | shader_pipeline_binder.h | 62 BASE_NS::array_view<const BindableBufferWithHandleReference> resources) override; 66 BASE_NS::array_view<const BindableImageWithHandleReference> resources) override; 70 BASE_NS::array_view<const BindableSamplerWithHandleReference> resources) override;
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_material_render_slot.cpp | 84 defaultMat.resources[MaterialComponent::TextureIndex::BASE_COLOR].handle = in GetDefaultMaterialGpuResources() 86 defaultMat.resources[MaterialComponent::TextureIndex::NORMAL].handle = in GetDefaultMaterialGpuResources() 88 defaultMat.resources[MaterialComponent::TextureIndex::MATERIAL].handle = in GetDefaultMaterialGpuResources() 90 defaultMat.resources[MaterialComponent::TextureIndex::EMISSIVE].handle = in GetDefaultMaterialGpuResources() 92 defaultMat.resources[MaterialComponent::TextureIndex::AO].handle = in GetDefaultMaterialGpuResources() 95 defaultMat.resources[MaterialComponent::TextureIndex::CLEARCOAT].handle = in GetDefaultMaterialGpuResources() 97 defaultMat.resources[MaterialComponent::TextureIndex::CLEARCOAT_ROUGHNESS].handle = in GetDefaultMaterialGpuResources() 99 defaultMat.resources[MaterialComponent::TextureIndex::CLEARCOAT_NORMAL].handle = in GetDefaultMaterialGpuResources() 102 defaultMat.resources[MaterialComponent::TextureIndex::SHEEN].handle = in GetDefaultMaterialGpuResources() 105 defaultMat.resources[MaterialComponen in GetDefaultMaterialGpuResources() [all...] |
H A D | render_node_camera_single_post_process.cpp | 262 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in PreExecuteFrame() 290 // input resources updated in preExecuteFrame in ExecuteSinglePostProcess() 601 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 645 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 649 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs() 652 // process custom resources in ParseRenderNodeInputs() 653 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources.customInputImages.size()); ++idx) { in ParseRenderNodeInputs() 654 const auto& ref = jsonInputs_.resources.customInputImages[idx]; in ParseRenderNodeInputs() 659 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources in ParseRenderNodeInputs() [all...] |
H A D | render_node_default_material_deferred_shading.cpp | 137 // re-create needed gpu resources in PreExecuteFrame() 158 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ExecuteFrame() 273 const DescriptorSetLayoutBindingResources resources[] { binder0.GetDescriptorSetLayoutBindingResources(), in UpdateSet01() 275 cmdList.UpdateDescriptorSets(handles, resources); in UpdateSet01() 468 auto CheckBindingValidity = [](const auto builtInBindings, const auto& resources) { in CreateDescriptorSets() 469 for (const auto& res : resources) { in CreateDescriptorSets() 553 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 576 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 578 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_bloom.cpp | 96 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in PreExecuteFrame() 142 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 146 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs()
|
H A D | render_node_mip_chain_post_process.cpp | 174 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in PreExecuteFrame() 198 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ExecuteFrame() 476 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 497 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 499 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs() 502 // process custom resources in ParseRenderNodeInputs() 503 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources.customInputImages.size()); ++idx) { in ParseRenderNodeInputs() 504 const auto& ref = jsonInputs_.resources.customInputImages[idx]; in ParseRenderNodeInputs() 509 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources in ParseRenderNodeInputs() [all...] |
H A D | render_node_compute_generic.cpp | 103 // re-create needed gpu resources in PreExecuteFrame() 114 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ExecuteFrame() 233 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 244 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 246 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs()
|
H A D | render_node_back_buffer.cpp | 102 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ExecuteFrame() 211 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 220 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 223 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs()
|
H A D | render_node_fullscreen_generic.cpp | 87 // re-create needed gpu resources in PreExecuteFrame() 101 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ExecuteFrame() 223 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 234 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 237 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs()
|
H A D | render_node_single_post_process.cpp | 216 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in PreExecuteFrame() 278 // input resources updated in preExecuteFrame in ExecuteSinglePostProcess() 512 jsonInputs_.resources = parserUtil.GetInputResources(jsonVal, "resources"); in ParseRenderNodeInputs() 553 inputResources_ = renderNodeUtil.CreateInputResources(jsonInputs_.resources); in ParseRenderNodeInputs() 557 jsonInputs_.hasChangeableResourceHandles = renderNodeUtil.HasChangeableResources(jsonInputs_.resources); in ParseRenderNodeInputs() 560 // process custom resources in ParseRenderNodeInputs() 561 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources.customInputImages.size()); ++idx) { in ParseRenderNodeInputs() 562 const auto& ref = jsonInputs_.resources.customInputImages[idx]; in ParseRenderNodeInputs() 567 for (uint32_t idx = 0; idx < static_cast<uint32_t>(jsonInputs_.resources in ParseRenderNodeInputs() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/device/ |
H A D | intf_shader_pipeline_binder.h | 86 /** Descriptor set binding array offset for array resources. Offset to first array resource. */ 129 * @param resources Binding resources 133 uint32_t set, uint32_t binding, BASE_NS::array_view<const BindableBufferWithHandleReference> resources) = 0; 148 uint32_t set, uint32_t binding, BASE_NS::array_view<const BindableImageWithHandleReference> resources) = 0; 163 uint32_t set, uint32_t binding, BASE_NS::array_view<const BindableSamplerWithHandleReference> resources) = 0; 185 /** Get render time bindable resources 186 * @return DescriptorSetLayoutBindingResources to resources
|
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_web_ffi.cpp | 136 std::vector<std::string> resources; in GetAccessibleResources() local 138 resources = webPermissionRequest_->GetResources(); in GetAccessibleResources() 140 return resources; in GetAccessibleResources() 150 std::vector<std::string> resources; in Grant() local 152 resources.push_back(args[i]); in Grant() 155 webPermissionRequest_->Grant(resources); in Grant()
|
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | main.cpp | 1002 void reflectDescriptorSets(const spirv_cross::Compiler& compiler, const spirv_cross::ShaderResources& resources,
1005 for (const auto& ref : resources.sampled_images) {
1009 for (const auto& ref : resources.separate_samplers) {
1013 for (const auto& ref : resources.separate_images) {
1017 for (const auto& ref : resources.storage_images) {
1021 for (const auto& ref : resources.uniform_buffers) {
1025 for (const auto& ref : resources.storage_buffers) {
1029 for (const auto& ref : resources.subpass_inputs) {
1033 for (const auto& ref : resources.acceleration_structures) {
1049 void reflectPushContants(const spirv_cross::Compiler& compiler, const spirv_cross::ShaderResources& resources,
[all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/ |
H A D | material_extension_component.h | 33 * Can extend default material model with additional resources for custom shaders. 34 * GPU resources are owned by the component and destroyed when the component is destroyed. 39 /** Custom resources which will be bound to pre-defined set and their bindings in order */ 49 /** Number of resources */ 54 /** Array of resources. With default material model these are bound in order to predefined set. 59 CORE_NS::EntityReference, ResourceIndex::RESOURCE_COUNT, resources, "Custom Material Resources", 0, )
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | render_backend_gles.cpp | 83 vector<Resource> resources; member 999 boundObjects_[set].resources.clear(); in SetupCache() 1019 if (boundObjects_[set].resources.size() != maxB) { in SetupCache() 1025 boundObjects_[set].resources.clear(); // clear because we don't care what it had before. in SetupCache() 1026 boundObjects_[set].resources.resize(maxB); in SetupCache() 1030 auto& o = boundObjects_[set].resources[b.binding]; in SetupCache() 1032 if ((o.resources.size() != b.descriptorCount) || (o.descriptorType != b.descriptorType)) { in SetupCache() 1034 o.resources.clear(); in SetupCache() 1035 o.resources.resize(b.descriptorCount); in SetupCache() 1973 Gles::Bind& RenderBackendGLES::SetupBind(const DescriptorSetLayoutBinding& binding, vector<Gles::Bind>& resources) in SetupBind() argument 2042 vector<Gles::Bind>& resources = bind.resources; ProcessBindings() local [all...] |