Home
last modified time | relevance | path

Searched refs:renderResolution (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dscene_util.cpp76 } else if (cameraComponent.renderResolution.y > 0U) { in CalculateProjectionMatrix()
78 static_cast<float>(cameraComponent.renderResolution.y); in CalculateProjectionMatrix()
89 } else if (cameraComponent.renderResolution.y > 0U) { in CalculateProjectionMatrix()
164 cameraComponent.aspect = (renderResolution.y > 0U) in UpdateCameraViewport()
165 … ? (static_cast<float>(renderResolution.x) / static_cast<float>(renderResolution.y)) in UpdateCameraViewport()
167 cameraComponent.renderResolution[0] = renderResolution.x; in UpdateCameraViewport()
168 cameraComponent.renderResolution[1] = renderResolution.y; in UpdateCameraViewport()
188 (renderResolution.y > 0) in UpdateCameraViewport()
189 … ? (static_cast<float>(renderResolution.x) / static_cast<float>(renderResolution.y)) in UpdateCameraViewport()
205 cameraComponent.renderResolution[0] = renderResolution.x; in UpdateCameraViewport()
[all …]
H A Dscene_util.h45 …CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const ov…
46 …aViewport(CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution,
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_node_create_default_camera_gpu_images.cpp88 … const bool xChanged = (currCamera.renderResolution.x != currDesc.desc.width) ? true : false; in PreExecuteFrame()
89 … const bool yChanged = (currCamera.renderResolution.y != currDesc.desc.height) ? true : false; in PreExecuteFrame()
92 currDesc.desc.width = currCamera.renderResolution.x; in PreExecuteFrame()
93 currDesc.desc.height = currCamera.renderResolution.y; in PreExecuteFrame()
H A Drender_node_default_cameras.cpp222 …nst Math::Vec2 renderRes = Math::Vec2(static_cast<float>(Math::max(1u, camera.renderResolution.x)), in GetProjectionMatrix()
223 static_cast<float>(Math::max(1u, camera.renderResolution.y))); in GetProjectionMatrix()
H A Drender_node_default_camera_controller.cpp278 desc.width = camera.renderResolution.x; in CreateBaseColorTarget()
279 desc.height = camera.renderResolution.y; in CreateBaseColorTarget()
728 camRes_.renResolution = currentScene_.camera.renderResolution; in CreateResources()
813 …if ((colorDesc.width != camera.renderResolution.x) || (colorDesc.height != camera.renderResolution in CreateResourceBaseTargets()
879 const Math::Vec2 viewportSize = { static_cast<float>(camera.renderResolution.x), in UpdateGeneralUniformBuffer()
880 static_cast<float>(camera.renderResolution.y) }; in UpdateGeneralUniformBuffer()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/
H A Drender_node_scene_util.cpp184 const float fRenderResX = static_cast<float>(camera.renderResolution.x); in CreateViewportFromCamera()
185 const float fRenderResY = static_cast<float>(camera.renderResolution.y); in CreateViewportFromCamera()
204 const float fRenderResX = static_cast<float>(camera.renderResolution.x); in CreateScissorFromCamera()
205 const float fRenderResY = static_cast<float>(camera.renderResolution.y); in CreateScissorFromCamera()
222 …renderPass.renderPassDesc.renderArea = { 0, 0, camera.renderResolution.x, camera.renderResolution.… in UpdateRenderPassFromCamera()
234 …renderPass.renderPassDesc.renderArea = { 0, 0, camera.renderResolution.x, camera.renderResolution.… in UpdateRenderPassFromCustomCamera()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_scene_util.h63 …CORE_NS::IEcs& ecs, CORE_NS::Entity entity, const BASE_NS::Math::UVec2& renderResolution) const = …
76 …const BASE_NS::Math::UVec2& renderResolution, bool autoAspect, float fovY, float orthoScale) const…
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/components/
H A Dcamera_component.h188 … DEFINE_PROPERTY(BASE_NS::Math::UVec2, renderResolution, "Render Resolution", 0, ARRAY_VALUE(0, 0))
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Drender_system.cpp341 renderCamera.renderResolution = { cc.renderResolution[0u], cc.renderResolution[1u] }; in FillRenderCameraBaseFromCameraComponent()
422 … rc.renderResolution = { static_cast<uint32_t>(static_cast<float>(rc.renderResolution[0]) * 0.5f), in CreateColorPrePassRenderCamera()
423 static_cast<uint32_t>(static_cast<float>(rc.renderResolution[1]) * 0.5f) }; in CreateColorPrePassRenderCamera()
990 …std::max(static_cast<uint32_t>(static_cast<float>(sceneCamera.renderResolution.x) * reflComp.scree… in UpdatePlaneReflectionTargetResolution()
993 …std::max(static_cast<uint32_t>(static_cast<float>(sceneCamera.renderResolution.y) * reflComp.scree… in UpdatePlaneReflectionTargetResolution()
1989 …const auto xFactor = (static_cast<float>(camera.renderResolution[0]) * reflComponent.screenPercent… in ProcessReflection()
1991 …const auto yFactor = (static_cast<float>(camera.renderResolution[1]) * reflComponent.screenPercent… in ProcessReflection()
1998 …reflCam.renderResolution = { reflComponent.renderTargetResolution[0], reflComponent.renderTargetRe… in ProcessReflection()
2145 camera.renderResolution = dsLight_->GetShadowQualityResolution(); in ProcessShadowCamera()
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/render/
H A Drender_data_defines_3d.h514 BASE_NS::Math::UVec2 renderResolution { 0u, 0u };
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/
H A Dscene_holder.cpp728 cc->renderResolution[0] = static_cast<float>(camera->width); in UpdateCameraRenderTarget()
729 cc->renderResolution[1] = static_cast<float>(camera->height); in UpdateCameraRenderTarget()