VkCV Framework
0.0.1
CV Vulkan framework
|
#include <asset_loader.hpp>
Public Attributes | |
int | minFilter |
int | magFilter |
int | mipmapMode |
float | minLOD |
float | maxLOD |
int | addressModeU |
int | addressModeV |
int | addressModeW |
This struct defines a sampler for a texture object. All values here can directly be passed to VkSamplerCreateInfo. NOTE that glTF defines samplers based on OpenGL, which can not be directly translated to Vulkan. The vkcv::asset::Sampler struct defined here adheres to the Vulkan spec, having alerady translated the flags from glTF to Vulkan. Since glTF does not specify border sampling for more than two dimensions, the addressModeW is hardcoded to a default: VK_SAMPLER_ADDRESS_MODE_REPEAT.