/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/pipelinelayouts/ |
H A D | core3d_dm_fw.shaderpl | 10 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 11 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 2, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 13 …{ "binding" : 3, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 14 …{ "binding" : 4, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 15 …{ "binding" : 5, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 16 …{ "binding" : 6, "descriptorType" : "storage_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 17 …{ "binding" : 7, "descriptorType" : "combined_image_sampler", "descriptorCount" : 1, "shaderStageF… 18 …{ "binding" : 8, "descriptorType" : "combined_image_sampler", "descriptorCount" : 1, "shaderStageF… 20 …{ "binding" : 10, "descriptorType" : "combined_image_sampler", "descriptorCount": 1, "shaderStageF… [all …]
|
H A D | core3d_dm_fullscreen_deferred_shading.shaderpl | 11 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 13 …{ "binding" : 2, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 14 …{ "binding" : 3, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 15 …{ "binding" : 4, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 16 …{ "binding" : 5, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 17 …{ "binding" : 6, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 29 …{ "binding" : 0, "descriptorType" : "input_attachment", "descriptorCount": 1, "shaderStageFlags" :… 30 …{ "binding" : 1, "descriptorType" : "input_attachment", "descriptorCount": 1, "shaderStageFlags" :… 31 …{ "binding" : 2, "descriptorType" : "input_attachment", "descriptorCount": 1, "shaderStageFlags" :… [all …]
|
H A D | core3d_post_process.shaderpl | 11 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 13 …{ "binding" : 2, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 14 …{ "binding" : 3, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 15 …{ "binding" : 4, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 16 …{ "binding" : 5, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 17 …{ "binding" : 6, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 18 …{ "binding" : 7, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 19 …{ "binding" : 8, "descriptorType" : "storage_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 20 …{ "binding" : 9, "descriptorType" : "combined_image_sampler", "descriptorCount" : 1, "shaderStageF… [all …]
|
H A D | core3d_dm_env.shaderpl | 10 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 11 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 2, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 13 …{ "binding" : 3, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 14 …{ "binding" : 4, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 20 …{ "binding" : 0, "descriptorType" : "combined_image_sampler", "descriptorCount": 1, "shaderStageFl… 21 …{ "binding" : 1, "descriptorType" : "combined_image_sampler", "descriptorCount": 1, "shaderStageFl…
|
H A D | core3d_dm_depth.shaderpl | 10 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 11 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 17 …{ "binding" : 0, "descriptorType" : "uniform_buffer_dynamic", "descriptorCount": 1, "shaderStageFl… 18 …{ "binding" : 1, "descriptorType" : "uniform_buffer_dynamic", "descriptorCount": 1, "shaderStageFl…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | node_context_descriptor_set_manager_gles.cpp | 68 if (IsDynamicDescriptor(refBinding.descriptorType)) { in CreateDescriptorSet() 73 if (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in CreateDescriptorSet() 76 (refBinding.descriptorType <= CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE)) || in CreateDescriptorSet() 77 (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_INPUT_ATTACHMENT)) { in CreateDescriptorSet() 79 } else if (((refBinding.descriptorType >= CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER) && in CreateDescriptorSet() 118 if (IsDynamicDescriptor(refBinding.descriptorType)) { in CreateOneFrameDescriptorSet() 123 if (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in CreateOneFrameDescriptorSet() 126 (refBinding.descriptorType <= CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE)) || in CreateOneFrameDescriptorSet() 127 (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_INPUT_ATTACHMENT)) { in CreateOneFrameDescriptorSet() 129 } else if (((refBinding.descriptorType >= CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER) && in CreateOneFrameDescriptorSet() [all …]
|
H A D | render_backend_gles.cpp | 62 DescriptorType descriptorType { CORE_DESCRIPTOR_TYPE_MAX_ENUM }; member 89 if (descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in GetRenderHandleType() 92 (descriptorType <= CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE)) || in GetRenderHandleType() 93 (descriptorType == CORE_DESCRIPTOR_TYPE_INPUT_ATTACHMENT)) { in GetRenderHandleType() 95 } else if ((descriptorType >= CORE_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER) && in GetRenderHandleType() 96 (descriptorType <= CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC)) { in GetRenderHandleType() 1033 … if ((o.resources.size() != b.descriptorCount) || (o.descriptorType != b.descriptorType)) { in SetupCache() 1037 o.descriptorType = b.descriptorType; in SetupCache() 1979 PLUGIN_ASSERT(obj.descriptorType == binding.descriptorType); in SetupBind() 2073 switch (res.binding.descriptorType) { in ProcessBindings() [all …]
|
H A D | gpu_program_gles.cpp | 408 tmp.type = b.descriptorType; in BuildBindInfos() 412 switch (b.descriptorType) { in BuildBindInfos() 470 if (b.descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in BuildBindInfos()
|
H A D | shader_module_gles.cpp | 59 switch (binding.descriptorType) { in CollectRes()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/templates/pipelinelayouts/ |
H A D | pipeline_layout.shaderpl | 11 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 1, "descriptorType" : "sampled_image", "descriptorCount" : 1, "shaderStageFlags" : "… 13 …{ "binding" : 2, "descriptorType" : "combined_image_sampler", "descriptorCount" : 1, "shaderStageF… 14 …{ "binding" : 3, "descriptorType" : "sampler", "descriptorCount": 1, "shaderStageFlags" : "fragmen… 20 …{ "binding" : 0, "descriptorType" : "uniform_buffer_dynamic", "descriptorCount": 1, "shaderStageFl… 26 …{ "binding": 0, "descriptorType": "combined_image_sampler", "descriptorCount": 1, "shaderStageFlag…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/ |
H A D | node_context_descriptor_set_manager.cpp | 44 if (descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in ReduceAndValidateDescriptorCounts() 46 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) { in ReduceAndValidateDescriptorCounts() 48 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLED_IMAGE) { in ReduceAndValidateDescriptorCounts() 50 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE) { in ReduceAndValidateDescriptorCounts() 52 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER) { in ReduceAndValidateDescriptorCounts() 54 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER) { in ReduceAndValidateDescriptorCounts() 56 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER) { in ReduceAndValidateDescriptorCounts() 58 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER) { in ReduceAndValidateDescriptorCounts() 60 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) { in ReduceAndValidateDescriptorCounts() 62 } else if (descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC) { in ReduceAndValidateDescriptorCounts() [all …]
|
H A D | pipeline_descriptor_set_binder.cpp | 260 const DescriptorType descriptorType = bind.binding.descriptorType; in BindBuffer() local 261 if (CheckValidBufferDescriptor(descriptorType)) { in BindBuffer() 267 static_cast<uint32_t>(descriptorType)); in BindBuffer() 350 const DescriptorType descriptorType = bind.binding.descriptorType; in BindImage() local 352 (descriptorType == CORE_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) in BindImage() 355 if (CheckValidImageDescriptor(descriptorType) && validSamplerHandling) { in BindImage() 372 static_cast<uint32_t>(descriptorType)); in BindImage() 411 const ImageLayout defaultImageLayout = GetImageLayout(bind.binding.descriptorType); in BindImages() 459 const DescriptorType descriptorType = bind.binding.descriptorType; in BindSampler() local 460 if (descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in BindSampler() [all …]
|
H A D | render_command_list.cpp | 71 if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_TEXEL_BUFFER) { in ValidateDescriptorTypeBinding() 74 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_TEXEL_BUFFER) { in ValidateDescriptorTypeBinding() 77 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER) { in ValidateDescriptorTypeBinding() 80 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER) { in ValidateDescriptorTypeBinding() 83 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) { in ValidateDescriptorTypeBinding() 86 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC) { in ValidateDescriptorTypeBinding() 95 if ((ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) || in ValidateDescriptorTypeBinding() 96 (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLED_IMAGE)) { in ValidateDescriptorTypeBinding() 99 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_IMAGE) { in ValidateDescriptorTypeBinding() 102 } else if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_INPUT_ATTACHMENT) { in ValidateDescriptorTypeBinding() [all …]
|
H A D | render_node_util.cpp | 251 …dc.counts.push_back(DescriptorCounts::TypedCount { bindingRef.descriptorType, bindingRef.descripto… in GetDescriptorCounts() 261 …dc.counts.push_back(DescriptorCounts::TypedCount { bindingRef.descriptorType, bindingRef.descripto… in GetDescriptorCounts()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | node_context_descriptor_set_manager_vk.cpp | 264 if ((bindingRef.binding.descriptorType == in BeginBackendFrame() 327 if ((bindingRef.binding.descriptorType == in BeginBackendFrame() 364 if (NodeContextDescriptorSetManager::IsDynamicDescriptor(refBinding.descriptorType)) { in IncreaseDescriptorSetCounts() 368 if (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_SAMPLER) { in IncreaseDescriptorSetCounts() 380 if (!((refBinding.descriptorType <= CORE_DESCRIPTOR_TYPE_INPUT_ATTACHMENT) || in IncreaseDescriptorSetCounts() 381 (refBinding.descriptorType == CORE_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE))) { in IncreaseDescriptorSetCounts() 450 oneFrameDescriptorNeed_.descriptorCount[refBinding.descriptorType] += in CreateOneFrameDescriptorSet() 501 const VkDescriptorType descriptorType = (VkDescriptorType)cpuBinding.binding.descriptorType; in CreateGpuDescriptorSet() local 506 if (descriptorType == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) { in CreateGpuDescriptorSet() 512 } else if (descriptorType == VK_DESCRIPTOR_TYPE_SAMPLER) { in CreateGpuDescriptorSet() [all …]
|
H A D | pipeline_state_object_vk.cpp | 132 … const VkDescriptorType descriptorType = (VkDescriptorType)bindingRef.descriptorType; in GetDescriptorSetFillData() local 138 descriptorType, // descriptorType in GetDescriptorSetFillData()
|
H A D | render_backend_vk.cpp | 1954 if (ref.binding.descriptorType == CORE_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE) { in UpdateCommandListDescriptorSets() 1978 (VkDescriptorType)ref.binding.descriptorType, // descriptorType in UpdateCommandListDescriptorSets() 2013 (VkDescriptorType)ref.binding.descriptorType, // descriptorType in UpdateCommandListDescriptorSets() 2027 … const VkDescriptorType descriptorType = (VkDescriptorType)ref.binding.descriptorType; in UpdateCommandListDescriptorSets() local 2035 if (descriptorType == VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER) { in UpdateCommandListDescriptorSets() 2070 descriptorType, // descriptorType in UpdateCommandListDescriptorSets() 2104 (VkDescriptorType)ref.binding.descriptorType, // descriptorType in UpdateCommandListDescriptorSets()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/pipelinelayouts/ |
H A D | post_process_common.shaderpl | 11 …{ "binding" : 0, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "… 12 …{ "binding" : 1, "descriptorType" : "uniform_buffer", "descriptorCount": 1, "shaderStageFlags" : "…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_program_util.cpp | 55 if ((inBinding.descriptorType != outRef.descriptorType) || in AddBindings() 61 … currBindingIndex, inBinding.descriptorType, outRef.descriptorType, inBinding.descriptorCount, in AddBindings()
|
H A D | shader_manager.cpp | 138 constexpr inline bool IsUniformBuffer(const DescriptorType descriptorType) in IsUniformBuffer() argument 140 return ((descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER_DYNAMIC) || in IsUniformBuffer() 141 (descriptorType == CORE_DESCRIPTOR_TYPE_UNIFORM_BUFFER)); in IsUniformBuffer() 143 constexpr inline bool IsStorageBuffer(const DescriptorType descriptorType) in IsStorageBuffer() argument 145 return ((descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER_DYNAMIC) || in IsStorageBuffer() 146 (descriptorType == CORE_DESCRIPTOR_TYPE_STORAGE_BUFFER)); in IsStorageBuffer() 163 (lBind.descriptorType != rBind.descriptorType)) { in GetPipelineLayoutCompatibilityFlags() 165 … if ((IsUniformBuffer(lBind.descriptorType) != IsUniformBuffer(rBind.descriptorType)) && in GetPipelineLayoutCompatibilityFlags() 166 … (IsStorageBuffer(lBind.descriptorType) != IsStorageBuffer(rBind.descriptorType))) { in GetPipelineLayoutCompatibilityFlags() 2186 binding.descriptorType = static_cast<DescriptorType>(*ptr | (*(ptr + 1) << 8)); in GetPipelineLayout() [all …]
|
H A D | shader_pipeline_binder.cpp | 228 …t RenderHandleType type = DescriptorSetBinderUtil::GetRenderHandleType(ref.binding.descriptorType); in ShaderPipelineBinder() 283 … DescriptorSetBinderUtil::GetRenderHandleType(plSet.bindings[bindingRef.binding].descriptorType); in EvaluateCustomPropertyBindings()
|
/ohos5.0/drivers/external_device_manager/frameworks/ddk/usb/ |
H A D | usb_config_desc_parser.cpp | 54 static int32_t GetDescriptorLength(UsbDdkDescriptorType descriptorType) in GetDescriptorLength() argument 56 switch (descriptorType) { in GetDescriptorLength() 64 EDM_LOGE(MODULE_USB_DDK, "invalid descriptorType:%{public}d", descriptorType); in GetDescriptorLength() 70 …UsbDdkDescriptorType descriptorType, uint8_t *dest, uint32_t destLen, const uint8_t *source, int32… in ParseDescriptor() argument 78 int32_t descriptorLen = GetDescriptorLength(descriptorType); in ParseDescriptor() 84 …ULE_USB_DDK, "invalid sourceLen:%{public}u, descriptorType:%{public}d", sourceLen, descriptorType); in ParseDescriptor() 94 switch (descriptorType) { in ParseDescriptor() 108 EDM_LOGE(MODULE_USB_DDK, "invalid descriptorType:%{public}d", descriptorType); in ParseDescriptor()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/loader/ |
H A D | pipeline_layout_loader.cpp | 60 SafeGetJsonEnum(jsonData, "descriptorType", context.error, context.data.descriptorType); 114 if (bindingRef.descriptorType == DescriptorType::CORE_DESCRIPTOR_TYPE_MAX_ENUM) { in Load()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/device/ |
H A D | pipeline_layout_desc.h | 55 DescriptorType descriptorType { DescriptorType::CORE_DESCRIPTOR_TYPE_MAX_ENUM };
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/src/ |
H A D | main.cpp | 447 DescriptorType descriptorType { DescriptorType::MAX_ENUM }; member 618 binding.descriptorType = static_cast<DescriptorType>(*ptr | (*(ptr + 1) << 8)); in GetPipelineLayout() 992 binding.descriptorType = type; in processResource() 1322 push(reflection, static_cast<uint16_t>(binding.descriptorType)); in reflectSpvBinary()
|