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