[{"data":1,"prerenderedAt":488},["ShallowReactive",2],{"Rxzd6jHAj6":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":487,"_id":4},"VkSamplerYcbcrRange","Range of encoded values in a color space","VK_VERSION_1_1","enums",[],{"type":10,"children":11,"toc":485},"root",[12,34,278,283,364,407,442,479],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26,28,32],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkSamplerYcbcrRange",[25],{"type":18,"value":4},{"type":18,"value":27}," enum describes whether color components are\nencoded using the full range of numerical values or whether values are\nreserved for headroom and foot room.\n",{"type":13,"tag":21,"props":29,"children":30},{"href":23},[31],{"type":18,"value":4},{"type":18,"value":33}," is defined as:",{"type":13,"tag":35,"props":36,"children":37},"code-group",{},[38,130],{"type":13,"tag":39,"props":40,"children":46},"pre",{"className":41,"code":42,"filename":43,"language":44,"meta":45,"style":45},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkSamplerYcbcrRange {\n VK_SAMPLER_YCBCR_RANGE_ITU_FULL = 0,\n VK_SAMPLER_YCBCR_RANGE_ITU_NARROW = 1,\n} VkSamplerYcbcrRange;\n","C","c","",[47],{"type":13,"tag":48,"props":49,"children":50},"code",{"__ignoreMap":45},[51,74,99,121],{"type":13,"tag":52,"props":53,"children":56},"span",{"class":54,"line":55},"line",1,[57,63,68],{"type":13,"tag":52,"props":58,"children":60},{"style":59},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[61],{"type":18,"value":62},"typedef",{"type":13,"tag":52,"props":64,"children":65},{"style":59},[66],{"type":18,"value":67}," enum",{"type":13,"tag":52,"props":69,"children":71},{"style":70},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[72],{"type":18,"value":73}," VkSamplerYcbcrRange {\n",{"type":13,"tag":52,"props":75,"children":77},{"class":54,"line":76},2,[78,83,88,94],{"type":13,"tag":52,"props":79,"children":80},{"style":70},[81],{"type":18,"value":82}," VK_SAMPLER_YCBCR_RANGE_ITU_FULL ",{"type":13,"tag":52,"props":84,"children":85},{"style":59},[86],{"type":18,"value":87},"=",{"type":13,"tag":52,"props":89,"children":91},{"style":90},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[92],{"type":18,"value":93}," 0",{"type":13,"tag":52,"props":95,"children":96},{"style":70},[97],{"type":18,"value":98},",\n",{"type":13,"tag":52,"props":100,"children":102},{"class":54,"line":101},3,[103,108,112,117],{"type":13,"tag":52,"props":104,"children":105},{"style":70},[106],{"type":18,"value":107}," VK_SAMPLER_YCBCR_RANGE_ITU_NARROW ",{"type":13,"tag":52,"props":109,"children":110},{"style":59},[111],{"type":18,"value":87},{"type":13,"tag":52,"props":113,"children":114},{"style":90},[115],{"type":18,"value":116}," 1",{"type":13,"tag":52,"props":118,"children":119},{"style":70},[120],{"type":18,"value":98},{"type":13,"tag":52,"props":122,"children":124},{"class":54,"line":123},4,[125],{"type":13,"tag":52,"props":126,"children":127},{"style":70},[128],{"type":18,"value":129},"} VkSamplerYcbcrRange;\n",{"type":13,"tag":39,"props":131,"children":136},{"className":132,"code":133,"filename":134,"language":135,"meta":45,"style":45},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct SamplerYcbcrRange(u32);\nimpl SamplerYcbcrRange {\n pub const ITU_FULL: Self = 0;\n pub const ITU_NARROW: Self = 1;\n}\n","Rust","rs",[137],{"type":13,"tag":48,"props":138,"children":139},{"__ignoreMap":45},[140,174,191,233,269],{"type":13,"tag":52,"props":141,"children":142},{"class":54,"line":55},[143,148,153,159,164,169],{"type":13,"tag":52,"props":144,"children":145},{"style":59},[146],{"type":18,"value":147},"pub",{"type":13,"tag":52,"props":149,"children":150},{"style":59},[151],{"type":18,"value":152}," struct",{"type":13,"tag":52,"props":154,"children":156},{"style":155},"--shiki-default:#953800;--shiki-dark:#FFA657",[157],{"type":18,"value":158}," SamplerYcbcrRange",{"type":13,"tag":52,"props":160,"children":161},{"style":70},[162],{"type":18,"value":163},"(",{"type":13,"tag":52,"props":165,"children":166},{"style":155},[167],{"type":18,"value":168},"u32",{"type":13,"tag":52,"props":170,"children":171},{"style":70},[172],{"type":18,"value":173},");\n",{"type":13,"tag":52,"props":175,"children":176},{"class":54,"line":76},[177,182,186],{"type":13,"tag":52,"props":178,"children":179},{"style":59},[180],{"type":18,"value":181},"impl",{"type":13,"tag":52,"props":183,"children":184},{"style":155},[185],{"type":18,"value":158},{"type":13,"tag":52,"props":187,"children":188},{"style":70},[189],{"type":18,"value":190}," {\n",{"type":13,"tag":52,"props":192,"children":193},{"class":54,"line":101},[194,199,204,209,214,219,224,228],{"type":13,"tag":52,"props":195,"children":196},{"style":59},[197],{"type":18,"value":198}," pub",{"type":13,"tag":52,"props":200,"children":201},{"style":59},[202],{"type":18,"value":203}," const",{"type":13,"tag":52,"props":205,"children":206},{"style":90},[207],{"type":18,"value":208}," ITU_FULL",{"type":13,"tag":52,"props":210,"children":211},{"style":59},[212],{"type":18,"value":213},":",{"type":13,"tag":52,"props":215,"children":216},{"style":90},[217],{"type":18,"value":218}," Self",{"type":13,"tag":52,"props":220,"children":221},{"style":59},[222],{"type":18,"value":223}," =",{"type":13,"tag":52,"props":225,"children":226},{"style":90},[227],{"type":18,"value":93},{"type":13,"tag":52,"props":229,"children":230},{"style":70},[231],{"type":18,"value":232},";\n",{"type":13,"tag":52,"props":234,"children":235},{"class":54,"line":123},[236,240,244,249,253,257,261,265],{"type":13,"tag":52,"props":237,"children":238},{"style":59},[239],{"type":18,"value":198},{"type":13,"tag":52,"props":241,"children":242},{"style":59},[243],{"type":18,"value":203},{"type":13,"tag":52,"props":245,"children":246},{"style":90},[247],{"type":18,"value":248}," ITU_NARROW",{"type":13,"tag":52,"props":250,"children":251},{"style":59},[252],{"type":18,"value":213},{"type":13,"tag":52,"props":254,"children":255},{"style":90},[256],{"type":18,"value":218},{"type":13,"tag":52,"props":258,"children":259},{"style":59},[260],{"type":18,"value":223},{"type":13,"tag":52,"props":262,"children":263},{"style":90},[264],{"type":18,"value":116},{"type":13,"tag":52,"props":266,"children":267},{"style":70},[268],{"type":18,"value":232},{"type":13,"tag":52,"props":270,"children":272},{"class":54,"line":271},5,[273],{"type":13,"tag":52,"props":274,"children":275},{"style":70},[276],{"type":18,"value":277},"}\n",{"type":13,"tag":14,"props":279,"children":280},{},[281],{"type":18,"value":282},"or the equivalent",{"type":13,"tag":35,"props":284,"children":285},{},[286,312],{"type":13,"tag":39,"props":287,"children":289},{"className":41,"code":288,"filename":43,"language":44,"meta":45,"style":45},"#define VkSamplerYcbcrRangeKHR VkSamplerYcbcrRange\n",[290],{"type":13,"tag":48,"props":291,"children":292},{"__ignoreMap":45},[293],{"type":13,"tag":52,"props":294,"children":295},{"class":54,"line":55},[296,301,307],{"type":13,"tag":52,"props":297,"children":298},{"style":59},[299],{"type":18,"value":300},"#define",{"type":13,"tag":52,"props":302,"children":304},{"style":303},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[305],{"type":18,"value":306}," VkSamplerYcbcrRangeKHR",{"type":13,"tag":52,"props":308,"children":309},{"style":70},[310],{"type":18,"value":311}," VkSamplerYcbcrRange\n",{"type":13,"tag":39,"props":313,"children":315},{"className":132,"code":314,"filename":134,"language":135,"meta":45,"style":45},"const SamplerYcbcrRangeKHR: _ = vk::SamplerYcbcrRange;\n",[316],{"type":13,"tag":48,"props":317,"children":318},{"__ignoreMap":45},[319],{"type":13,"tag":52,"props":320,"children":321},{"class":54,"line":55},[322,327,332,336,341,345,350,355,360],{"type":13,"tag":52,"props":323,"children":324},{"style":59},[325],{"type":18,"value":326},"const",{"type":13,"tag":52,"props":328,"children":329},{"style":90},[330],{"type":18,"value":331}," SamplerYcbcrRangeKHR",{"type":13,"tag":52,"props":333,"children":334},{"style":59},[335],{"type":18,"value":213},{"type":13,"tag":52,"props":337,"children":338},{"style":70},[339],{"type":18,"value":340}," _ ",{"type":13,"tag":52,"props":342,"children":343},{"style":59},[344],{"type":18,"value":87},{"type":13,"tag":52,"props":346,"children":347},{"style":155},[348],{"type":18,"value":349}," vk",{"type":13,"tag":52,"props":351,"children":352},{"style":59},[353],{"type":18,"value":354},"::",{"type":13,"tag":52,"props":356,"children":357},{"style":155},[358],{"type":18,"value":359},"SamplerYcbcrRange",{"type":13,"tag":52,"props":361,"children":362},{"style":70},[363],{"type":18,"value":232},{"type":13,"tag":365,"props":366,"children":367},"ul",{},[368,388],{"type":13,"tag":369,"props":370,"children":371},"li",{},[372,378,380,386],{"type":13,"tag":48,"props":373,"children":375},{"className":374},[],[376],{"type":18,"value":377},"VK_SAMPLER_YCBCR_RANGE_ITU_FULL",{"type":18,"value":379}," specifies that the full range of\nthe encoded values are valid and interpreted according to the ITU ",{"type":13,"tag":48,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"full range",{"type":18,"value":387}," quantization rules.",{"type":13,"tag":369,"props":389,"children":390},{},[391,397,399,405],{"type":13,"tag":48,"props":392,"children":394},{"className":393},[],[395],{"type":18,"value":396},"VK_SAMPLER_YCBCR_RANGE_ITU_NARROW",{"type":18,"value":398}," specifies that headroom and foot\nroom are reserved in the numerical range of encoded values, and the\nremaining values are expanded according to the ITU ",{"type":13,"tag":48,"props":400,"children":402},{"className":401},[],[403],{"type":18,"value":404},"narrow range",{"type":18,"value":406},"\nquantization rules.",{"type":13,"tag":14,"props":408,"children":409},{},[410,412,432,434,440],{"type":18,"value":411},"The formulae for these conversions is described in the\n",{"type":13,"tag":21,"props":413,"children":415},{"href":414},"/chapters/textures#textures-sampler-YCbCr-conversion-rangeexpand",[416,418,424,425,430],{"type":18,"value":417},"Sampler Y′C",{"type":13,"tag":419,"props":420,"children":421},"sub",{},[422],{"type":18,"value":423},"B",{"type":18,"value":43},{"type":13,"tag":419,"props":426,"children":427},{},[428],{"type":18,"value":429},"R",{"type":18,"value":431}," Range\nExpansion",{"type":18,"value":433}," section of the ",{"type":13,"tag":21,"props":435,"children":437},{"href":436},"/chapters/textures#textures",[438],{"type":18,"value":439},"Image Operations",{"type":18,"value":441}," chapter.",{"type":13,"tag":14,"props":443,"children":444},{},[445,447,453,455,461,463,469,471,477],{"type":18,"value":446},"No range modification takes place if ",{"type":13,"tag":48,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":452},"ycbcrModel",{"type":18,"value":454}," is\n",{"type":13,"tag":48,"props":456,"children":458},{"className":457},[],[459],{"type":18,"value":460},"VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY",{"type":18,"value":462},"; the ",{"type":13,"tag":48,"props":464,"children":466},{"className":465},[],[467],{"type":18,"value":468},"ycbcrRange",{"type":18,"value":470},"\nfield of ",{"type":13,"tag":21,"props":472,"children":474},{"href":473},"/man/VkSamplerYcbcrConversionCreateInfo",[475],{"type":18,"value":476},"VkSamplerYcbcrConversionCreateInfo",{"type":18,"value":478}," is ignored in this case.",{"type":13,"tag":480,"props":481,"children":482},"style",{},[483],{"type":18,"value":484},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":45,"searchDepth":76,"depth":76,"links":486},[],"markdown",1725732584927]