Home
last modified time | relevance | path

Searched refs:texture (Results 1 – 25 of 93) sorted by relevance

1234

/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_inplace_sampling_common.h76 return texture(uSampTextureBase, uv); in GetBaseColorSample()
82 return texture(uSampTextureBase, uv); in GetBaseColorSample()
89 return texture(uSampTextures[CORE_MATERIAL_TEX_NORMAL_IDX], uv).xyz; in GetNormalSample()
95 return texture(uSampTextures[CORE_MATERIAL_TEX_NORMAL_IDX], uv).xyz; in GetNormalSample()
102 return texture(uSampTextures[CORE_MATERIAL_TEX_MATERIAL_IDX], uv); in GetMaterialSample()
108 return texture(uSampTextures[CORE_MATERIAL_TEX_MATERIAL_IDX], uv); in GetMaterialSample()
127 return texture(uSampTextures[CORE_MATERIAL_TEX_AO_IDX], uv).x; in GetAOSample()
133 return texture(uSampTextures[CORE_MATERIAL_TEX_AO_IDX], uv).x; in GetAOSample()
179 return texture(uSampTextures[CORE_MATERIAL_TEX_SHEEN_IDX], uv).xyz; in GetSheenSample()
219 return texture(uSampTextures[CORE_MATERIAL_TEX_SPECULAR_IDX], uv); in GetSpecularSample()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/
H A Dwebgl_rendering_context_draw.cpp49 if (!texture) { in TexImage2D()
103 if (!texture) { in TexImage2D()
134 if (!texture) { in TexImage2D()
174 if (!texture) { in TexSubImage2D()
195 if (!texture) { in TexSubImage2D()
246 if (!texture) { in TexSubImage2D()
511 if (texture == nullptr || texture->CheckImmutable()) { in CheckCompressedTexImage2D()
550 if (texture != nullptr) { in CompressedTexImage2D()
590 if (texture != nullptr) { in CompressedTexImage2D()
611 if (texture == nullptr || texture->CheckImmutable()) { in CheckCompressedTexSubImage2D()
[all …]
H A Dwebgl_framebuffer.cpp260 WebGLTexture* texture = context->GetObjectInstance<WebGLTexture>( in GetWebGLAttachmentInfo() local
262 if (texture == nullptr) { in GetWebGLAttachmentInfo()
268 … info.format = texture->GetInternalFormat(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo()
269 info.width = texture->GetWidth(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo()
270 info.height = texture->GetHeight(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo()
271 info.type = texture->GetType(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo()
H A Dwebgl2_rendering_context_impl.cpp659 if (texture == nullptr) { in TexStorage2D()
686 if (texture == nullptr) { in TexStorage3D()
717 if (texture == nullptr) { in TexImage3D()
778 if (texture == nullptr) { in TexImage3D()
817 if (texture == nullptr) { in CheckTexSubImage3D()
944 if (texture == nullptr) { in CompressedTexImage3D()
948 if (texture->CheckImmutable()) { in CompressedTexImage3D()
964 if (texture == nullptr) { in CompressedTexImage3D()
998 if (texture == nullptr) { in CompressedTexSubImage3D()
1017 if (texture == nullptr) { in CompressedTexSubImage3D()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/
H A Drosen_render_texture.cpp100 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() local
101 if (texture) { in SetIsAddGaussianFuzzy()
102 texture->InitGaussianFuzzyParas(); in SetIsAddGaussianFuzzy()
107 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() local
108 if (texture) { in SetIsAddGaussianFuzzy()
109 texture->SetIsAddGaussianFuzzy(false); in SetIsAddGaussianFuzzy()
115 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() local
116 if (texture) { in SetIsAddGaussianFuzzy()
117 texture->MarkNeedRender(); in SetIsAddGaussianFuzzy()
H A Drender_texture.cpp28 const RefPtr<TextureComponent> texture = AceType::DynamicCast<TextureComponent>(component); in Update() local
29 if (!texture) { in Update()
33 textureId_ = texture->GetTextureId(); in Update()
34 …auto sourceSize = Size(static_cast<double>(texture->GetSrcWidth()), static_cast<double>(texture->G… in Update()
38 imageFit_ = texture->GetFit(); in Update()
39 imagePosition_ = texture->GetImagePosition(); in Update()
H A Dvideo_element_v2.cpp39 bool isFullScreen, const WeakPtr<Player>& player, const WeakPtr<Texture>& texture) in FireFullscreen() argument
59 videoComponent_->SetTexture(texture); in FireFullscreen()
85 … VideoElementV2::FireFullscreen(bool isFullScreen, bool isPlaying, const WeakPtr<Texture>& texture) in FireFullscreen() argument
104 videoComponent_->SetTexture(texture); in FireFullscreen()
197 …eak = AceType::WeakClaim(this)](bool fullscreen, bool isPlaying, const WeakPtr<Texture>& texture) { in SetNewComponent() argument
201 result = client->FireFullscreen(fullscreen, isPlaying, texture); in SetNewComponent()
209 … const WeakPtr<Player>& player, const WeakPtr<Texture>& texture) { in SetNewComponent() argument
213 result = client->FireFullscreen(fullscreen, player, texture); in SetNewComponent()
H A Dvideo_element_v2.h38 … FireFullscreen(bool isFullScreen, const WeakPtr<Player>& player, const WeakPtr<Texture>& texture);
39 …fPtr<Component> FireFullscreen(bool isFullScreen, bool isPlaying, const WeakPtr<Texture>& texture);
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dshadow_demo.js84 gl.bindTexture(gl.TEXTURE_2D, fbo.texture);
142 gl.bindTexture(gl.TEXTURE_2D, o.texture);
188 o.texture = gl.createTexture();
272 o.texture = gl.createTexture();
298 let framebuffer, texture, depthBuffer;
303 if (texture) {
304 gl.deleteTexture(texture);
315 texture = gl.createTexture();
316 if (!texture) {
319 gl.bindTexture(gl.TEXTURE_2D, texture);
[all …]
H A Dtexture_2d_demo.js63 let texture = gl.createTexture();
64 if (texture === null) {
65 gl.deleteTexture(texture);
70 gl.bindTexture(gl.TEXTURE_2D, texture);
H A Dcube_demo.js128 let texture = gl.createTexture();
129 if (texture === null) {
134 gl.bindTexture(gl.TEXTURE_2D, texture);
H A Dpanorama_demo.js73 let texture = gl.createTexture();
74 if (texture === null) {
78 gl.bindTexture(gl.TEXTURE_2D, texture);
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dshadow2_demo.js86 gl.bindTexture(gl.TEXTURE_2D, fbo.texture);
144 gl.bindTexture(gl.TEXTURE_2D, o.texture);
190 o.texture = gl.createTexture();
274 o.texture = gl.createTexture();
300 let framebuffer, texture, depthBuffer;
305 if (texture) {
306 gl.deleteTexture(texture);
317 texture = gl.createTexture();
318 if (!texture) {
321 gl.bindTexture(gl.TEXTURE_2D, texture);
[all …]
H A Dcube2_demo.js128 let texture = gl.createTexture();
129 if (texture === null) {
134 gl.bindTexture(gl.TEXTURE_2D, texture);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/video/resource/
H A Dtexture.cpp73 auto texture = weak.Upgrade(); in Create() local
74 if (texture) { in Create()
75 texture->CreateTexture(onCreate); in Create()
97 auto texture = weak.Upgrade(); in CreateTexture() local
98 if (texture) { in CreateTexture()
99 texture->OnRefresh(param); in CreateTexture()
H A Dext_texture.cpp62 auto texture = weak.Upgrade(); in Create() local
63 if (texture) { in Create()
64 texture->CreateTexture(onCreate); in Create()
85 auto texture = weak.Upgrade(); in CreateTexture() local
86 if (texture) { in CreateTexture()
87 texture->OnRefresh(param); in CreateTexture()
/ohos5.0/docs/en/application-dev/graphics/
H A Dnative-image-guidelines.md5texture. It functions as the consumer of a graphics queue. You can use the APIs of this module to …
21 | OH_NativeImage_UpdateSurfaceImage (OH_NativeImage \*image) | Updates the OpenGL ES texture asso…
22 …imestamp (OH_NativeImage \*image) | Obtains the timestamp of the texture image that recent…
30 …te an **OH_NativeImage** instance as the consumer and update the data to a OpenGL external texture.
181 // Create an OpenGL ES texture.
184 // Create an OH_NativeImage instance, which will be associated with an OpenGL ES texture.
255 6. Update the content to the OpenGL texture.
258 // Update the content to the OpenGL texture.
263 …// Obtain the timestamp and transformation matrix of the texture image that recently called the **…
271 // Perform OpenGL post-processing on the texture, and then display the texture on the screen.
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/resource/
H A Dnative_texture.cpp67 auto texture = weak.Upgrade(); in Create() local
68 if (texture) { in Create()
69 texture->CreateTexture(onCreate, idStr); in Create()
96 auto texture = weak.Upgrade(); in CreateTexture() local
97 if (texture) { in CreateTexture()
98 texture->OnRefresh(param); in CreateTexture()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/
H A Drs_surface_node.cpp756 auto texture = surface_->GetSurfaceExt(config); in CreateSurfaceExt() local
757 if (texture == nullptr) { in CreateSurfaceExt()
760 if (texture == nullptr) { in CreateSurfaceExt()
767 texture->UpdateSurfaceExtConfig(config); in CreateSurfaceExt()
771 GetId(), config.type, texture.get()); in CreateSurfaceExt()
802 auto texture = surface_->GetSurfaceExt(config); in SetSurfaceTextureAttachCallBack() local
803 if (texture) { in SetSurfaceTextureAttachCallBack()
811 if (texture) { in SetSurfaceTextureAttachCallBack()
824 if (texture) { in SetSurfaceTextureUpdateCallBack()
833 if (texture) { in SetSurfaceTextureUpdateCallBack()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/
H A Dskia_texture_info_test.cpp64 GrBackendTexture texture = SkiaTextureInfo::ConvertToGrBackendVKTexture(info); variable
65 EXPECT_EQ(texture.width(), 0);
78 GrBackendTexture texture(1280, 720, GrMipmapped::kNo, mockInfo); variable
79 TextureInfo textureInfo = SkiaTextureInfo::ConvertToTextureInfo(texture);
/ohos5.0/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/engine/graphics/
H A DXTexture.js57 var texture = gl.createTexture();
58 XTexture.initTextureStatus(texture);
73 this.ximages[rid] = { stat: 1, path: path, tex: texture, w: 1, h: 1 };
86 var texture = gl.createTexture();
87 XTexture.initTextureStatus(texture);
98 XTexture.pinstance_.ximages[rid].tex = texture;
159 var texture = gl.createTexture();
160 XTexture.initTextureStatus(texture);
176 tex: texture,
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_glFramebufferTexture3DOES/entry/src/main/cpp/
H A Dtest_glFramebufferTexture3DOES.cpp80 GLuint texture; in GLCopyTexSubImage3D() local
81 glGenTextures(CREAT_NUM_ONE, &texture); in GLCopyTexSubImage3D()
82 glBindTexture(GL_TEXTURE_3D, texture); in GLCopyTexSubImage3D()
88 … glFramebufferTextureLayer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, texture, INT_INIT_VAL, MATRIX_8); in GLCopyTexSubImage3D()
92 glFramebufferTexture3DOES(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_3D, texture, 0, 0); in GLCopyTexSubImage3D()
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/
H A Dgl2ext_entries.in101 CALL_HOOK_API(glFramebufferTextureOES, target, attachment, texture, level)
338 CALL_HOOK_API(glClearTexImageEXT, texture, level, format, type, data)
823 HOOK_API_ENTRY(GLuint64, glGetTextureHandleIMG, GLuint texture)
824 CALL_HOOK_API_RET(glGetTextureHandleIMG, texture)
827 CALL_HOOK_API_RET(glGetTextureSamplerHandleIMG, texture, sampler)
892 HOOK_API_ENTRY(GLuint64, glGetTextureHandleNV, GLuint texture)
893 CALL_HOOK_API_RET(glGetTextureHandleNV, texture)
896 CALL_HOOK_API_RET(glGetTextureSamplerHandleNV, texture, sampler)
1142 CALL_HOOK_API(glTextureAttachMemoryNV, texture, memory, offset)
1438 HOOK_API_ENTRY(void, glBindShadingRateImageNV, GLuint texture)
[all …]
H A Dgl1ext_entries.in106 HOOK_API_ENTRY(void, glMultiTexCoord4xOES, GLenum texture, GLfixed s, GLfixed t, GLfixed r, GLfixed…
107 CALL_HOOK_API(glMultiTexCoord4xOES, texture, s, t, r, q)
202 …ufferTexture2DOES, GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLint level)
203 CALL_HOOK_API(glFramebufferTexture2DOES, target, attachment, textarget, texture, level)
341 CALL_HOOK_API(glFramebufferTexture2DMultisampleEXT, target, attachment, textarget, texture, level, …
365 CALL_HOOK_API(glTextureStorage1DEXT, texture, target, levels, internalformat, width)
368 CALL_HOOK_API(glTextureStorage2DEXT, texture, target, levels, internalformat, width, height)
371 CALL_HOOK_API(glTextureStorage3DEXT, texture, target, levels, internalformat, width, height, depth)
377 CALL_HOOK_API(glFramebufferTexture2DMultisampleIMG, target, attachment, textarget, texture, level, …
430 HOOK_API_ENTRY(void, glExtGetTexLevelParameterivQCOM, GLuint texture, GLenum face, GLint level, GLe…
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/
H A D_o_h___native_image.md6 …tioning as a data consumer, it is used to associate data with the OpenGL texture. It is used in th…
402 The OpenGL ES texture will be bound to an **GL_TEXTURE_EXTERNAL_OES** instance and updated through …
415 | textureId | ID of the OpenGL ES texture to which the **OH_NativeImage** instance is to be attache…
430 Creates an **OH_NativeImage** instance to be associated with the OpenGL ES texture ID and target.
444 | textureId | OpenGL ES texture ID.|
445 | textureTarget | OpenGL ES texture target.|
540 Obtains the timestamp of the texture image that recently called the **OH_NativeImage_UpdateSurfaceI…
556 Returns the timestamp of the texture image.
567 Obtains the transformation matrix of the texture image that recently called the **OH_NativeImage_Up…
595 Obtains, based on the rotation angle set by the producer, the transform matrix of the texture image…
[all …]

1234