/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/templates/rendernodegraphs/ |
H A D | render_node_default_camera_controller.rng | 15 "usageFlags": "color_attachment | input_attachment | sampled", 21 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 28 "usageFlags": "color_attachment | input_attachment | sampled", 35 "usageFlags": "color_attachment | input_attachment | transient_attachment", 42 "usageFlags": "color_attachment | input_attachment | transient_attachment", 49 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | render_node_create_default_camera_gpu_images.rng | 20 "usageFlags": "color_attachment | transient_attachment", 35 "usageFlags": "depth_stencil_attachment | transient_attachment",
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/platform/ohos/backend/ |
H A D | native_buffer_utils.cpp | 52 VkImageUsageFlags usageFlags = 0, bool isProtected = false) in CreateVkImage() argument 84 usageFlags, in CreateVkImage() 201 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in MakeFromNativeWindowBuffer() local 203 usageFlags = usageFlags | VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT in MakeFromNativeWindowBuffer() 208 …if (!CreateVkImage(vkContext, &image, nbFormatProps, {width, height, 1}, usageFlags, isProtected))… in MakeFromNativeWindowBuffer() 230 vkTextureInfo->imageUsageFlags = usageFlags; in MakeFromNativeWindowBuffer() 304 VkImageUsageFlags usageFlags = VK_IMAGE_USAGE_SAMPLED_BIT; in MakeBackendTextureFromNativeBuffer() local 306 usageFlags = usageFlags | VK_IMAGE_USAGE_TRANSFER_SRC_BIT | VK_IMAGE_USAGE_TRANSFER_DST_BIT; in MakeBackendTextureFromNativeBuffer() 310 …if (!CreateVkImage(vkContext, &image, nbFormatProps, {width, height, 1}, usageFlags, isProtected))… in MakeBackendTextureFromNativeBuffer() 336 imageInfo->imageUsageFlags = usageFlags; in MakeBackendTextureFromNativeBuffer()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/assets/3d/rendernodegraphs/ |
H A D | core3d_rng_cam_scene_hdrp_msaa.rng | 25 "usageFlags": "color_attachment | input_attachment | sampled", 32 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 39 "usageFlags": "color_attachment | input_attachment | sampled", 46 "usageFlags": "color_attachment | input_attachment | transient_attachment", 53 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_hdrp.rng | 41 "usageFlags": "color_attachment | input_attachment | sampled", 48 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 55 "usageFlags": "color_attachment | input_attachment | sampled", 62 "usageFlags": "color_attachment | input_attachment | transient_attachment", 69 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_hdrp_msaa_depth.rng | 29 "usageFlags": "color_attachment | input_attachment | sampled", 36 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 43 "usageFlags": "color_attachment | input_attachment | sampled", 50 "usageFlags": "color_attachment | input_attachment | transient_attachment", 57 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_deferred.rng | 41 "usageFlags": "color_attachment | input_attachment | sampled", 47 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 54 "usageFlags": "color_attachment | input_attachment | sampled", 61 "usageFlags": "color_attachment | input_attachment | transient_attachment", 68 "usageFlags": "color_attachment | input_attachment | sampled", 75 "usageFlags": "color_attachment | input_attachment | transient_attachment", 82 "usageFlags": "color_attachment | input_attachment | transient_attachment",
|
H A D | core3d_rng_cam_scene_lwrp_msaa_gles.rng | 15 "usageFlags": "color_attachment | input_attachment | sampled", 22 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 29 "usageFlags": "color_attachment | input_attachment | sampled", 36 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_lwrp.rng | 21 "usageFlags": "color_attachment | input_attachment | sampled", 28 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 35 "usageFlags": "color_attachment | input_attachment | sampled", 42 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_lwrp_msaa.rng | 21 "usageFlags": "color_attachment | input_attachment | sampled", 28 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 35 "usageFlags": "color_attachment | input_attachment | sampled", 42 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_cam_scene_lwrp_msaa_depth.rng | 25 "usageFlags": "color_attachment | input_attachment | sampled", 32 … "usageFlags": "depth_stencil_attachment | input_attachment | transient_attachment", 39 "usageFlags": "color_attachment | input_attachment | sampled", 46 "usageFlags": "color_attachment | input_attachment | sampled",
|
H A D | core3d_rng_reflection_cam_scene_msaa.rng | 21 "usageFlags": "color_attachment | sampled", 28 "usageFlags": "depth_stencil_attachment | transient_attachment", 35 "usageFlags": "color_attachment | sampled",
|
H A D | core3d_rng_cam_scene_pre_pass.rng | 22 "usageFlags": "color_attachment | sampled", 29 "usageFlags": "depth_stencil_attachment | transient_attachment",
|
H A D | core3d_rng_reflection_cam_scene.rng | 21 "usageFlags": "color_attachment | sampled", 28 "usageFlags": "depth_stencil_attachment | transient_attachment",
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_image_gles.cpp | 175 if ((desc.usageFlags & CORE_IMAGE_USAGE_STORAGE_BIT)) { in GpuImageGLES() 181 const bool isSrc = (desc_.usageFlags & CORE_IMAGE_USAGE_TRANSFER_SRC_BIT); in GpuImageGLES() 182 const bool isDst = (desc_.usageFlags & CORE_IMAGE_USAGE_TRANSFER_DST_BIT); in GpuImageGLES() 183 const bool isSample = (desc_.usageFlags & CORE_IMAGE_USAGE_SAMPLED_BIT); in GpuImageGLES() 184 const bool isStorage = (desc_.usageFlags & CORE_IMAGE_USAGE_STORAGE_BIT); in GpuImageGLES() 188 const bool isInput = (desc_.usageFlags & CORE_IMAGE_USAGE_INPUT_ATTACHMENT_BIT); in GpuImageGLES()
|
H A D | node_context_pool_manager_gles.cpp | 285 const bool isSrc = (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_SRC_BIT); in BindToFbo() 286 const bool isDst = (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_DST_BIT); in BindToFbo() 287 const bool isSample = (desc.usageFlags & CORE_IMAGE_USAGE_SAMPLED_BIT); in BindToFbo() 288 const bool isStorage = (desc.usageFlags & CORE_IMAGE_USAGE_STORAGE_BIT); in BindToFbo() 292 const bool isInput = (desc.usageFlags & CORE_IMAGE_USAGE_INPUT_ATTACHMENT_BIT); in BindToFbo() 337 const bool isSrc = (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_SRC_BIT); in BindToFboMultisampled() 338 const bool isDst = (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_DST_BIT); in BindToFboMultisampled() 339 const bool isSample = (desc.usageFlags & CORE_IMAGE_USAGE_SAMPLED_BIT); in BindToFboMultisampled() 340 const bool isStorage = (desc.usageFlags & CORE_IMAGE_USAGE_STORAGE_BIT); in BindToFboMultisampled() 343 const bool isTrans = (desc.usageFlags & CORE_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT); in BindToFboMultisampled() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_node_create_gpu_images.cpp | 120 if (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_SRC_BIT) { in CheckFormat() 122 } else if (desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_DST_BIT) { in CheckFormat() 124 } else if (desc.usageFlags & CORE_IMAGE_USAGE_SAMPLED_BIT) { in CheckFormat() 126 } else if (desc.usageFlags & CORE_IMAGE_USAGE_STORAGE_BIT) { in CheckFormat() 128 } else if (desc.usageFlags & CORE_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) { in CheckFormat() 130 } else if (desc.usageFlags & CORE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) { in CheckFormat()
|
H A D | render_node_create_gpu_buffers.cpp | 35 needsUpdate = needsUpdate || (dependencyDesc.usageFlags != desc.usageFlags); in CheckForDescUpdates()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/templates/rendernodegraphs/ |
H A D | render_node_create_gpu_images.rng | 19 "usageFlags": "color_attachment | transient_attachment", 33 "usageFlags": "depth_stencil_attachment | transient_attachment",
|
H A D | render_node_create_gpu_buffers.rng | 14 … "usageFlags": "transfer_src | transfer_dst | uniform | storage | index | vertex | indirect",
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | gpu_image_vk.cpp | 59 if (desc.usageFlags & ImageUsageFlagBits::CORE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT) { in ValidateFormat() 65 if (desc.usageFlags & ImageUsageFlagBits::CORE_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) { in ValidateFormat() 70 if (desc.usageFlags & ImageUsageFlagBits::CORE_IMAGE_USAGE_STORAGE_BIT) { in ValidateFormat() 139 plat.usage = static_cast<VkImageUsageFlags>(desc.usageFlags); in FillImageDescVk() 206 if ((desc_.usageFlags & IMAGE_VIEW_USAGE_FLAGS) && plat_.image) { in GpuImageVk() 230 if (plat_.image && !plat_.imageView && (desc_.usageFlags & IMAGE_VIEW_USAGE_FLAGS)) { in GpuImageVk()
|
H A D | gpu_memory_allocator_vk.cpp | 85 …HashCombine(seed, static_cast<uint64_t>(desc.usageFlags), static_cast<uint64_t>(desc.memoryPropert… in hash() 93 (desc.usageFlags & RENDER_NS::CORE_IMAGE_USAGE_COLOR_ATTACHMENT_BIT) | in hash() 94 (desc.usageFlags & RENDER_NS::CORE_IMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT); in hash() 415 bufferCreateInfo.usage = VkBufferUsageFlagBits(buf.usageFlags); in CreatePoolForBuffers() 462 imageCreateInfo.usage = VkImageUsageFlagBits(img.usageFlags); in CreatePoolForImages()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_node_default_camera_controller.cpp | 156 if (desc.usageFlags == 0) { in ValidateColorDesc() 157 desc.usageFlags = input.usageFlags; in ValidateColorDesc() 208 if (desc.usageFlags == 0) { in ValidateDepthDesc() 209 desc.usageFlags = input.usageFlags; in ValidateDepthDesc() 301 desc.usageFlags |= CORE_IMAGE_USAGE_SAMPLED_BIT; in CreateVelocityTarget() 303 desc.usageFlags &= (~CORE_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT); in CreateVelocityTarget() 403 …msaaDesc.usageFlags = CORE_IMAGE_USAGE_COLOR_ATTACHMENT_BIT | CORE_IMAGE_USAGE_TRANSIENT_ATTACHMEN… in CreateColorTargets() 466 desc.usageFlags |= CORE_IMAGE_USAGE_SAMPLED_BIT; in CreateDepthTargets() 468 desc.usageFlags &= (~CORE_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT); in CreateDepthTargets() 793 if (input.usageFlags != 0) { in CreateResourceBaseTargets() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_resource_manager.cpp | 97 if (desc.usageFlags == 0) { in ValidateGpuBufferDesc() 141 if (desc.usageFlags == 0) { in ValidateGpuImageDesc() 177 ((desc.usageFlags & CORE_IMAGE_USAGE_TRANSFER_SRC_BIT) == 0)) { in ValidateGpuImageDesc() 182 if (desc.usageFlags & CORE_IMAGE_USAGE_TRANSIENT_ATTACHMENT_BIT) { in ValidateGpuImageDesc() 183 const ImageUsageFlags usageFlags = in ValidateGpuImageDesc() local 184 desc.usageFlags & in ValidateGpuImageDesc() 187 if (usageFlags != 0) { in ValidateGpuImageDesc() 244 (desc.usageFlags & CORE_BUFFER_USAGE_TRANSFER_DST_BIT) && in CheckAndEnableMemoryOptimizations() 510 desc.usageFlags | defaultBufferUsageFlags_, in CreateBuffer() 1534 defaultBufferUsageFlags_ = usageFlags; in SetDefaultGpuBufferCreationFlags() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/device/ |
H A D | gpu_resource_desc.h | 317 BufferUsageFlags usageFlags { 0 }; 365 ImageUsageFlags usageFlags { 0 };
|