Click or drag to resize
Ab4d.SharpEngine logo

GpuSamplerManagerGetSampler(CommonSamplerTypes, Int32) Method

Returns a VulkanSampler for the specified samplerType and the specified mipsCount. If you want to use mips count that is defined by the size of the texture, then set mipsCount to MaxMipsCount or use GetSampler(CommonSamplerTypes) method that does not require mips count parameter. This will require less samples to be created. 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: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public GpuSampler GetSampler(
	CommonSamplerTypes samplerType,
	int mipsCount
)

Parameters

samplerType  CommonSamplerTypes
sampler type
mipsCount  Int32
number of mip levels

Return Value

GpuSampler
VulkanSampler for the specified samplerType and mipsCount
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.Utilities.GpuSamplerManager.GetSampler(Ab4d.SharpEngine.Common.CommonSamplerTypes,System.Int32)"]

See Also