/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/ |
H A D | gpu_sampler_gles.cpp | 65 glGenSamplers(1, &plat_.sampler); in RENDER_BEGIN_NAMESPACE() 66 glSamplerParameteri(plat_.sampler, GL_TEXTURE_MAG_FILTER, magFilter[desc.magFilter]); in RENDER_BEGIN_NAMESPACE() 70 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_S, addressMode[desc.addressModeU]); in RENDER_BEGIN_NAMESPACE() 71 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_T, addressMode[desc.addressModeV]); in RENDER_BEGIN_NAMESPACE() 80 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_MODE, GL_NONE); in RENDER_BEGIN_NAMESPACE() 81 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_FUNC, GL_ALWAYS); in RENDER_BEGIN_NAMESPACE() 84 glSamplerParameterf(plat_.sampler, GL_TEXTURE_MIN_LOD, desc.minLod); in RENDER_BEGIN_NAMESPACE() 85 glSamplerParameterf(plat_.sampler, GL_TEXTURE_MAX_LOD, desc.maxLod); in RENDER_BEGIN_NAMESPACE() 109 glSamplerParameterfv(plat_.sampler, GL_TEXTURE_BORDER_COLOR, color); in RENDER_BEGIN_NAMESPACE() 116 if (plat_.sampler) { in ~GpuSamplerGLES() [all …]
|
H A D | gpu_resource_util_gles.cpp | 61 void DebugSamplerNameGLES(const IDevice& device, const GpuSampler& sampler, const string_view name) in DebugSamplerNameGLES() argument 63 …const GpuSamplerPlatformDataGL& plat = (static_cast<const GpuSamplerGLES&>(sampler)).GetPlatformDa… in DebugSamplerNameGLES() 64 if (plat.sampler) { in DebugSamplerNameGLES() 65 glObjectLabel(GL_SAMPLER, plat.sampler, (GLsizei)name.length(), name.data()); in DebugSamplerNameGLES()
|
H A D | gpu_sampler_gles.h | 29 uint32_t sampler { 0 };
|
H A D | gpu_resource_util_gles.h | 34 void DebugSamplerNameGLES(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_v…
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/api/render/shaders/common/ |
H A D | render_blur_common.h | 53 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in GaussianBlurRGBA() 70 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in GaussianBlurRGB() 87 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in GaussianBlurRG() 104 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in GaussianBlurR() 121 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in GaussianBlurA() 138 …texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const… in GaussianBlurRGBALayer() 157 …texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const… in GaussianBlurRGBLayer() 241 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in SoftDownscaleRGB() 291 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in DownscaleRGBA() 297 …texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invT… in DownscaleRGBADof() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ |
H A D | gpu_resource_util_vk.cpp | 95 void DebugSamplerNameVk(const IDevice& device, const GpuSampler& sampler, const string_view name) in DebugSamplerNameVk() argument 100 …const GpuSamplerPlatformDataVk& plat = (static_cast<const GpuSamplerVk&>(sampler)).GetPlatformData… in DebugSamplerNameVk() 101 if (plat.sampler) { in DebugSamplerNameVk() 103 VK_OBJECT_TYPE_SAMPLER, VulkanHandleCast<uint64_t>(plat.sampler), name.data() }; in DebugSamplerNameVk()
|
H A D | gpu_sampler_vk.cpp | 84 &plat_.sampler)); // pSampler in GpuSamplerVk() 89 &plat_.sampler)); // pSampler in GpuSamplerVk() 104 plat_.sampler, // sampler in ~GpuSamplerVk()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/ |
H A D | render_copy_helper.cpp | 62 renderData_.sampler = in Init() 101 … binding, RenderHandleUtil::IsValid(copyInfo_.sampler) ? copyInfo_.sampler : renderData_.sampler); in Execute()
|
H A D | render_copy_helper.h | 34 RENDER_NS::RenderHandle sampler; // if not given linear clamp is used in CORE3D_BEGIN_NAMESPACE() member 48 RENDER_NS::RenderHandle sampler; in CORE3D_BEGIN_NAMESPACE() member
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/device/ |
H A D | gpu_resource_util.cpp | 92 void DebugSamplerName(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_view … in DebugSamplerName() argument 97 DebugSamplerNameVk(device, sampler, name); in DebugSamplerName() 102 DebugSamplerNameGLES(device, sampler, name); in DebugSamplerName()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ohos/ |
H A D | platform_gpu_image_vk.cpp | 94 &platConversion_.sampler)); // pSampler in CreatePlatformHwBuffer() 117 if (platConversion_.sampler != VK_NULL_HANDLE) { in DestroyPlatformHwBuffer() 119 platConversion_.sampler, // sampler in DestroyPlatformHwBuffer()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/ |
H A D | graphics_context.cpp | 151 GpuSamplerDesc sampler { in CreateDefaultSamplers() local 160 sampler.minLod = 0.0f; in CreateDefaultSamplers() 161 sampler.maxLod = CUBE_MAP_LOD_COEFF; in CreateDefaultSamplers() 163 …ceMgr.Create(DefaultMaterialGpuResourceConstants::CORE_DEFAULT_RADIANCE_CUBEMAP_SAMPLER, sampler)); in CreateDefaultSamplers() 166 GpuSamplerDesc sampler { in CreateDefaultSamplers() local 175 …ResourceMgr.Create(DefaultMaterialGpuResourceConstants::CORE_DEFAULT_VSM_SHADOW_SAMPLER, sampler)); in CreateDefaultSamplers() 177 sampler.compareOp = CompareOp::CORE_COMPARE_OP_GREATER; in CreateDefaultSamplers() 178 sampler.enableCompareOp = true; in CreateDefaultSamplers() 180 …ResourceMgr.Create(DefaultMaterialGpuResourceConstants::CORE_DEFAULT_PCF_SHADOW_SAMPLER, sampler)); in CreateDefaultSamplers()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/src/node/ |
H A D | render_copy.cpp | 79 renderData_.sampler = renderNodeContextMgr.GetGpuResourceManager().GetSamplerHandle( in Init() 129 … binding, RenderHandleUtil::IsValid(copyInfo_.sampler) ? copyInfo_.sampler : renderData_.sampler); in Execute()
|
H A D | render_copy.h | 41 RenderHandle sampler; // if not given linear clamp is used member 56 RenderHandle sampler; member
|
H A D | render_node_mip_chain_post_process.cpp | 519 [](const RenderNodeResource& sampler) { in ParseRenderNodeInputs() argument 520 return (sampler.set == 1U) && (sampler.binding == 0U) && in ParseRenderNodeInputs() 521 RenderHandleUtil::IsValid(sampler.handle) && in ParseRenderNodeInputs() 522 … RenderHandleUtil::GetHandleType(sampler.handle) == RenderHandleType::GPU_SAMPLER; in ParseRenderNodeInputs()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/ |
H A D | hdi_screen.cpp | 67 auto sampler = CreateVSyncSampler(); in OnVsync() local 68 if (sampler->GetHardwareVSyncStatus()) { in OnVsync() 69 bool enable = sampler->AddSample(ns); in OnVsync() 70 sampler->SetHardwareVSyncStatus(enable); in OnVsync()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/ |
H A D | webgl_sampler.h | 37 void SetSampler(GLuint sampler) in SetSampler() argument 39 samplerId_ = sampler; in SetSampler()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_exporter.cpp | 813 … return !track.channel.node || !track.sampler || !track.sampler->input || in CleanupAnimation() 821 … [](const unique_ptr<AnimationSampler>& sampler) { return !sampler->input || !sampler->output; }), in CleanupAnimation() argument 975 RenderHandleReference sampler; in GetTextureIndex() local 977 sampler = handle->reference; in GetTextureIndex() 979 auto const samplerIndex = (sampler) ? textureHelper.GetSamplerIndex(sampler) : 0xFFFFffff; in GetTextureIndex() 1951 for (auto const& sampler : data.samplers) { in ExportSamplers() local 1959 if (sampler->wrapS != WrapMode::REPEAT) { in ExportSamplers() 1962 if (sampler->wrapT != WrapMode::REPEAT) { in ExportSamplers() 1966 if (!sampler->name.empty()) { in ExportSamplers() 1967 jsonSampler["name"] = sampler->name; in ExportSamplers() [all …]
|
H A D | gltf2_loader.cpp | 846 return sampler; in TextureSampler() 882 const auto result = (sampler && image); in ParseTexture() 885 texture->sampler = *sampler; in ParseTexture() 994 auto sampler = make_unique<Sampler>(); in ParseSampler() local 996 sampler->magFilter = magFilter; in ParseSampler() 997 sampler->minFilter = minFilter; in ParseSampler() 998 sampler->wrapS = wrapS; in ParseSampler() 999 sampler->wrapT = wrapT; in ParseSampler() 2466 size_t sampler; in PrimitiveAttributes() local 2471 if (sampler != GLTF_INVALID_INDEX && sampler < animation.samplers.size()) { in PrimitiveAttributes() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/frameworks/opengl_wrapper/include/ |
H A D | gl32_entries.in | 670 HOOK_API_ENTRY(GLboolean, glIsSampler, GLuint sampler) 671 CALL_HOOK_API_RET(glIsSampler, sampler) 674 CALL_HOOK_API(glBindSampler, unit, sampler) 677 CALL_HOOK_API(glSamplerParameteri, sampler, pname, param) 680 CALL_HOOK_API(glSamplerParameteriv, sampler, pname, param) 683 CALL_HOOK_API(glSamplerParameterf, sampler, pname, param) 686 CALL_HOOK_API(glSamplerParameterfv, sampler, pname, param) 689 CALL_HOOK_API(glGetSamplerParameteriv, sampler, pname, params) 692 CALL_HOOK_API(glGetSamplerParameterfv, sampler, pname, params) 1055 CALL_HOOK_API(glSamplerParameterIiv, sampler, pname, param) [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/ |
H A D | bloom_common.h | 43 vec3 bloomDownscaleWeighted9(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomDownscaleWeighted9() 105 vec3 bloomDownscale9(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomDownscale9() 124 vec3 bloomDownscaleWeighted(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomDownscaleWeighted() 254 vec3 bloomDownscale(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomDownscale() 305 vec3 bloomUpscale(vec2 uv, vec2 invTexSize, texture2D tex, sampler sampl) in bloomUpscale()
|
H A D | fxaa_reference.h | 23 sampler samp, in FxaaPixelShader()
|
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/src/ |
H A D | webgl2_rendering_context_impl.cpp | 231 if (sampler == nullptr) { in DeleteSampler() 234 GLuint samplerId = sampler->GetSampler(); in DeleteSampler() 241 sampler->SetSampleUnit(0); in DeleteSampler() 249 if (sampler == nullptr) { in IsSampler() 252 GLuint samplerId = sampler->GetSampler(); in IsSampler() 263 if (sampler == nullptr) { in BindSampler() 267 GLuint samplerId = sampler->GetSampler(); in BindSampler() 272 sampler->SetSampleUnit(unit); in BindSampler() 284 if (sampler == nullptr) { in SamplerParameter() 288 GLuint samplerId = sampler->GetSampler(); in SamplerParameter() [all …]
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/shader/ |
H A D | fullscreen_fxaa.frag | 24 layout(set = 1, binding = 2) uniform sampler uSampler; 26 layout(set = 1, binding = 1) uniform sampler uSampler;
|
/ohos5.0/foundation/graphic/graphic_3d/lume/LumeRender/templates/pipelinelayouts/ |
H A D | pipeline_layout.shaderpl | 14 …{ "binding" : 3, "descriptorType" : "sampler", "descriptorCount": 1, "shaderStageFlags" : "fragmen…
|