15 #include <vsg/vk/Device.h>
16 #include <vsg/vk/vk_buffer.h>
29 VkSamplerCreateFlags flags = 0;
30 VkFilter magFilter = VK_FILTER_LINEAR;
31 VkFilter minFilter = VK_FILTER_LINEAR;
32 VkSamplerMipmapMode mipmapMode = VK_SAMPLER_MIPMAP_MODE_LINEAR;
33 VkSamplerAddressMode addressModeU = VK_SAMPLER_ADDRESS_MODE_REPEAT;
34 VkSamplerAddressMode addressModeV = VK_SAMPLER_ADDRESS_MODE_REPEAT;
35 VkSamplerAddressMode addressModeW = VK_SAMPLER_ADDRESS_MODE_REPEAT;
36 float mipLodBias = 0.0f;
37 VkBool32 anisotropyEnable = VK_FALSE;
38 float maxAnisotropy = 0.0f;
39 VkBool32 compareEnable = VK_FALSE;
40 VkCompareOp compareOp = VK_COMPARE_OP_NEVER;
43 VkBorderColor borderColor = VK_BORDER_COLOR_INT_OPAQUE_BLACK;
44 VkBool32 unnormalizedCoordinates = VK_FALSE;
47 VkSampler vk(uint32_t deviceID)
const {
return _implementation[deviceID]->_sampler; }
51 void read(
Input& input)
override;
52 void write(
Output& output)
const override;
56 void release(uint32_t deviceID) { _implementation[deviceID] = {}; }
57 void release() { _implementation.clear(); }
Device encapsulate vkDeivce, a logical handle to the PhysicalDevice with capabilities specified durin...
Definition: Device.h:37
Sampler encapsulates the VkSampler and the VkSamplerCreateInfo settings used to set it up.
Definition: Sampler.h:24
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 support.
Definition: vk_buffer.h:28