Home
last modified time | relevance | path

Searched refs:sampler (Results 1 - 25 of 39) sorted by relevance

12

/foundation/graphic/graphic_3d/lume/LumeRender/src/gles/
H A Dgpu_sampler_gles.cpp65 glGenSamplers(1, &plat_.sampler); in GpuSamplerGLES()
66 glSamplerParameteri(plat_.sampler, GL_TEXTURE_MAG_FILTER, magFilter[desc.magFilter]); in GpuSamplerGLES()
68 glSamplerParameteri(plat_.sampler, GL_TEXTURE_MIN_FILTER, minFilter[desc.minFilter + desc.mipMapMode * 2]); in GpuSamplerGLES()
70 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_S, addressMode[desc.addressModeU]); in GpuSamplerGLES()
71 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_T, addressMode[desc.addressModeV]); in GpuSamplerGLES()
72 glSamplerParameteri(plat_.sampler, GL_TEXTURE_WRAP_R, addressMode[desc.addressModeW]); in GpuSamplerGLES()
77 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_MODE, GL_COMPARE_REF_TO_TEXTURE); in GpuSamplerGLES()
78 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_FUNC, compareMode[desc.compareOp]); in GpuSamplerGLES()
80 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_MODE, GL_NONE); in GpuSamplerGLES()
81 glSamplerParameteri(plat_.sampler, GL_TEXTURE_COMPARE_FUN in GpuSamplerGLES()
[all...]
H A Dgpu_resource_util_gles.cpp61 void DebugSamplerNameGLES(const IDevice& device, const GpuSampler& sampler, const string_view name) in DebugSamplerNameGLES() argument
63 const GpuSamplerPlatformDataGL& plat = (static_cast<const GpuSamplerGLES&>(sampler)).GetPlatformData(); in DebugSamplerNameGLES()
64 if (plat.sampler) { in DebugSamplerNameGLES()
65 glObjectLabel(GL_SAMPLER, plat.sampler, (GLsizei)name.length(), name.data()); in DebugSamplerNameGLES()
H A Dgpu_sampler_gles.h29 uint32_t sampler { 0 };
H A Dgpu_resource_util_gles.h34 void DebugSamplerNameGLES(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_view name);
H A Ddevice_gles.h189 void BindSampler(uint32_t textureUnit, uint32_t sampler);
217 void DeleteSampler(uint32_t sampler);
299 void UnBindSampler(uint32_t sampler);
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/
H A Dgpu_resource_util_vk.cpp95 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 Dgpu_sampler_vk.cpp84 &plat_.sampler)); // pSampler in GpuSamplerVk()
89 &plat_.sampler)); // pSampler in GpuSamplerVk()
104 plat_.sampler, // sampler in ~GpuSamplerVk()
H A Dgpu_resource_util_vk.h40 void DebugSamplerNameVk(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_view name);
H A Dgpu_image_vk.h38 // Sampler conversion object, used only with immutable samplers and created sampler conversion
39 VkSampler sampler { VK_NULL_HANDLE };
/foundation/graphic/graphic_3d/lume/LumeRender/src/device/
H A Dgpu_resource_util.cpp92 void DebugSamplerName(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_view name) in DebugSamplerName() argument
97 DebugSamplerNameVk(device, sampler, name); in DebugSamplerName()
102 DebugSamplerNameGLES(device, sampler, name); in DebugSamplerName()
H A Dgpu_resource_util.h38 void DebugSamplerName(const IDevice& device, const GpuSampler& sampler, const BASE_NS::string_view name);
/foundation/graphic/graphic_3d/lume/Lume_3D/src/render/node/
H A Drender_copy_helper.h34 RENDER_NS::RenderHandle sampler; // if not given linear clamp is used member
48 RENDER_NS::RenderHandle sampler; member
H A Drender_copy_helper.cpp62 renderData_.sampler = in Init()
101 binding, RenderHandleUtil::IsValid(copyInfo_.sampler) ? copyInfo_.sampler : renderData_.sampler); in Execute()
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/webgl/include/webgl/
H A Dwebgl_sampler.h37 void SetSampler(GLuint sampler) in SetSampler() argument
39 samplerId_ = sampler; in SetSampler()
/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()
70 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invTexSize) in GaussianBlurRGB()
87 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invTexSize) in GaussianBlurRG()
104 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invTexSize) in GaussianBlurR()
121 texture2D tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec2 dir, const vec2 invTexSize) in GaussianBlurA()
138 texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const vec2 invTexSize) in GaussianBlurRGBALayer()
157 texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const vec2 invTexSize) in GaussianBlurRGBLayer()
178 texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const vec2 invTexSize) in GaussianBlurRGLayer()
199 texture2DArray tex, sampler sampl, const vec2 fragCoord, const vec2 uv, const vec3 dirLayer, const vec2 invTexSize) in GaussianBlurRLayer()
218 texture2DArray tex, sampler samp in GaussianBlurALayer()
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/node/
H A Drender_copy.h41 RenderHandle sampler; // if not given linear clamp is used member
56 RenderHandle sampler; member
H A Drender_copy.cpp79 renderData_.sampler = renderNodeContextMgr.GetGpuResourceManager().GetSamplerHandle( in Init()
129 binding, RenderHandleUtil::IsValid(copyInfo_.sampler) ? copyInfo_.sampler : renderData_.sampler); in Execute()
H A Drender_node_mip_chain_post_process.cpp516 // pick a sampler from the input resources which matches the layout location set=1, binding=0 in ParseRenderNodeInputs()
519 [](const RenderNodeResource& sampler) { in ParseRenderNodeInputs()
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()
/foundation/graphic/graphic_3d/lume/LumeRender/src/vulkan/ohos/
H A Dplatform_gpu_image_vk.cpp94 &platConversion_.sampler)); // pSampler in CreatePlatformHwBuffer()
117 if (platConversion_.sampler != VK_NULL_HANDLE) { in DestroyPlatformHwBuffer()
119 platConversion_.sampler, // sampler in DestroyPlatformHwBuffer()
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/src/
H A Dhdi_screen.cpp61 // if the sampler->GetHardwareVSyncStatus() is false, this OnVsync callback will be disable in OnVsync()
63 auto sampler = CreateVSyncSampler(); in OnVsync() local
64 if (sampler->GetHardwareVSyncStatus()) { in OnVsync()
65 bool enable = sampler->AddSample(ns); in OnVsync()
66 sampler->SetHardwareVSyncStatus(enable); in OnVsync()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/
H A Dgraphics_context.cpp151 GpuSamplerDesc sampler { in CreateDefaultSamplers()
160 sampler.minLod = 0.0f; in CreateDefaultSamplers()
161 sampler.maxLod = CUBE_MAP_LOD_COEFF; in CreateDefaultSamplers()
163 gpuResourceMgr.Create(DefaultMaterialGpuResourceConstants::CORE_DEFAULT_RADIANCE_CUBEMAP_SAMPLER, sampler)); in CreateDefaultSamplers()
166 GpuSamplerDesc sampler { in CreateDefaultSamplers()
175 gpuResourceMgr.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 gpuResourceMgr.Create(DefaultMaterialGpuResourceConstants::CORE_DEFAULT_PCF_SHADOW_SAMPLER, sampler)); in CreateDefaultSamplers()
/foundation/graphic/graphic_3d/lume/LumeRender/assets/render/shaders/common/
H A Dfxaa_reference.h23 sampler samp, in FxaaPixelShader()
H A Dbloom_common.h43 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()
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_exporter.cpp328 auto GetSamplerIndex(const RenderHandleReference& sampler) in GetSamplerIndex() argument
330 return FindOrAddIndex(usedSamplers_, sampler); in GetSamplerIndex()
338 // Helper which returns the index of the "texture", i.e. sampler and image index pair.
365 /* Generate GLTF2::Samplers from gathered sampler resource handlers. */
414 exportTexture->sampler = samplers[samplerImage.first].get(); in GenerateGltfTextures()
737 // The accessor used for animation.sampler.input requires min and max values. in AnimationInput()
810 // Remove all tracks that don't have a node, sampler or sampler is missing input or output. in CleanupAnimation()
813 return !track.channel.node || !track.sampler || !track.sampler in CleanupAnimation()
975 RenderHandleReference sampler; GetTextureIndex() local
[all...]
H A Dgltf2_loader.cpp833 if (!ParseOptionalNumber<size_t>(loadResult, samplerIndex, jsonData, "sampler", GLTF_INVALID_INDEX)) {
837 Sampler* sampler = loadResult.data->defaultSampler.get();
840 sampler = loadResult.data->samplers[samplerIndex].get();
842 SetError(loadResult, "Invalid sampler index");
846 return sampler;
870 auto sampler = TextureSampler(loadResult, jsonData);
882 const auto result = (sampler && image);
885 texture->sampler = *sampler;
994 auto sampler
[all...]

Completed in 13 milliseconds

12