Home
last modified time | relevance | path

Searched refs:vec2 (Results 1 - 25 of 31) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/
H A Drender_blur_common.h53 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invTexSize) in GaussianBlurRGBA()
58 vec2 currOffset = vec2(CORE_BLUR_OFFSETS[idx]) * dir.xy; in GaussianBlurRGBA()
61 textureLod(sampler2D(tex, sampl), (vec2(fragCoord) + currOffset) * invTexSize, 0) * CORE_BLUR_WEIGHTS[idx]; in GaussianBlurRGBA()
63 textureLod(sampler2D(tex, sampl), (vec2(fragCoord) - currOffset) * invTexSize, 0) * CORE_BLUR_WEIGHTS[idx]; in GaussianBlurRGBA()
70 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 u in GaussianBlurRGB()
[all...]
H A Drender_post_process_common.h26 float getVignetteCoeff(const vec2 uv, CORE_RELAXEDP const float coeff, CORE_RELAXEDP const float power) in getVignetteCoeff()
28 vec2 uvVal = uv.xy * (vec2(1.0) - uv.yx); in getVignetteCoeff()
37 float getChromaCoeff(const vec2 uv, CORE_RELAXEDP const float chromaCoefficient) in getChromaCoeff()
40 vec2 distUv = (uv - 0.5) * 2.0; in getChromaCoeff()
47 float RandomDither(vec2 st) in RandomDither()
49 return fract(sin(dot(st.xy, vec2(12.9898, 78.233))) * 43758.5453); in RandomDither()
H A Drender_post_process_blocks.h50 in uint postProcessFlags, in vec4 vignetteFactor, in vec2 uv, in vec3 inCol, out vec3 outCol) in PostProcessVignetteBlock()
54 const vec2 uvVal = uv.xy * (vec2(1.0) - uv.yx); in PostProcessVignetteBlock()
64 void PostProcessColorFringeBlock(in uint postProcessFlags, in vec4 chromaFactor, in vec2 uv, in vec2 uvSize, in PostProcessColorFringeBlock()
71 const vec2 distUv = (uv - 0.5) * 2.0; in PostProcessColorFringeBlock()
74 const vec2 uvDistToImageCenter = chroma * uvSize; in PostProcessColorFringeBlock()
76 textureLod(imgSampler, uv - vec2(uvDistToImageCenter.x, uvDistToImageCenter.y), 0).x; in PostProcessColorFringeBlock()
78 textureLod(imgSampler, uv + vec2(uvDistToImageCenter.x, uvDistToImageCenter.y), 0).z; in PostProcessColorFringeBlock()
88 void PostProcessDitherBlock(in uint postProcessFlags, in vec4 ditherFactor, in vec2 u
[all...]
H A Drender_compatibility_common.h28 using vec2 = BASE_NS::Math::Vec2;
62 vec2 GetFragCoordUv(vec2 fragCoord, vec2 inverseTexelSize) in GetFragCoordUv()
64 vec2 uv = fragCoord * inverseTexelSize; in GetFragCoordUv()
66 uv = vec2(uv.x, 1.0 - uv.y); in GetFragCoordUv()
/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/
H A Dbloom_common.h43 vec3 bloomDownscaleWeighted9(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomDownscaleWeighted9()
45 vec3 colSample = textureLod(sampler2D(tex, sampl), uv + vec2(-0.96875, 0.96875) * invTexSize, 0).xyz; in bloomDownscaleWeighted9()
50 colSample = textureLod(sampler2D(tex, sampl), uv + vec2(0.00000, 0.93750) * invTexSize, 0).xyz; // 0.00000, 0.93750: param in bloomDownscaleWeighted9()
55 colSample = textureLod(sampler2D(tex, sampl), uv + vec2(0.96875, 0.96875) * invTexSize, 0).xyz; // 0.96875: param in bloomDownscaleWeighted9()
61 uv + vec2(-0.93750, 0.00000) * invTexSize, 0).xyz; // 0.93750, 0.00000:param in bloomDownscaleWeighted9()
72 uv + vec2(0.93750, 0.00000) * invTexSize, 0).xyz; // 0.93750, 0.00000:param in bloomDownscaleWeighted9()
78 colSample = textureLod(sampler2D(tex, sampl), uv + vec2(-0.96875, -0.96875) * invTexSize, 0).xyz; // 0.96875:param in bloomDownscaleWeighted9()
84 uv + vec2(0.00000, -0.93750) * invTexSize, 0).xyz; // 0.93750, 0.00000:param in bloomDownscaleWeighted9()
89 colSample = textureLod(sampler2D(tex, sampl), uv + vec2(0.9687 in bloomDownscaleWeighted9()
[all...]
H A Dfxaa_reference.h20 vec2 pos, in FxaaPixelShader()
24 vec2 fxaaQualityRcpFrame, in FxaaPixelShader()
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/
H A D3d_dm_shadowing_common.h27 vec2 ComputeReceiverPlaneDepthBias(const vec3 uvDdx, const vec3 uvDdy) in ComputeReceiverPlaneDepthBias()
29 vec2 uvBias; in ComputeReceiverPlaneDepthBias()
36 float GetPcfSample(sampler2DShadow shadow, const vec2 baseUv, const vec2 offset, const float compareDepth, in GetPcfSample()
37 const vec2 texelSize, const vec2 receiverPlaneDepthBias) in GetPcfSample()
39 const vec2 uvOffset = offset * texelSize; in GetPcfSample()
65 const vec2 textureSize = atlasSizeInvSize.xy; in CalcPcfShadow()
66 const vec2 texelSize = atlasSizeInvSize.zw; in CalcPcfShadow()
71 const vec2 offse in CalcPcfShadow()
[all...]
H A D3d_dm_inplace_sampling_common.h23 vec2 GetTransformedUV(const DefaultMaterialUnpackedTexTransformStruct texTransform, const vec2 uvInput) in GetTransformedUV()
25 vec2 uv; in GetTransformedUV()
43 vec2 GetFinalSamplingUV(vec4 inputUv, uint texCoordInfoBit, uint texCoordIdx) in GetFinalSamplingUV()
46 vec2 uv = (((texCoordInfo >> CORE_MATERIAL_TEXCOORD_INFO_SHIFT) & texCoordInfoBit) == texCoordInfoBit) ? inputUv.zw in GetFinalSamplingUV()
57 vec2 GetFinalSamplingUV(vec4 inputUv, uint texCoordInfoBit, uint texCoordIdx, uint instanceIdx) in GetFinalSamplingUV()
60 vec2 uv = (((texCoordInfo >> CORE_MATERIAL_TEXCOORD_INFO_SHIFT) & texCoordInfoBit) == texCoordInfoBit) ? inputUv.zw in GetFinalSamplingUV()
74 const vec2 uv = in GetBaseColorSample()
80 const vec2 uv = GetFinalSamplingUV( in GetBaseColorSample()
87 const vec2 u in GetNormalSample()
[all...]
H A D3d_dm_target_packing_common.h26 vec2 OctWrap(in vec2 v) in OctWrap()
28 return (1.0 - abs(v.yx)) * vec2((v.x >= 0.0) ? 1.0 : -1.0, (v.y >= 0.0) ? 1.0 : -1.0); in OctWrap()
30 vec2 NormalOctEncode(in vec3 normal) in NormalOctEncode()
38 vec3 NormalOctDecode(in vec2 f) in NormalOctDecode()
43 n.xy += vec2((n.x >= 0.0) ? -t : t, (n.y >= 0.0) ? -t : t); in NormalOctDecode()
120 vec2 GetPackVelocity(in vec2 velocity) in GetPackVelocity()
125 vec4 GetPackVelocityAndNormal(in vec2 velocity, in vec3 normal) in GetPackVelocityAndNormal()
170 vec2 GetUnpackVelocit
[all...]
H A D3d_dm_inplace_env_common.h47 in uint environmentType, in uint cameraIdx, in vec2 uv, in samplerCube cubeMap, in sampler2D texMap, out vec4 color) in InplaceEnvironmentBlock()
72 const vec2 texCoord = vec2(atan(worldView.z, worldView.x) + CORE3D_DEFAULT_ENV_PI, acos(worldView.y)) / in InplaceEnvironmentBlock()
73 vec2(2.0 * CORE3D_DEFAULT_ENV_PI, CORE3D_DEFAULT_ENV_PI); in InplaceEnvironmentBlock()
77 const vec2 texCoord = (uv + vec2(1.0)) * 0.5; in InplaceEnvironmentBlock()
H A D3d_dm_indirect_lighting_common.h66 vec2 ab = vec2(-1.04, 1.04) * a004 + r.zw; in EnvBRDFApprox()
78 const vec2 c0 = { -1, -0.0275 }; in EnvBRDFApproxNonmetal()
79 const vec2 c1 = { 1, 0.0425 }; in EnvBRDFApproxNonmetal()
80 vec2 r = Roughness * c0 + c1; in EnvBRDFApproxNonmetal()
H A D3d_dm_inplace_post_process.h26 void InplacePostProcess(in vec2 fragUv, inout vec4 color) in InplacePostProcess()
33 const vec2 vecCoeffs = fragUv.xy * tickDelta; in InplacePostProcess()
H A D3d_dm_inout_common.h26 layout(location = 2) in vec2 inUv0;
27 layout(location = 3) in vec2 inUv1;
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/test/simple/snippets/
H A Dcore_lerp_blocks.h15 void GenericLerp(in vec2 a, in vec2 b, in float t, out vec2 c) in GenericLerp()
H A Dcore_image_blocks.h16 void GenericImageSample(in vec2 inUv, in sampler2D inSampler, out vec4 outColor) in GenericImageSample()
/foundation/window/window_manager/test/fuzztest/wms/windowutilmath_fuzzer/
H A Dwindowutilmath_fuzzer.cpp75 void InitVector2(OHOS::Rosen::TransformHelper::Vector2& vec2, in InitVector2() argument
81 startPos += GetObject<float>(vec2.x_, data + startPos, size - startPos); in InitVector2()
82 startPos += GetObject<float>(vec2.y_, data + startPos, size - startPos); in InitVector2()
131 OHOS::Rosen::TransformHelper::Vector2 vec2; in WindowUtilMathFuzzPart1() local
132 InitVector2(vec2, data, size, startPos); in WindowUtilMathFuzzPart1()
133 OHOS::Rosen::TransformHelper::CreateTranslation(vec2); in WindowUtilMathFuzzPart1()
157 OHOS::Rosen::TransformHelper::Vector2 vec2; in WindowUtilMathFuzzPart2() local
158 InitVector2(vec2, data, size, startPos); in WindowUtilMathFuzzPart2()
159 OHOS::Rosen::TransformHelper::Transform(vec2, mat3); in WindowUtilMathFuzzPart2()
169 OHOS::Rosen::TransformHelper::GetOriginScreenPoint(vec2, mat in WindowUtilMathFuzzPart2()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample/
H A Dcube_demo.js24 attribute vec2 a_TexCoord;
27 varying vec2 v_TexCoord;
51 varying vec2 v_TexCoord;
58 vec2 u_FogDist = vec2(60,90);
H A Dpanorama_demo.js22 attribute vec2 a_TexCoord;
27 varying vec2 v_TexCoord;
38 varying vec2 v_TexCoord;
/foundation/graphic/graphic_2d/rosen/samples/webgl/entry/src/main/js/MainAbility/pages/index/sample2/
H A Dcube2_demo.js24 in vec2 a_TexCoord;
27 out vec2 v_TexCoord;
51 in vec2 v_TexCoord;
59 vec2 u_FogDist = vec2(60,90);
H A Dpanorama2_demo.js23 in vec2 a_TexCoord;
28 out vec2 v_TexCoord;
40 in vec2 v_TexCoord;
H A Dshadow2_demo.js42 in vec2 a_TexCoord;
47 out vec2 v_TexCoord;
60 in vec2 v_TexCoord;
/foundation/multimedia/image_effect/frameworks/native/render_environment/base/math/
H A Drender_vector.h21 #include "glm/vec2.hpp"
28 typedef glm::vec2 Vec2;
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/common/
H A Ddistributeddb_tools_unit_test.h96 static bool CompareVector(const std::vector<T>& vec1, const std::vector<T>& vec2) in CompareVector() argument
98 if (vec1.size() != vec2.size()) { in CompareVector()
101 for (size_t i = 0; i < vec2.size(); i++) { in CompareVector()
102 if (vec1[i] != vec2[i]) { in CompareVector()
111 static bool CompareVectorN(const std::vector<T>& vec1, const std::vector<T>& vec2, uint32_t n) in CompareVectorN() argument
113 if (n > std::min(vec1.size(), vec2.size())) { in CompareVectorN()
117 if (vec1[i] != vec2[i]) { in CompareVectorN()
/foundation/graphic/graphic_3d/lume/LumeBinaryCompile/LumeShaderCompiler/test/simple/
H A Dcore_fullscreen_template.h30 layout(location = 0) in vec2 inUv;
/foundation/multimedia/camera_framework/services/camera_service/include/
H A Dhstream_metadata.h51 void removeMetadataType(std::vector<int32_t>& vec1, std::vector<int32_t>& vec2);

Completed in 12 milliseconds

12