The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

c/comp: Init repeat sampler for swapchain images.

authored by

Lubosz Sarnecki and committed by
Jakob Bornecrantz
5777d829 7035490e

+4
+1
src/xrt/compositor/main/comp_compositor.h
··· 47 47 { 48 48 //! Sampler used by the renderer and distortion code. 49 49 VkSampler sampler; 50 + VkSampler repeat_sampler; 50 51 //! Views used by the renderer and distortion code, for each array 51 52 //! layer. 52 53 struct
+3
src/xrt/compositor/main/comp_swapchain.c
··· 129 129 U_TYPED_ARRAY_CALLOC(VkImageView, info->array_size); 130 130 sc->images[i].array_size = info->array_size; 131 131 132 + vk_create_sampler(&c->vk, VK_SAMPLER_ADDRESS_MODE_REPEAT, 133 + &sc->images[i].repeat_sampler); 134 + 132 135 vk_create_sampler(&c->vk, VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE, 133 136 &sc->images[i].sampler); 134 137