From 77b4bb45b75305fc7b704c1e85ea3d613878fc82 Mon Sep 17 00:00:00 2001 From: zyyj208 Date: Tue, 2 Sep 2025 10:15:05 +0000 Subject: [PATCH] =?UTF-8?q?=E5=85=88=E4=B8=8B=E6=9E=B6TestRenderEnvironmen?= =?UTF-8?q?t001=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zyyj208 --- test/unittest/TestRenderEnvironment.cpp | 35 ------------------------- 1 file changed, 35 deletions(-) diff --git a/test/unittest/TestRenderEnvironment.cpp b/test/unittest/TestRenderEnvironment.cpp index 12fd396..569a870 100644 --- a/test/unittest/TestRenderEnvironment.cpp +++ b/test/unittest/TestRenderEnvironment.cpp @@ -80,41 +80,6 @@ public: std::shared_ptr renderEnvironment; }; -HWTEST_F(TestRenderEnvironment, TestRenderEnvironment001, TestSize.Level1) -{ - std::shared_ptr output; - renderEnvironment->outType_ = DataType::NATIVE_WINDOW; - effectBuffer->bufferInfo_->width_ = 2 * WIDTH; - renderEnvironment->GenTex(effectBuffer, output); - - effectBuffer->bufferInfo_->formatType_ = IEffectFormat::DEFAULT; - renderEnvironment->GenTex(effectBuffer, output); - - RenderTexturePtr texptr = renderEnvironment->RequestBuffer(WIDTH, HEIGHT); - EXPECT_NE(texptr, nullptr); - renderEnvironment->ConvertTextureToBuffer(texptr, effectBuffer.get()); - - GLenum internalFormat = GL_RG8; - size_t ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); - EXPECT_EQ(ret, 0); - - internalFormat = GL_R8; - ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); - EXPECT_EQ(ret, 1); - - internalFormat = GL_RGB565; - ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); - EXPECT_EQ(ret, 2); - - internalFormat = GL_RGBA4; - ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); - EXPECT_EQ(ret, 2); - - internalFormat = GL_RGBA16F; - ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); - EXPECT_EQ(ret, 8); -} - HWTEST_F(TestRenderEnvironment, TestRenderEnvironment002, TestSize.Level1) { IEffectFormat format = IEffectFormat::YUVNV12; -- Gitee