Home
last modified time | relevance | path

Searched refs:internalFormat (Results 1 – 25 of 27) sorted by relevance

12

/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/
H A Dwebgl_texture.h95 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 Dwebgl_arg.h227 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 Dwebgl_framebuffer.h129 bool IsStencilRenderAble(GLenum internalFormat, bool includesDepthStencil) const;
130 bool IsDepthRenderAble(GLenum internalFormat, bool includesDepthStencil) const;
131 bool IsColorRenderAble(GLenum internalFormat) const;
H A Dwebgl_renderbuffer.h65 void SetInternalFormat(GLenum internalFormat) in SetInternalFormat() argument
67 internalFormat_ = internalFormat; in SetInternalFormat()
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_image_gles.cpp55 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 Dgpu_image_gles.h36 uint32_t internalFormat; // GL_RGBA16F etc.. member
H A Ddevice_gles.cpp179 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 Ddevice_gles.h80 uint32_t internalFormat; member
H A Drender_backend_gles.cpp423 … 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 DTestRenderEnvironment.cpp96 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 Dplatform_device_gles.cpp35 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 Dwebgl_rendering_context_draw.cpp521 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 Dwebgl_texture.cpp189 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 Dwebgl_framebuffer.cpp167 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 Dwebgl2_rendering_context_impl.cpp668 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 Dwebgl_rendering_context_overloads.cpp154 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 Dwebgl_rendering_context_base_impl.cpp1345 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 Dwebgl2_rendering_context_base.cpp628 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 Dwebgl_arg.cpp839 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 Dgl_utils.cpp41 …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 Dgl_utils.h30 …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 Dintf_device_gles.h203 uint32_t internalFormat; member
375 uint32_t internalFormat; member
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/context/
H A Dwebgl2_rendering_context_impl.h124 …napi_value GetInternalFormatParameter(napi_env env, GLenum target, GLenum internalFormat, GLenum p…
159 bool CheckStorageInternalFormat(napi_env env, GLenum internalFormat);
H A Dwebgl_rendering_context_base_impl.h296 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 Dgl2ext_entries.in490 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 …]

12