Click or drag to resize
Ab4d.SharpEngine logo

GpuSamplerManagerGetSampler(CommonSamplerTypes) Method

Returns a VulkanSampler for the specified samplerType (used mips count is clamped by Vulkan to the value defined by texture size). The samples uses linear anisotropic filtering. To create a custom sampler use CreateSampler(Int32, SamplerAddressMode, Filter, SamplerMipmapMode, Single, BorderColor, String) method. The returned sample is owned by this VulkanSamplerFactory and is disposed when this object is disposed.

Namespace: Ab4d.SharpEngine.Utilities
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public GpuSampler GetSampler(
	CommonSamplerTypes samplerType
)

Parameters

samplerType  CommonSamplerTypes
sampler type

Return Value

GpuSampler
VulkanSampler for the specified samplerType and mipsCount
See Also