/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_inplace_sampling_common.h | 76 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() 115 return texture(uSampTextures[CORE_MATERIAL_TEX_EMISSIVE_IDX], uv).xyz; in GetEmissiveSample() 121 return texture(uSampTextures[CORE_MATERIAL_TEX_EMISSIVE_IDX], uv).xyz; in GetEmissiveSample() 127 return texture(uSampTextures[CORE_MATERIAL_TEX_AO_IDX], uv).x; in GetAOSample() 133 return texture(uSampTexture in GetAOSample() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/video/ |
H A D | rosen_render_texture.cpp | 95 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() 96 if (texture) { in SetIsAddGaussianFuzzy() 97 texture->InitGaussianFuzzyParas(); in SetIsAddGaussianFuzzy() 102 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() 103 if (texture) { in SetIsAddGaussianFuzzy() 104 texture->SetIsAddGaussianFuzzy(false); in SetIsAddGaussianFuzzy() 110 auto texture = weak.Upgrade(); in SetIsAddGaussianFuzzy() 111 if (texture) { in SetIsAddGaussianFuzzy() 112 texture->MarkNeedRender(); in SetIsAddGaussianFuzzy()
|
H A D | render_texture.cpp | 27 const RefPtr<TextureComponent> texture = AceType::DynamicCast<TextureComponent>(component); in Update() local 28 if (!texture) { in Update() 32 textureId_ = texture->GetTextureId(); in Update() 33 auto sourceSize = Size(static_cast<double>(texture->GetSrcWidth()), static_cast<double>(texture->GetSrcHeight())); in Update() 37 imageFit_ = texture->GetFit(); in Update() 38 imagePosition_ = texture->GetImagePosition(); in Update()
|
H A D | video_element_v2.cpp | 37 bool isFullScreen, const WeakPtr<Player>& player, const WeakPtr<Texture>& texture) in FireFullscreen() 57 videoComponent_->SetTexture(texture); in FireFullscreen() 83 RefPtr<Component> VideoElementV2::FireFullscreen(bool isFullScreen, bool isPlaying, const WeakPtr<Texture>& texture) in FireFullscreen() argument 102 videoComponent_->SetTexture(texture); in FireFullscreen() 195 [weak = AceType::WeakClaim(this)](bool fullscreen, bool isPlaying, const WeakPtr<Texture>& texture) { in SetNewComponent() 199 result = client->FireFullscreen(fullscreen, isPlaying, texture); in SetNewComponent() 207 const WeakPtr<Player>& player, const WeakPtr<Texture>& texture) { in SetNewComponent() 211 result = client->FireFullscreen(fullscreen, player, texture); in SetNewComponent() 36 FireFullscreen( bool isFullScreen, const WeakPtr<Player>& player, const WeakPtr<Texture>& texture) FireFullscreen() argument
|
H A D | video_element_v2.h | 38 RefPtr<Component> FireFullscreen(bool isFullScreen, const WeakPtr<Player>& player, const WeakPtr<Texture>& texture); 39 RefPtr<Component> FireFullscreen(bool isFullScreen, bool isPlaying, const WeakPtr<Texture>& texture);
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl_rendering_context_draw.cpp | 28 const TexImageArg& imgArg, WebGLTexture* texture, const void* pixels, bool changeUnpackAlignment) in TexImage2D_() 35 texture->SetTextureLevel(imgArg); in TexImage2D_() 48 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); in TexImage2D() local 49 if (!texture) { in TexImage2D() 50 SET_ERROR_WITH_LOG(WebGLRenderingContextBase::INVALID_OPERATION, "texture is nullptr"); in TexImage2D() 53 GLenum error = CheckTexImage(env, imgArg, texture); in TexImage2D() 58 if (texture->CheckImmutable()) { in TexImage2D() 80 TexImage2D_(imgArg, texture, data, changeUnpackAlignment); in TexImage2D() 102 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); in TexImage2D() local 103 if (!texture) { in TexImage2D() 27 TexImage2D_( const TexImageArg& imgArg, WebGLTexture* texture, const void* pixels, bool changeUnpackAlignment) TexImage2D_() argument 133 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); TexImage2D() local 157 TexSubImage2D_( const TexSubImage2DArg& imgArg, WebGLTexture* texture, const void* pixels, bool changeUnpackAlignment) TexSubImage2D_() argument 173 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); TexSubImage2D() local 194 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); TexSubImage2D() local 245 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); TexSubImage2D() local 510 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CheckCompressedTexImage2D() local 549 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexImage2D() local 589 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexImage2D() local 610 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CheckCompressedTexSubImage2D() local 690 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CopyTexImage2D() local 759 CheckTexImage(napi_env env, const TexImageArg& imgArg, WebGLTexture* texture) CheckTexImage() argument 788 CheckTexSubImage2D( napi_env env, const TexSubImage2DArg& imgArg, WebGLTexture* texture) CheckTexSubImage2D() argument 948 CheckCompressedTexSubDimensions( const TexSubImage2DArg& imgArg, WebGLTexture* texture) CheckCompressedTexSubDimensions() argument 1017 WebGLTexture* texture = GetBoundTexture(env, arg.target, false); CheckCopyTexSubImage() local [all...] |
H A D | webgl_framebuffer.cpp | 107 LOGD("AddAttachment target %{public}u attachment [%{public}u %{public}u] texture [%{public}u %{public}d]", target, in AddAttachment() 262 WebGLTexture* texture = context->GetObjectInstance<WebGLTexture>( in GetWebGLAttachmentInfo() local 264 if (texture == nullptr) { in GetWebGLAttachmentInfo() 270 info.format = texture->GetInternalFormat(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo() 271 info.width = texture->GetWidth(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo() 272 info.height = texture->GetHeight(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo() 273 info.type = texture->GetType(textureAttachment->target, textureAttachment->level); in GetWebGLAttachmentInfo()
|
H A D | webgl2_rendering_context_impl.cpp | 658 WebGLTexture* texture = GetBoundTexture(env, arg.target, false); in TexStorage2D() local 659 if (texture == nullptr) { in TexStorage2D() 669 texture->SetTexStorageInfo(&arg); in TexStorage2D() 685 WebGLTexture* texture = GetBoundTexture(env, arg.target, false); in TexStorage3D() local 686 if (texture == nullptr) { in TexStorage3D() 691 texture->SetTexStorageInfo(&arg); in TexStorage3D() 716 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); in TexImage3D() local 717 if (texture == nullptr) { in TexImage3D() 743 texture->SetTextureLevel({ imgArg.target, imgArg.level, in TexImage3D() 777 WebGLTexture* texture in TexImage3D() local 816 WebGLTexture* texture = GetBoundTexture(env, arg.target, false); CheckTexSubImage3D() local 943 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexImage3D() local 963 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexImage3D() local 997 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexSubImage3D() local 1016 WebGLTexture* texture = GetBoundTexture(env, imgArg.target, true); CompressedTexSubImage3D() local 1939 WebGLTexture* texture = GetBoundTexture(env, arg.target, false); CheckTexStorage() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/video/resource/ |
H A D | ext_texture.cpp | 23 const char TEXTURE_ERRORMSG_CREATEFAIL[] = "Unable to initialize texture."; 62 auto texture = weak.Upgrade(); in Create() 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()
|
H A D | texture.cpp | 16 #include "core/components/video/resource/texture.h" 34 LOGE("fail to create texture due to context is null"); in ~Texture() 62 LOGE("fail to create texture due to context is null"); in Create() 69 auto texture = weak.Upgrade(); in Create() 70 if (texture) { in Create() 71 texture->CreateTexture(onCreate); in Create() 93 auto texture = weak.Upgrade(); in CreateTexture() local 94 if (texture) { in CreateTexture() 95 texture->OnRefresh(param); in CreateTexture()
|
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/resource/ |
H A D | native_texture.cpp | 32 LOGE("fail to create texture due to context is null"); in ~NativeTexture() 60 LOGE("fail to create texture due to context is null"); in Create() 67 auto texture = weak.Upgrade(); in Create() 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()
|
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/ |
H A D | shadow2_demo.js | 65 vec4 texColor = texture(u_Sampler,v_TexCoord); 67 vec4 rgbaDepth = texture(u_ShadowMap,shadowCoord.xy); 86 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 [all...] |
H A D | panorama2_demo.js | 43 fragColor = texture(u_Sampler,v_TexCoord);; 76 let texture = gl.createTexture(); 77 if (texture === null) { 81 gl.bindTexture(gl.TEXTURE_2D, texture);
|
H A D | cube2_demo.js | 56 vec4 color = texture(u_Sampler,v_TexCoord); 128 let texture = gl.createTexture(); 129 if (texture === null) { 134 gl.bindTexture(gl.TEXTURE_2D, texture);
|
/foundation/graphic/graphic_2d/rosen/samples/opengl/test_glFramebufferTexture3DOES/entry/src/main/cpp/ |
H A D | test_glFramebufferTexture3DOES.cpp | 80 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()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/ui/ |
H A D | rs_surface_node.cpp | 770 auto texture = surface_->GetSurfaceExt(config); in CreateSurfaceExt() local 771 if (texture == nullptr) { in CreateSurfaceExt() 772 texture = surface_->CreateSurfaceExt(config); in CreateSurfaceExt() 774 if (texture == nullptr) { in CreateSurfaceExt() 780 if (texture->GetSurfaceExtConfig().additionalData == nullptr) { in CreateSurfaceExt() 781 texture->UpdateSurfaceExtConfig(config); in CreateSurfaceExt() 785 GetId(), config.type, texture.get()); in CreateSurfaceExt() 787 std::make_unique<RSSurfaceNodeCreateSurfaceExt>(GetId(), texture); in CreateSurfaceExt() 816 auto texture = surface_->GetSurfaceExt(config); in SetSurfaceTextureAttachCallBack() local 817 if (texture) { in SetSurfaceTextureAttachCallBack() 837 auto texture = surface_->GetSurfaceExt(config); SetSurfaceTextureUpdateCallBack() local 859 auto texture = surface_->GetSurfaceExt(config); SetSurfaceTextureInitTypeCallBack() local [all...] |
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/ |
H A D | shadow_demo.js | 84 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 D | panorama_demo.js | 73 let texture = gl.createTexture(); 74 if (texture === null) { 78 gl.bindTexture(gl.TEXTURE_2D, texture);
|
H A D | cube_demo.js | 128 let texture = gl.createTexture(); 129 if (texture === null) { 134 gl.bindTexture(gl.TEXTURE_2D, texture);
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_texture_info_test.cpp | 77 GrBackendTexture texture(1280, 720, GrMipmapped::kNo, mockInfo); in HWTEST_F() 78 TextureInfo textureInfo = SkiaTextureInfo::ConvertToTextureInfo(texture); in HWTEST_F()
|
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/test/simple/snippets/ |
H A D | core_image_blocks.h | 18 outColor = texture(inSampler, inUv); in GenericImageSample()
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_data_structures.h | 362 // The sampler used by this texture. 367 // The image used by this texture. 372 // The texture. 373 Texture* texture { nullptr }; 378 // The set index of texture's TEXCOORD attribute 379 // used for texture coordinate mapping. 402 // The base color texture. 403 // This texture contains RGB(A) components in sRGB color space. 429 // The metallic-roughness texture. 455 // "The scalar multiplier applied to each normal vector of the texture 495 TextureInfo texture; global() member 544 TextureInfo texture; global() member 557 TextureInfo texture; global() member 571 TextureInfo texture; global() member [all...] |
/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | device_gles.h | 190 void BindTexture(uint32_t textureUnit, uint32_t target, uint32_t texture); // target = GL_TEXTURE_2D et al. 191 void BindImageTexture(uint32_t unit, uint32_t texture, uint32_t level, bool layered, uint32_t layer, 215 void DeleteTexture(uint32_t texture); 224 // texture upload / storage 296 void UnBindTexture(uint32_t texture); 360 uint32_t texture { 0 };
|
/foundation/arkui/ace_engine/frameworks/core/components/xcomponent/ |
H A D | xcomponent_component.h | 208 void SetTexture(RefPtr<NativeTexture> texture) in SetTexture() argument 210 texture_ = texture; in SetTexture()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_texture.h | 52 void SetTexture(uint32_t texture) in SetTexture() argument 54 texture_ = texture; in SetTexture()
|