/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | pipeline_layout_loader.cpp | 87 if (pl.pushConstant.byteSize > PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE) { in Load() 89 … uri.data(), pl.pushConstant.byteSize, PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE); in Load() 93 … Math::min(PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE, pl.pushConstant.byteSize); in Load() 102 if (inputDescriptorSetCount > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in Load() 104 … uri.data(), inputDescriptorSetCount, PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT); in Load() 107 … if (descRef.bindings.size() > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in Load() 111 PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT); in Load() 124 if (setIndex < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in Load() 130 …pl.descriptorSetCount = Math::min(pl.descriptorSetCount, PipelineLayoutConstants::MAX_DESCRIPTOR_S… in Load()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | shader_pipeline_binder.cpp | 369 if (resource.handle && set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindBuffer() 375 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindBuffer() 406 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindBuffers() 432 if (resource.handle && (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT)) { in BindImage() 438 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindImage() 471 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindImages() 498 if (resource.handle && (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT)) { in BindSampler() 504 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindSampler() 533 if (binding < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in BindSamplers() 604 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in GetResourceBinding() [all …]
|
H A D | gpu_program_util.cpp | 78 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in CombinePipelineLayouts() 79 if (plRef.descriptorSetLayouts[idx].set != PipelineLayoutConstants::INVALID_INDEX) { in CombinePipelineLayouts() 95 if (currLayout.set != PipelineLayoutConstants::INVALID_INDEX) { in CombinePipelineLayouts() 103 if (currSet.set != PipelineLayoutConstants::INVALID_INDEX) { in CombinePipelineLayouts()
|
H A D | shader_pipeline_binder.h | 157 …uint8_t bindingToIndex[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT] { 16, 16, 16, 16… 170 …uint32_t setToBinderIndex_[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { ~0u, ~0u, ~0u, ~0u…
|
H A D | shader_manager.cpp | 153 … for (uint32_t setIdx = 0; setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++setIdx) { in GetPipelineLayoutCompatibilityFlags() 178 … for (uint32_t setIdx = 0; setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++setIdx) { in GetPipelineLayoutCompatibilityFlags() 1500 if (pipelineLayout.descriptorSetCount > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT || in CreatePipelineLayout() 1501 … pipelineLayout.pushConstant.byteSize > PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE) { in CreatePipelineLayout() 1504 … createInfo.path.data(), ref.descriptorSetCount, PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT, in CreatePipelineLayout() 1505 … pipelineLayout.pushConstant.byteSize, PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE); in CreatePipelineLayout() 1510 … Math::min(PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT, pipelineLayout.descriptorSetCount); in CreatePipelineLayout() 1512 …Math::min(PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE, pipelineLayout.pushConstant.byteSi… in CreatePipelineLayout() 1515 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in CreatePipelineLayout() 1517 if (setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in CreatePipelineLayout() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/device/ |
H A D | pipeline_layout_desc.h | 31 struct PipelineLayoutConstants { struct 53 uint32_t binding { PipelineLayoutConstants::INVALID_INDEX }; 73 uint32_t resourceIndex { PipelineLayoutConstants::INVALID_INDEX }; 203 uint32_t set { PipelineLayoutConstants::INVALID_INDEX }; 223 DescriptorSetLayout descriptorSetLayouts[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] {};
|
H A D | intf_shader_pipeline_binder.h | 81 uint32_t set { PipelineLayoutConstants::INVALID_INDEX }; in RENDER_BEGIN_NAMESPACE() 83 uint32_t binding { PipelineLayoutConstants::INVALID_INDEX }; in RENDER_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | pipeline_descriptor_set_binder.cpp | 153 if (idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in InitFillBindings() 548 PLUGIN_STATIC_ASSERT(PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT == 4U); in PipelineDescriptorSetBinder() 608 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindBuffer() 624 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindBuffers() 635 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindImage() 651 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindImages() 662 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindSampler() 679 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindSamplers() 689 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in GetDescriptorSetHandle() 701 if (set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in GetDescriptorSetLayoutBindingResources() [all …]
|
H A D | pipeline_descriptor_set_binder.h | 146 PLUGIN_STATIC_ASSERT(PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT == 16u); 147 …uint8_t bindingToIndex_[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT] { 16, 16, 16, 1… 209 …uint32_t setToBinderIndex_[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { ~0u, ~0u, ~0u, ~0u…
|
H A D | node_context_descriptor_set_manager.cpp | 278 …DescriptorSetLayoutBindings descriptorSetLayoutBindings[PipelineLayoutConstants::MAX_DESCRIPTOR_SE… in CreatePipelineDescriptorSetBinder() 279 RenderHandle handles[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT]; in CreatePipelineDescriptorSetBinder() 280 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in CreatePipelineDescriptorSetBinder() 281 …if (pipelineLayout.descriptorSetLayouts[idx].set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COU… in CreatePipelineDescriptorSetBinder()
|
H A D | node_context_pso_manager.cpp | 203 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in GetComputePsoHandle() 204 … if (pipelineLayout.descriptorSetLayouts[idx].set != PipelineLayoutConstants::INVALID_INDEX) { in GetComputePsoHandle() 275 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in GetGraphicsPsoHandleImpl() 276 … if (pipelineLayout.descriptorSetLayouts[idx].set != PipelineLayoutConstants::INVALID_INDEX) { in GetGraphicsPsoHandleImpl()
|
H A D | render_command_list.cpp | 38 PLUGIN_STATIC_ASSERT(PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT == 4); 483 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in AddBarrierPoint() 761 PipelineLayoutConstants::MAX_PUSH_CONSTANT_BYTE_SIZE); in PushConstantData() 1559 if (maxSetNumber > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindDescriptorSets() 1561 maxSetNumber, PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT); in BindDescriptorSets() 1568 if ((descriptorSetData.size() > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT)) { in BindDescriptorSets() 1572 … if (ref.dynamicOffsets.size() > PipelineLayoutConstants::MAX_DYNAMIC_DESCRIPTOR_OFFSET_COUNT) { in BindDescriptorSets() 1588 if (currSet < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in BindDescriptorSets() 1635 BindDescriptorSetData bdsd[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT]; in BindDescriptorSets() 1960 … uint32_t bindSetIndices[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { ~0u, ~0u, ~0u, ~0u }; in ValidatePipelineLayout() [all …]
|
H A D | render_command_list.h | 208 …RenderHandle descriptorSetHandles[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { {}, {}, {},… 214 …DescriptorSetDynamicOffsets descriptorSetDynamicOffsets[PipelineLayoutConstants::MAX_DESCRIPTOR_SE… 650 DescriptorSetBind currentBoundSets[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT];
|
H A D | render_node_util.cpp | 244 … for (uint32_t setIdx = 0; setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++setIdx) { in GetDescriptorCounts() 246 if (setRef.set == PipelineLayoutConstants::INVALID_INDEX) { in GetDescriptorCounts()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | pipeline_state_object_vk.cpp | 85 VkPushConstantRange pushConstantRanges[PipelineLayoutConstants::MAX_PUSH_CONSTANT_RANGE_COUNT]; 86 …VkDescriptorSetLayout descriptorSetLayouts[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { VK… 89 …bool descriptorSetLayoutOwnership[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] { true, true,… 101 …VkDescriptorSetLayoutBinding descriptorSetLayoutBindings[PipelineLayoutConstants::MAX_DESCRIPTOR_S… in GetDescriptorSetFillData() 102 …for (uint32_t operationIdx = 0; operationIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; … in GetDescriptorSetFillData() 105 (descRef.set == PipelineLayoutConstants::INVALID_INDEX)) { in GetDescriptorSetFillData() 119 if (descRef.set == PipelineLayoutConstants::INVALID_INDEX) { in GetDescriptorSetFillData() 127 … PLUGIN_ASSERT(bindingCount <= PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT); in GetDescriptorSetFillData() 504 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in GraphicsPipelineStateObjectVk() 619 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in ComputePipelineStateObjectVk()
|
H A D | pipeline_create_functions_vk.h | 68 PLUGIN_STATIC_ASSERT(PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT == 4u); 69 LowLevelDescriptorSetVk descriptorSetLayouts[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT];
|
H A D | node_context_descriptor_set_manager_vk.cpp | 481 …if (cpuDescriptorSet.bindings.size() > PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT) { in CreateGpuDescriptorSet() 483 PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT, in CreateGpuDescriptorSet() 488 …VkDescriptorBindingFlags descriptorBindingFlags[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDIN… in CreateGpuDescriptorSet() 489 …VkDescriptorSetLayoutBinding descriptorSetLayoutBindings[PipelineLayoutConstants::MAX_DESCRIPTOR_S… in CreateGpuDescriptorSet() 491 PipelineLayoutConstants::MAX_DESCRIPTOR_SET_BINDING_COUNT); in CreateGpuDescriptorSet()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_shader_passes_generic.cpp | 42 constexpr uint32_t OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNMENT_BYTE_S… 211 … RenderHandle descriptorSetHandles[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] {}; in ExecuteFrameGraphics() 213 … for (uint32_t setIdx = 0U; setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++setIdx) { in ExecuteFrameGraphics() 215 if (currSet.set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in ExecuteFrameGraphics() 300 RenderHandle descriptorSetHandles[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] {}; in ExecuteFrameCompute() 302 … for (uint32_t setIdx = 0U; setIdx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++setIdx) { in ExecuteFrameCompute() 304 if (currSet.set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in ExecuteFrameCompute()
|
H A D | render_node_bloom.cpp | 41 constexpr uint32_t UBO_OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNMENT_BY…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | shader_module_gles.cpp | 57 if (set.set != PipelineLayoutConstants::INVALID_INDEX) { in CollectRes() 121 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in SortSets() 123 if (currSet.set != PipelineLayoutConstants::INVALID_INDEX) { in SortSets()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | main.cpp | 431 struct PipelineLayoutConstants { struct 445 uint32_t binding { PipelineLayoutConstants::INVALID_INDEX }; argument 457 uint32_t set { PipelineLayoutConstants::INVALID_INDEX }; 477 DescriptorSetLayout descriptorSetLayouts[PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT] {}; 608 assert(set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT); in GetPipelineLayout() 975 assert(set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT); in processResource() 976 if (set >= PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT) { in processResource() 1037 std::sort(layouts, layouts + PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT, in reflectDescriptorSets() 1232 return layout.set < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; in reflectSpvBinary() 1386 for (uint32_t idx = 0; idx < PipelineLayoutConstants::MAX_DESCRIPTOR_SET_COUNT; ++idx) { in SortSets() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_material_objects.cpp | 41 constexpr uint32_t UBO_BIND_OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNME… 206 …CORE_STATIC_ASSERT(sizeof(DefaultMaterialMeshStruct) <= PipelineLayoutConstants::MAX_UBO_BIND_BYTE… in ProcessBuffers()
|
H A D | render_node_default_material_render_slot.cpp | 65 constexpr uint32_t UBO_BIND_OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNME… 463 …binder.BindBuffer(bindingIdx++, sceneBuffers_.mesh, 0u, PipelineLayoutConstants::MAX_UBO_BIND_BYTE… in UpdateSet01() 465 …binder.BindBuffer(bindingIdx++, sceneBuffers_.material, 0, PipelineLayoutConstants::MAX_UBO_BIND_B… in UpdateSet01() 467 …bindingIdx++, sceneBuffers_.materialTransform, 0, PipelineLayoutConstants::MAX_UBO_BIND_BYTE_SIZE); in UpdateSet01() 469 … bindingIdx++, sceneBuffers_.materialCustom, 0, PipelineLayoutConstants::MAX_UBO_BIND_BYTE_SIZE); in UpdateSet01()
|
H A D | render_node_default_depth_render_slot.cpp | 57 constexpr uint32_t UBO_BIND_OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNME… 273 …binder1.BindBuffer(bindingIdx++, buffers_.mesh, 0u, PipelineLayoutConstants::MAX_UBO_BIND_BYTE_SIZ… in UpdateSet01()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/datastore/ |
H A D | render_data_store_shader_passes.cpp | 31 constexpr uint32_t OFFSET_ALIGNMENT { PipelineLayoutConstants::MIN_UBO_BIND_OFFSET_ALIGNMENT_BYTE_S…
|