/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_texture.h | 95 static GLenum GetTypeFromInternalFormat(GLenum internalFormat); 146 GLenum internalFormat { 0 }; 155 GLenum internalFormat; member 158 TextureFormatTypeMap(GLenum arg1, GLenum arg2, GLenum arg3) : internalFormat(arg1), format(arg2), type(arg3) {} in TextureFormatTypeMap() 164 return (lhs.internalFormat < rhs.internalFormat || in operator ()() 165 ((lhs.internalFormat == rhs.internalFormat) && (lhs.format < rhs.format)) || in operator ()() 166 ((lhs.internalFormat == rhs.internalFormat) in operator ()() [all...] |
H A D | webgl_renderbuffer.h | 65 void SetInternalFormat(GLenum internalFormat) in SetInternalFormat() argument 67 internalFormat_ = internalFormat; in SetInternalFormat()
|
H A D | webgl_framebuffer.h | 129 bool IsStencilRenderAble(GLenum internalFormat, bool includesDepthStencil) const; 130 bool IsDepthRenderAble(GLenum internalFormat, bool includesDepthStencil) const; 131 bool IsColorRenderAble(GLenum internalFormat) const;
|
H A D | webgl_arg.h | 227 GLenum internalFormat; member 236 : func(0), target(0), level(0), internalFormat(0), in TexImageArg() 244 internalFormat = arg.internalFormat; in TexImageArg() 254 GLenum target, GLint level, GLenum internalFormat, GLsizei width, GLsizei height, GLsizei depth, GLenum type) in TexImageArg() 258 this->internalFormat = internalFormat; in TexImageArg() 274 GLenum internalFormat; member 278 TexStorageArg() : func(0), target(0), levels(0), internalFormat(0), width(0), height(0), depth(0) {} in TexStorageArg() 284 internalFormat in TexStorageArg() [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/generic/ |
H A D | platform_device_gles.cpp | 35 data.internalFormat = tmp.internalFormat; in CreateGpuImageView() 48 data.internalFormat = tmp.internalFormat; in CreateGpuImageView()
|
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_image_gles.cpp | 55 result.internalFormat = fmt.internalFormat; in ConvertFormat() 120 device.TexStorage2DMultisample(plat.image, plat.type, sampleCount, plat.internalFormat, size2D, true); in GenerateImageStorage() 123 device.TexStorage2D(plat.image, plat.type, desc.mipCount, plat.internalFormat, size2D); in GenerateImageStorage() 130 device.TexStorage2D(plat.image, plat.type, desc.mipCount, plat.internalFormat, size2D); in GenerateImageStorage() 136 device.TexStorage3D(plat.image, plat.type, desc.mipCount, plat.internalFormat, in GenerateImageStorage() 143 plat.image, plat.type, desc.mipCount, plat.internalFormat, { desc.width, desc.height, desc.depth }); in GenerateImageStorage() 206 glRenderbufferStorageMultisampleEXT(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES() 209 glRenderbufferStorageMultisample(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES() 213 glRenderbufferStorageMultisample(GL_RENDERBUFFER, (GLsizei)sampleCount, plat_.internalFormat, in GpuImageGLES() [all...] |
H A D | gpu_image_gles.h | 36 uint32_t internalFormat; // GL_RGBA16F etc.. member
|
H A D | device_gles.cpp | 179 GLenum internalFormat; member 1181 if (glFormat.internalFormat != GL_NONE) { 1183 [internalFormat = glFormat.internalFormat]( 1184 const FormatFeatures& features) { return features.internalFormat == internalFormat; });
|
H A D | device_gles.h | 80 uint32_t internalFormat; member
|
H A D | render_backend_gles.cpp | 423 iPlat.internalFormat, static_cast<uint32_t>(bd.sizeOfData), reinterpret_cast<const void*>(data)); in BlitArray() 450 iPlat.internalFormat, static_cast<uint32_t>(bd.sizeOfData), reinterpret_cast<const void*>(data)); in Blit2D() 476 iPlat.internalFormat, static_cast<uint32_t>(bd.sizeOfData), reinterpret_cast<const void*>(data)); in Blit3D() 511 iPlat.internalFormat, static_cast<uint32_t>(bd.sizeOfData), reinterpret_cast<const void*>(data)); in BlitCube() 2565 device_.BindImageTexture(textureUnit, dplat.image, level, false, 0, image.mode, dplat.internalFormat); in BindResources()
|
/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestRenderEnvironment.cpp | 97 GLenum internalFormat = GL_RG8; in HWTEST_F() local 98 size_t ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); in HWTEST_F() 101 internalFormat = GL_R8; in HWTEST_F() 102 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); in HWTEST_F() 105 internalFormat = GL_RGB565; in HWTEST_F() 106 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); in HWTEST_F() 109 internalFormat = GL_RGBA4; in HWTEST_F() 110 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); in HWTEST_F() 113 internalFormat = GL_RGBA16F; in HWTEST_F() 114 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); in HWTEST_F() [all...] |
/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/ |
H A D | gl_utils.h | 30 static GLuint CreateTexture2D(GLsizei width, GLsizei height, GLsizei levels, GLenum internalFormat,
46 static GLuint CreateTexWithStorage(GLenum target, int levels, GLenum internalFormat, int width, int height);
48 IMAGE_EFFECT_EXPORT static size_t GetInternalFormatPixelByteSize(GLenum internalFormat);
|
H A D | gl_utils.cpp | 41 GLuint GLUtils::CreateTexture2D(GLsizei width, GLsizei height, GLsizei levels, GLenum internalFormat, GLint minFilter,
in CreateTexture2D() argument 47 glTexStorage2D(GL_TEXTURE_2D, levels, internalFormat, width, height);
in CreateTexture2D() 94 GLuint GLUtils::CreateTexWithStorage(GLenum target, int levels, GLenum internalFormat,
in CreateTexWithStorage() argument 104 glTexStorage2D(target, levels, internalFormat, width, height);
in CreateTexWithStorage() 117 size_t GLUtils::GetInternalFormatPixelByteSize(GLenum internalFormat)
in GetInternalFormatPixelByteSize() argument 120 switch (internalFormat) {
in GetInternalFormatPixelByteSize()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_rendering_context_draw.cpp | 33 glTexImage2D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.border, in TexImage2D_() 151 glTexImage2D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.border, in TexImage2D() 515 if (!CheckTexImageInternalFormat(env, imgArg.func, imgArg.internalFormat)) { in CheckCompressedTexImage2D() 516 LOGE("Invalid internalFormat target %{public}u %{public}u", imgArg.target, imgArg.internalFormat); in CheckCompressedTexImage2D() 521 LOGE("Invalid internalFormat %{public}u ", imgArg.internalFormat); in CheckCompressedTexImage2D() 547 glCompressedTexImage2D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, in CompressedTexImage2D() 552 { imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, 1, GL_UNSIGNED_BYTE }); in CompressedTexImage2D() 586 glCompressedTexImage2D(imgArg.target, imgArg.level, imgArg.internalFormat, imgAr in CompressedTexImage2D() 768 GLenum internalFormat = imgArg.internalFormat; CheckTexImage() local 813 CheckTexImageInternalFormat(napi_env env, int32_t func, GLenum internalFormat) CheckTexImageInternalFormat() argument 1170 CheckTextureFormatAndType( napi_env env, GLenum internalFormat, GLenum format, GLenum type, GLint level) CheckTextureFormatAndType() argument [all...] |
H A D | webgl_texture.cpp | 189 levelInfo->internalFormat = arg.internalFormat; in SetTextureLevel() 201 GLenum type = GetTypeFromInternalFormat(arg->internalFormat); in SetTexStorageInfo() 213 levelInfo->internalFormat = arg->internalFormat; in SetTexStorageInfo() 230 GLenum WebGLTexture::GetTypeFromInternalFormat(GLenum internalFormat) in GetTypeFromInternalFormat() argument 232 switch (internalFormat) { in GetTypeFromInternalFormat() 364 return levelInfo->internalFormat; in GetInternalFormat() 466 target, level, internalFormat, type, width, height, depth); in Dump()
|
H A D | webgl_framebuffer.cpp | 169 bool WebGLFramebuffer::IsDepthRenderAble(GLenum internalFormat, bool includesDepthStencil) const in IsDepthRenderAble() argument 171 switch (internalFormat) { in IsDepthRenderAble() 186 bool WebGLFramebuffer::IsColorRenderAble(GLenum internalFormat) const in IsColorRenderAble() 188 switch (internalFormat) { in IsColorRenderAble() 225 bool WebGLFramebuffer::IsStencilRenderAble(GLenum internalFormat, bool includesDepthStencil) const in IsStencilRenderAble() argument 227 switch (internalFormat) { in IsStencilRenderAble()
|
H A D | webgl2_rendering_context_impl.cpp | 668 glTexStorage2D(arg.target, arg.levels, arg.internalFormat, arg.width, arg.height); in TexStorage2D() 690 glTexStorage3D(arg.target, arg.levels, arg.internalFormat, arg.width, arg.height, arg.depth); in TexStorage3D() 709 return CheckTextureFormatAndType(env, imgArg.internalFormat, imgArg.format, imgArg.type, imgArg.level); in CheckTexImage3D() 741 glTexImage3D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.depth, in TexImage3D() 744 imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.depth, imgArg.type }); in TexImage3D() 782 glTexImage3D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.depth, in TexImage3D() 797 glTexImage3D(imgArg.target, imgArg.level, imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.depth, in TexImage3D() 830 GLenum internalFormat = texture->GetInternalFormat(arg.target, arg.level); in CheckTexSubImage3D() local 831 return CheckTextureFormatAndType(env, internalFormat, arg.format, arg.type, arg.level); in CheckTexSubImage3D() 953 glCompressedTexImage3D(imgArg.target, imgArg.level, imgArg.internalFormat, imgAr in CompressedTexImage3D() 1682 GetInternalFormatParameter( napi_env env, GLenum target, GLenum internalFormat, GLenum pname) GetInternalFormatParameter() argument 2079 CheckStorageInternalFormat(napi_env env, GLenum internalFormat) CheckStorageInternalFormat() argument [all...] |
H A D | webgl_rendering_context_overloads.cpp | 154 tie(succ, imgArg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in CompressedTexImage2D() 167 imgArg.format = imgArg.internalFormat; in CompressedTexImage2D() 238 imgArg.internalFormat = imgArg.format; in CompressedTexSubImage2D() 349 tie(succ, imgArg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToInt32(); in TexImage2D()
|
H A D | webgl2_rendering_context_base.cpp | 628 tie(succ, args.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in TexStorage3D() 670 tie(succ, imgArg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in TexImage3D() 866 tie(succ, imgArg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in CompressedTexImage3D() 1483 tie(succ, arg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in RenderbufferStorageMultisample() 1512 tie(succ, arg.internalFormat) = NVal(env, funcArg[NARG_POS::SECOND]).ToGLenum(); in RenderbufferStorage() 1546 tie(succ, arg.internalFormat) = NVal(env, funcArg[NARG_POS::THIRD]).ToGLenum(); in TexStorage2D() 2083 GLenum internalFormat = 0; in GetInternalformatParameter() local 2084 tie(succ, internalFormat) = NVal(env, funcArg[NARG_POS::SECOND]).ToGLenum(); in GetInternalformatParameter() 2095 context->GetWebGL2RenderingContextImpl().GetInternalFormatParameter(env, target, internalFormat, pname); in GetInternalformatParameter()
|
H A D | webgl_rendering_context_base_impl.cpp | 1345 arg.target, arg.internalFormat, arg.width, arg.height); in RenderBufferStorage() 1351 switch (arg.internalFormat) { in RenderBufferStorage() 1357 glRenderbufferStorage(arg.target, arg.internalFormat, arg.width, arg.height); in RenderBufferStorage() 1358 renderBuffer->SetInternalFormat(arg.internalFormat); in RenderBufferStorage() 1365 renderBuffer->SetInternalFormat(arg.internalFormat); in RenderBufferStorage() 2312 bool WebGLRenderingContextBaseImpl::CheckInternalFormat(napi_env env, GLenum internalFormat) in CheckInternalFormat() argument 2333 return CheckGLenum(internalFormat, glSupport, gl2Support); in CheckInternalFormat() 2645 if (!CheckInternalFormat(env, arg.internalFormat)) { in CheckRenderBufferStorage() 2647 "WebGL renderbufferStorage invalid internalFormat %{public}u", arg.internalFormat); in CheckRenderBufferStorage() [all...] |
H A D | webgl_arg.cpp | 838 LOGD("%{public}s target %{public}u %{public}d internalFormat %{public}u format %{public}u %{public}u", in Dump() 839 info.c_str(), target, level, internalFormat, format, type); in Dump() 845 LOGD("%{public}s target %{public}u %{public}d internalFormat %{public}u ", in Dump() 846 info.c_str(), target, levels, internalFormat); in Dump()
|
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/gles/ |
H A D | intf_device_gles.h | 203 uint32_t internalFormat; member 375 uint32_t internalFormat; member
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/context/ |
H A D | webgl2_rendering_context_impl.h | 124 napi_value GetInternalFormatParameter(napi_env env, GLenum target, GLenum internalFormat, GLenum pname); 159 bool CheckStorageInternalFormat(napi_env env, GLenum internalFormat);
|
H A D | webgl_rendering_context_base_impl.h | 296 bool CheckInternalFormat(napi_env env, GLenum internalFormat); 306 bool CheckTexImageInternalFormat(napi_env env, int32_t func, GLenum internalFormat); 314 GLenum CheckTextureFormatAndType(napi_env env, GLenum internalFormat, GLenum format, GLenum type, GLint level);
|
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/ |
H A D | lume_common.cpp | 1503 glesImageDesc.internalFormat = GL_RGBA8_OES; in SetupGpuImageTarget()
|