/ohos5.0/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), … 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) && (lhs.format == rhs.format) && (lhs.type < rhs.type)… in operator()
|
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, G… 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 = arg.internalFormat; in TexStorageArg()
|
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_renderbuffer.h | 65 void SetInternalFormat(GLenum internalFormat) in SetInternalFormat() argument 67 internalFormat_ = internalFormat; in SetInternalFormat()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_image_gles.cpp | 55 result.internalFormat = fmt.internalFormat; in ConvertFormat() 120 …ice.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() 217 …glRenderbufferStorage(GL_RENDERBUFFER, plat_.internalFormat, (GLsizei)desc_.width, (GLsizei)desc_.… in GpuImageGLES()
|
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) { in GetFormatProperties() 1183 [internalFormat = glFormat.internalFormat]( in GetFormatProperties() 1184 … const FormatFeatures& features) { return features.internalFormat == internalFormat; }); in GetFormatProperties()
|
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() 2566 …ice_.BindImageTexture(textureUnit, dplat.image, level, false, 0, image.mode, dplat.internalFormat); in BindResources()
|
/ohos5.0/foundation/multimedia/image_effect/test/unittest/ |
H A D | TestRenderEnvironment.cpp | 96 GLenum internalFormat = GL_RG8; variable 97 size_t ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); 100 internalFormat = GL_R8; 101 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); 104 internalFormat = GL_RGB565; 105 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); 108 internalFormat = GL_RGBA4; 109 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat); 112 internalFormat = GL_RGBA16F; 113 ret = GLUtils::GetInternalFormatPixelByteSize(internalFormat);
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/generic/ |
H A D | platform_device_gles.cpp | 35 data.internalFormat = tmp.internalFormat; in RENDER_BEGIN_NAMESPACE() 48 data.internalFormat = tmp.internalFormat; in RENDER_BEGIN_NAMESPACE()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_rendering_context_draw.cpp | 521 LOGE("Invalid internalFormat %{public}u ", imgArg.internalFormat); in CheckCompressedTexImage2D() 697 imgArg.internalFormat, imgArg.internalFormat, GL_UNSIGNED_BYTE, imgArg.level); in CopyTexImage2D() 768 GLenum internalFormat = imgArg.internalFormat; in CheckTexImage() local 769 if (imgArg.internalFormat == 0) { in CheckTexImage() 772 if (internalFormat == 0) { in CheckTexImage() 773 LOGE("Invalid internalFormat %{public}u", internalFormat); in CheckTexImage() 863 switch (imgArg.internalFormat) { in CheckCompressedTexDimensions() 900 switch (imgArg.internalFormat) { in CheckCompressedTexData() 1174 internalFormat, format, type, level); in CheckTextureFormatAndType() 1176 LOGE("Invalid internalFormat %{public}u ", internalFormat); in CheckTextureFormatAndType() [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 | 167 bool WebGLFramebuffer::IsDepthRenderAble(GLenum internalFormat, bool includesDepthStencil) const in IsDepthRenderAble() argument 169 switch (internalFormat) { in IsDepthRenderAble() 184 bool WebGLFramebuffer::IsColorRenderAble(GLenum internalFormat) const in IsColorRenderAble() 186 switch (internalFormat) { in IsColorRenderAble() 223 bool WebGLFramebuffer::IsStencilRenderAble(GLenum internalFormat, bool includesDepthStencil) const in IsStencilRenderAble() argument 225 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() 744 imgArg.internalFormat, imgArg.width, imgArg.height, imgArg.depth, imgArg.type }); in TexImage3D() 830 GLenum internalFormat = texture->GetInternalFormat(arg.target, arg.level); in CheckTexSubImage3D() local 1476 if (arg.internalFormat == GL_DEPTH_STENCIL) { in RenderBufferStorageMultiSample() 1498 renderBuffer->SetInternalFormat(arg.internalFormat); in RenderBufferStorageMultiSample() 1683 napi_env env, GLenum target, GLenum internalFormat, GLenum pname) in GetInternalFormatParameter() argument 1691 if (CheckInList(internalFormat, WebGLTexture::GetSupportInternalFormatGroup1())) { in GetInternalFormatParameter() 1700 glGetInternalformativ(target, internalFormat, GL_NUM_SAMPLE_COUNTS, 1, &length); in GetInternalFormatParameter() 1711 glGetInternalformativ(target, internalFormat, pname, length, params); in GetInternalFormatParameter() 1945 if (!CheckStorageInternalFormat(env, arg.internalFormat)) { in CheckTexStorage() [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 | 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()
|
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 …xt->GetWebGL2RenderingContextImpl().GetInternalFormatParameter(env, target, internalFormat, pname); in GetInternalformatParameter()
|
H A D | webgl_arg.cpp | 839 info.c_str(), target, level, internalFormat, format, type); in Dump() 846 info.c_str(), target, levels, internalFormat); in Dump()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/graphic/ |
H A D | gl_utils.cpp | 41 …reateTexture2D(GLsizei width, GLsizei height, GLsizei levels, GLenum internalFormat, GLint minFilt… 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()
|
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, in… 48 IMAGE_EFFECT_EXPORT static size_t GetInternalFormatPixelByteSize(GLenum internalFormat);
|
/ohos5.0/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
|
/ohos5.0/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 p… 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, …
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/ |
H A D | gl2ext_entries.in | 490 HOOK_API_ENTRY(void, glTexStorageMem2DEXT, GLenum target, GLsizei levels, GLenum internalFormat, GL… 491 CALL_HOOK_API(glTexStorageMem2DEXT, target, levels, internalFormat, width, height, memory, offset) 494 CALL_HOOK_API(glTexStorageMem2DMultisampleEXT, target, samples, internalFormat, width, height, fixe… 496 HOOK_API_ENTRY(void, glTexStorageMem3DEXT, GLenum target, GLsizei levels, GLenum internalFormat, GL… 497 CALL_HOOK_API(glTexStorageMem3DEXT, target, levels, internalFormat, width, height, depth, memory, o… 500 CALL_HOOK_API(glTexStorageMem3DMultisampleEXT, target, samples, internalFormat, width, height, dept… 505 …id, glTextureStorageMem2DEXT, GLuint texture, GLsizei levels, GLenum internalFormat, GLsizei width… 506 CALL_HOOK_API(glTextureStorageMem2DEXT, texture, levels, internalFormat, width, height, memory, off… 509 CALL_HOOK_API(glTextureStorageMem2DMultisampleEXT, texture, samples, internalFormat, width, height,… 512 CALL_HOOK_API(glTextureStorageMem3DEXT, texture, levels, internalFormat, width, height, depth, memo… [all …]
|