Vookoo
|
#include <vku.hpp>
Public Member Functions | |
SamplerMaker () | |
Default to a very basic sampler. | |
SamplerMaker & | flags (vk::SamplerCreateFlags value) |
SamplerMaker & | magFilter (vk::Filter value) |
SamplerMaker & | minFilter (vk::Filter value) |
SamplerMaker & | mipmapMode (vk::SamplerMipmapMode value) |
SamplerMaker & | addressModeU (vk::SamplerAddressMode value) |
SamplerMaker & | addressModeV (vk::SamplerAddressMode value) |
SamplerMaker & | addressModeW (vk::SamplerAddressMode value) |
SamplerMaker & | mipLodBias (float value) |
SamplerMaker & | anisotropyEnable (vk::Bool32 value) |
SamplerMaker & | maxAnisotropy (float value) |
SamplerMaker & | compareEnable (vk::Bool32 value) |
SamplerMaker & | compareOp (vk::CompareOp value) |
SamplerMaker & | minLod (float value) |
SamplerMaker & | maxLod (float value) |
SamplerMaker & | borderColor (vk::BorderColor value) |
SamplerMaker & | unnormalizedCoordinates (vk::Bool32 value) |
vk::UniqueSampler | createUnique (vk::Device device) const |
Allocate a self-deleting image. | |
vk::Sampler | create (vk::Device device) const |
Allocate a non self-deleting Sampler. | |
A class to help build samplers. Samplers tell the shader stages how to sample an image. They are used in combination with an image to make a combined image sampler used by texture() calls in shaders. They can also be passed to shaders directly for use on multiple image sources.
|
inline |
Set the magnify filter value. (for close textures) Options are: vk::Filter::eLinear and vk::Filter::eNearest
|
inline |
Set the minnify filter value. (for far away textures) Options are: vk::Filter::eLinear and vk::Filter::eNearest
|
inline |
Set the minnify filter value. (for far away textures) Options are: vk::SamplerMipmapMode::eLinear and vk::SamplerMipmapMode::eNearest