From 84fcf6fb4e409ea0cca87b3a223334b6c31a1917 Mon Sep 17 00:00:00 2001 From: Petr Kraus Date: Mon, 8 Apr 2019 02:27:38 +0200 Subject: [PATCH] Remove sampler descriptions already in VU (#648) - Remove bunch of `unnormalizedCoordinates` stuff that is already VU - Fix formatting of shader related `unnormalizedCoordinates` restrictions --- chapters/samplers.txt | 31 +++++++++---------------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/chapters/samplers.txt b/chapters/samplers.txt index 22fafae4..d73629c7 100644 --- a/chapters/samplers.txt +++ b/chapters/samplers.txt @@ -93,31 +93,18 @@ include::../api/structs/VkSamplerCreateInfo.txt[] y and z. When set to ename:VK_FALSE the range of image coordinates is zero to one. - When pname:unnormalizedCoordinates is ename:VK_TRUE, samplers have the - following requirements: - ** pname:minFilter and pname:magFilter must: be equal. - ** pname:mipmapMode must: be ename:VK_SAMPLER_MIPMAP_MODE_NEAREST. - ** pname:minLod and pname:maxLod must: be zero. - ** pname:addressModeU and pname:addressModeV must: each be either - ename:VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_EDGE or - ename:VK_SAMPLER_ADDRESS_MODE_CLAMP_TO_BORDER. - ** pname:anisotropyEnable must: be ename:VK_FALSE. - ** pname:compareEnable must: be ename:VK_FALSE. -ifdef::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] - ** The sampler must: not enable sampler Y'C~B~C~R~ conversion. -endif::VK_VERSION_1_1,VK_KHR_sampler_ycbcr_conversion[] -ifdef::VK_EXT_fragment_density_map[] - ** pname:flags must: not include - ename:VK_SAMPLER_CREATE_SUBSAMPLED_BIT_EXT -endif::VK_EXT_fragment_density_map[] - * When pname:unnormalizedCoordinates is ename:VK_TRUE, images the sampler - is used with in the shader have the following requirements: ++ +When pname:unnormalizedCoordinates is ename:VK_TRUE, images the sampler is +used with in the shader have the following requirements: ++ ** The pname:viewType must: be either ename:VK_IMAGE_VIEW_TYPE_1D or ename:VK_IMAGE_VIEW_TYPE_2D. ** The image view must: have a single layer and a single mip level. - * When pname:unnormalizedCoordinates is ename:VK_TRUE, image built-in - functions in the shader that use the sampler have the following - requirements: ++ +When pname:unnormalizedCoordinates is ename:VK_TRUE, image built-in +functions in the shader that use the sampler have the following +requirements: ++ ** The functions must: not use projection. ** The functions must: not use offsets.