15 #include <vsg/vk/Device.h>
16 #include <vsg/vk/vk_buffer.h>
30 VkSamplerCreateFlags flags = 0;
31 VkFilter magFilter = VK_FILTER_LINEAR;
32 VkFilter minFilter = VK_FILTER_LINEAR;
33 VkSamplerMipmapMode mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR;
34 VkSamplerAddressMode addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT;
35 VkSamplerAddressMode addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT;
36 VkSamplerAddressMode addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT;
37 float mipLodBias = 0.0f;
38 VkBool32 anisotropyEnable = VK_FALSE;
39 float maxAnisotropy = 0.0f;
40 VkBool32 compareEnable = VK_FALSE;
41 VkCompareOp compareOp = VK_COMPARE_OP_NEVER;
44 VkBorderColor borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK;
45 VkBool32 unnormalizedCoordinates = VK_FALSE;
48 VkSampler vk(uint32_t deviceID)
const {
return _implementation[deviceID]->_sampler; }
52 void read(
Input& input)
override;
53 void write(
Output& output)
const override;
57 void release(uint32_t deviceID) { _implementation[deviceID] = {}; }
58 void release() { _implementation.clear(); }
Device encapsulates VkDevice, a logical handle to the PhysicalDevice with capabilities specified duri...
Definition: Device.h:37
Sampler encapsulates the VkSampler and the VkSamplerCreateInfo settings used to set it up.
Definition: Sampler.h:25
int compare(const Object &rhs_object) const override
compare two objects, return -1 if this object is less than rhs, return 0 if it's equal,...
vk_buffer that manages a single logical device supported.
Definition: vk_buffer.h:28