[{"data":1,"prerenderedAt":797},["ShallowReactive",2],{"rUMaefhfCJ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":796,"_id":4},"VkResolveModeFlagBits","Bitmask indicating supported depth and stencil resolve modes","VK_VERSION_1_2","enums",[],{"type":10,"children":11,"toc":794},"root",[12,20,459,464,545,670,682,694,736,788],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17],{"type":18,"value":19},"text","Multisample values in a multisample attachment are combined according to the\nresolve mode used:",{"type":13,"tag":21,"props":22,"children":23},"code-group",{},[24,199],{"type":13,"tag":25,"props":26,"children":32},"pre",{"className":27,"code":28,"filename":29,"language":30,"meta":31,"style":31},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkResolveModeFlagBits {\n VK_RESOLVE_MODE_NONE = 0,\n VK_RESOLVE_MODE_SAMPLE_ZERO_BIT = 0x00000001,\n VK_RESOLVE_MODE_AVERAGE_BIT = 0x00000002,\n VK_RESOLVE_MODE_MIN_BIT = 0x00000004,\n VK_RESOLVE_MODE_MAX_BIT = 0x00000008,\n} VkResolveModeFlagBits;\n","C","c","",[33],{"type":13,"tag":34,"props":35,"children":36},"code",{"__ignoreMap":31},[37,60,85,112,138,164,190],{"type":13,"tag":38,"props":39,"children":42},"span",{"class":40,"line":41},"line",1,[43,49,54],{"type":13,"tag":38,"props":44,"children":46},{"style":45},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[47],{"type":18,"value":48},"typedef",{"type":13,"tag":38,"props":50,"children":51},{"style":45},[52],{"type":18,"value":53}," enum",{"type":13,"tag":38,"props":55,"children":57},{"style":56},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[58],{"type":18,"value":59}," VkResolveModeFlagBits {\n",{"type":13,"tag":38,"props":61,"children":63},{"class":40,"line":62},2,[64,69,74,80],{"type":13,"tag":38,"props":65,"children":66},{"style":56},[67],{"type":18,"value":68}," VK_RESOLVE_MODE_NONE ",{"type":13,"tag":38,"props":70,"children":71},{"style":45},[72],{"type":18,"value":73},"=",{"type":13,"tag":38,"props":75,"children":77},{"style":76},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[78],{"type":18,"value":79}," 0",{"type":13,"tag":38,"props":81,"children":82},{"style":56},[83],{"type":18,"value":84},",\n",{"type":13,"tag":38,"props":86,"children":88},{"class":40,"line":87},3,[89,94,98,103,108],{"type":13,"tag":38,"props":90,"children":91},{"style":56},[92],{"type":18,"value":93}," VK_RESOLVE_MODE_SAMPLE_ZERO_BIT ",{"type":13,"tag":38,"props":95,"children":96},{"style":45},[97],{"type":18,"value":73},{"type":13,"tag":38,"props":99,"children":100},{"style":45},[101],{"type":18,"value":102}," 0x",{"type":13,"tag":38,"props":104,"children":105},{"style":76},[106],{"type":18,"value":107},"00000001",{"type":13,"tag":38,"props":109,"children":110},{"style":56},[111],{"type":18,"value":84},{"type":13,"tag":38,"props":113,"children":115},{"class":40,"line":114},4,[116,121,125,129,134],{"type":13,"tag":38,"props":117,"children":118},{"style":56},[119],{"type":18,"value":120}," VK_RESOLVE_MODE_AVERAGE_BIT ",{"type":13,"tag":38,"props":122,"children":123},{"style":45},[124],{"type":18,"value":73},{"type":13,"tag":38,"props":126,"children":127},{"style":45},[128],{"type":18,"value":102},{"type":13,"tag":38,"props":130,"children":131},{"style":76},[132],{"type":18,"value":133},"00000002",{"type":13,"tag":38,"props":135,"children":136},{"style":56},[137],{"type":18,"value":84},{"type":13,"tag":38,"props":139,"children":141},{"class":40,"line":140},5,[142,147,151,155,160],{"type":13,"tag":38,"props":143,"children":144},{"style":56},[145],{"type":18,"value":146}," VK_RESOLVE_MODE_MIN_BIT ",{"type":13,"tag":38,"props":148,"children":149},{"style":45},[150],{"type":18,"value":73},{"type":13,"tag":38,"props":152,"children":153},{"style":45},[154],{"type":18,"value":102},{"type":13,"tag":38,"props":156,"children":157},{"style":76},[158],{"type":18,"value":159},"00000004",{"type":13,"tag":38,"props":161,"children":162},{"style":56},[163],{"type":18,"value":84},{"type":13,"tag":38,"props":165,"children":167},{"class":40,"line":166},6,[168,173,177,181,186],{"type":13,"tag":38,"props":169,"children":170},{"style":56},[171],{"type":18,"value":172}," VK_RESOLVE_MODE_MAX_BIT ",{"type":13,"tag":38,"props":174,"children":175},{"style":45},[176],{"type":18,"value":73},{"type":13,"tag":38,"props":178,"children":179},{"style":45},[180],{"type":18,"value":102},{"type":13,"tag":38,"props":182,"children":183},{"style":76},[184],{"type":18,"value":185},"00000008",{"type":13,"tag":38,"props":187,"children":188},{"style":56},[189],{"type":18,"value":84},{"type":13,"tag":38,"props":191,"children":193},{"class":40,"line":192},7,[194],{"type":13,"tag":38,"props":195,"children":196},{"style":56},[197],{"type":18,"value":198},"} VkResolveModeFlagBits;\n",{"type":13,"tag":25,"props":200,"children":205},{"className":201,"code":202,"filename":203,"language":204,"meta":31,"style":31},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ResolveModeFlagBits(u32);\nimpl ResolveModeFlagBits {\n pub const NONE: Self = 0;\n pub const SAMPLE_ZERO: Self = 0x00000001;\n pub const AVERAGE: Self = 0x00000002;\n pub const MIN: Self = 0x00000004;\n pub const MAX: Self = 0x00000008;\n}\n","Rust","rs",[206],{"type":13,"tag":34,"props":207,"children":208},{"__ignoreMap":31},[209,243,260,302,339,376,413,450],{"type":13,"tag":38,"props":210,"children":211},{"class":40,"line":41},[212,217,222,228,233,238],{"type":13,"tag":38,"props":213,"children":214},{"style":45},[215],{"type":18,"value":216},"pub",{"type":13,"tag":38,"props":218,"children":219},{"style":45},[220],{"type":18,"value":221}," struct",{"type":13,"tag":38,"props":223,"children":225},{"style":224},"--shiki-default:#953800;--shiki-dark:#FFA657",[226],{"type":18,"value":227}," ResolveModeFlagBits",{"type":13,"tag":38,"props":229,"children":230},{"style":56},[231],{"type":18,"value":232},"(",{"type":13,"tag":38,"props":234,"children":235},{"style":224},[236],{"type":18,"value":237},"u32",{"type":13,"tag":38,"props":239,"children":240},{"style":56},[241],{"type":18,"value":242},");\n",{"type":13,"tag":38,"props":244,"children":245},{"class":40,"line":62},[246,251,255],{"type":13,"tag":38,"props":247,"children":248},{"style":45},[249],{"type":18,"value":250},"impl",{"type":13,"tag":38,"props":252,"children":253},{"style":224},[254],{"type":18,"value":227},{"type":13,"tag":38,"props":256,"children":257},{"style":56},[258],{"type":18,"value":259}," {\n",{"type":13,"tag":38,"props":261,"children":262},{"class":40,"line":87},[263,268,273,278,283,288,293,297],{"type":13,"tag":38,"props":264,"children":265},{"style":45},[266],{"type":18,"value":267}," pub",{"type":13,"tag":38,"props":269,"children":270},{"style":45},[271],{"type":18,"value":272}," const",{"type":13,"tag":38,"props":274,"children":275},{"style":76},[276],{"type":18,"value":277}," NONE",{"type":13,"tag":38,"props":279,"children":280},{"style":45},[281],{"type":18,"value":282},":",{"type":13,"tag":38,"props":284,"children":285},{"style":76},[286],{"type":18,"value":287}," Self",{"type":13,"tag":38,"props":289,"children":290},{"style":45},[291],{"type":18,"value":292}," =",{"type":13,"tag":38,"props":294,"children":295},{"style":76},[296],{"type":18,"value":79},{"type":13,"tag":38,"props":298,"children":299},{"style":56},[300],{"type":18,"value":301},";\n",{"type":13,"tag":38,"props":303,"children":304},{"class":40,"line":114},[305,309,313,318,322,326,330,335],{"type":13,"tag":38,"props":306,"children":307},{"style":45},[308],{"type":18,"value":267},{"type":13,"tag":38,"props":310,"children":311},{"style":45},[312],{"type":18,"value":272},{"type":13,"tag":38,"props":314,"children":315},{"style":76},[316],{"type":18,"value":317}," SAMPLE_ZERO",{"type":13,"tag":38,"props":319,"children":320},{"style":45},[321],{"type":18,"value":282},{"type":13,"tag":38,"props":323,"children":324},{"style":76},[325],{"type":18,"value":287},{"type":13,"tag":38,"props":327,"children":328},{"style":45},[329],{"type":18,"value":292},{"type":13,"tag":38,"props":331,"children":332},{"style":76},[333],{"type":18,"value":334}," 0x00000001",{"type":13,"tag":38,"props":336,"children":337},{"style":56},[338],{"type":18,"value":301},{"type":13,"tag":38,"props":340,"children":341},{"class":40,"line":140},[342,346,350,355,359,363,367,372],{"type":13,"tag":38,"props":343,"children":344},{"style":45},[345],{"type":18,"value":267},{"type":13,"tag":38,"props":347,"children":348},{"style":45},[349],{"type":18,"value":272},{"type":13,"tag":38,"props":351,"children":352},{"style":76},[353],{"type":18,"value":354}," AVERAGE",{"type":13,"tag":38,"props":356,"children":357},{"style":45},[358],{"type":18,"value":282},{"type":13,"tag":38,"props":360,"children":361},{"style":76},[362],{"type":18,"value":287},{"type":13,"tag":38,"props":364,"children":365},{"style":45},[366],{"type":18,"value":292},{"type":13,"tag":38,"props":368,"children":369},{"style":76},[370],{"type":18,"value":371}," 0x00000002",{"type":13,"tag":38,"props":373,"children":374},{"style":56},[375],{"type":18,"value":301},{"type":13,"tag":38,"props":377,"children":378},{"class":40,"line":166},[379,383,387,392,396,400,404,409],{"type":13,"tag":38,"props":380,"children":381},{"style":45},[382],{"type":18,"value":267},{"type":13,"tag":38,"props":384,"children":385},{"style":45},[386],{"type":18,"value":272},{"type":13,"tag":38,"props":388,"children":389},{"style":76},[390],{"type":18,"value":391}," MIN",{"type":13,"tag":38,"props":393,"children":394},{"style":45},[395],{"type":18,"value":282},{"type":13,"tag":38,"props":397,"children":398},{"style":76},[399],{"type":18,"value":287},{"type":13,"tag":38,"props":401,"children":402},{"style":45},[403],{"type":18,"value":292},{"type":13,"tag":38,"props":405,"children":406},{"style":76},[407],{"type":18,"value":408}," 0x00000004",{"type":13,"tag":38,"props":410,"children":411},{"style":56},[412],{"type":18,"value":301},{"type":13,"tag":38,"props":414,"children":415},{"class":40,"line":192},[416,420,424,429,433,437,441,446],{"type":13,"tag":38,"props":417,"children":418},{"style":45},[419],{"type":18,"value":267},{"type":13,"tag":38,"props":421,"children":422},{"style":45},[423],{"type":18,"value":272},{"type":13,"tag":38,"props":425,"children":426},{"style":76},[427],{"type":18,"value":428}," MAX",{"type":13,"tag":38,"props":430,"children":431},{"style":45},[432],{"type":18,"value":282},{"type":13,"tag":38,"props":434,"children":435},{"style":76},[436],{"type":18,"value":287},{"type":13,"tag":38,"props":438,"children":439},{"style":45},[440],{"type":18,"value":292},{"type":13,"tag":38,"props":442,"children":443},{"style":76},[444],{"type":18,"value":445}," 0x00000008",{"type":13,"tag":38,"props":447,"children":448},{"style":56},[449],{"type":18,"value":301},{"type":13,"tag":38,"props":451,"children":453},{"class":40,"line":452},8,[454],{"type":13,"tag":38,"props":455,"children":456},{"style":56},[457],{"type":18,"value":458},"}\n",{"type":13,"tag":14,"props":460,"children":461},{},[462],{"type":18,"value":463},"or the equivalent",{"type":13,"tag":21,"props":465,"children":466},{},[467,493],{"type":13,"tag":25,"props":468,"children":470},{"className":27,"code":469,"filename":29,"language":30,"meta":31,"style":31},"#define VkResolveModeFlagBitsKHR VkResolveModeFlagBits\n",[471],{"type":13,"tag":34,"props":472,"children":473},{"__ignoreMap":31},[474],{"type":13,"tag":38,"props":475,"children":476},{"class":40,"line":41},[477,482,488],{"type":13,"tag":38,"props":478,"children":479},{"style":45},[480],{"type":18,"value":481},"#define",{"type":13,"tag":38,"props":483,"children":485},{"style":484},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[486],{"type":18,"value":487}," VkResolveModeFlagBitsKHR",{"type":13,"tag":38,"props":489,"children":490},{"style":56},[491],{"type":18,"value":492}," VkResolveModeFlagBits\n",{"type":13,"tag":25,"props":494,"children":496},{"className":201,"code":495,"filename":203,"language":204,"meta":31,"style":31},"const ResolveModeFlagBitsKHR: _ = vk::ResolveModeFlagBits;\n",[497],{"type":13,"tag":34,"props":498,"children":499},{"__ignoreMap":31},[500],{"type":13,"tag":38,"props":501,"children":502},{"class":40,"line":41},[503,508,513,517,522,526,531,536,541],{"type":13,"tag":38,"props":504,"children":505},{"style":45},[506],{"type":18,"value":507},"const",{"type":13,"tag":38,"props":509,"children":510},{"style":76},[511],{"type":18,"value":512}," ResolveModeFlagBitsKHR",{"type":13,"tag":38,"props":514,"children":515},{"style":45},[516],{"type":18,"value":282},{"type":13,"tag":38,"props":518,"children":519},{"style":56},[520],{"type":18,"value":521}," _ ",{"type":13,"tag":38,"props":523,"children":524},{"style":45},[525],{"type":18,"value":73},{"type":13,"tag":38,"props":527,"children":528},{"style":224},[529],{"type":18,"value":530}," vk",{"type":13,"tag":38,"props":532,"children":533},{"style":45},[534],{"type":18,"value":535},"::",{"type":13,"tag":38,"props":537,"children":538},{"style":224},[539],{"type":18,"value":540},"ResolveModeFlagBits",{"type":13,"tag":38,"props":542,"children":543},{"style":56},[544],{"type":18,"value":301},{"type":13,"tag":546,"props":547,"children":548},"ul",{},[549,561,572,583,594,605],{"type":13,"tag":550,"props":551,"children":552},"li",{},[553,559],{"type":13,"tag":34,"props":554,"children":556},{"className":555},[],[557],{"type":18,"value":558},"VK_RESOLVE_MODE_NONE",{"type":18,"value":560}," specifies that no resolve operation is done.",{"type":13,"tag":550,"props":562,"children":563},{},[564,570],{"type":13,"tag":34,"props":565,"children":567},{"className":566},[],[568],{"type":18,"value":569},"VK_RESOLVE_MODE_SAMPLE_ZERO_BIT",{"type":18,"value":571}," specifies that result of the\nresolve operation is equal to the value of sample 0.",{"type":13,"tag":550,"props":573,"children":574},{},[575,581],{"type":13,"tag":34,"props":576,"children":578},{"className":577},[],[579],{"type":18,"value":580},"VK_RESOLVE_MODE_AVERAGE_BIT",{"type":18,"value":582}," specifies that result of the resolve\noperation is the average of the sample values.",{"type":13,"tag":550,"props":584,"children":585},{},[586,592],{"type":13,"tag":34,"props":587,"children":589},{"className":588},[],[590],{"type":18,"value":591},"VK_RESOLVE_MODE_MIN_BIT",{"type":18,"value":593}," specifies that result of the resolve\noperation is the minimum of the sample values.",{"type":13,"tag":550,"props":595,"children":596},{},[597,603],{"type":13,"tag":34,"props":598,"children":600},{"className":599},[],[601],{"type":18,"value":602},"VK_RESOLVE_MODE_MAX_BIT",{"type":18,"value":604}," specifies that result of the resolve\noperation is the maximum of the sample values.",{"type":13,"tag":550,"props":606,"children":607},{},[608,614,616,622,623,628,630,634,636,640,642,649,650,656,657,661,662,668],{"type":13,"tag":34,"props":609,"children":611},{"className":610},[],[612],{"type":18,"value":613},"VK_RESOLVE_MODE_EXTERNAL_FORMAT_DOWNSAMPLE_ANDROID",{"type":18,"value":615}," specifies that\nrather than a multisample resolve, a single sampled color attachment\nwill be downsampled into a Y′C",{"type":13,"tag":617,"props":618,"children":619},"sub",{},[620],{"type":18,"value":621},"B",{"type":18,"value":29},{"type":13,"tag":617,"props":624,"children":625},{},[626],{"type":18,"value":627},"R",{"type":18,"value":629}," format image specified by an external\nAndroid format.\nUnlike other resolve modes, implementations can resolve multiple times\nduring rendering, or even bypass writing to the color attachment\naltogether, as long as the final value is resolved to the resolve\nattachment.\nValues in the G, B, and R channels of the color\nattachment will be written to the Y, C",{"type":13,"tag":617,"props":631,"children":632},{},[633],{"type":18,"value":621},{"type":18,"value":635},", and C",{"type":13,"tag":617,"props":637,"children":638},{},[639],{"type":18,"value":627},{"type":18,"value":641},"\nchannels of the external format image, respectively.\nChroma values are calculated as if sampling with a linear filter from\nthe color attachment at full rate, at the location the chroma values sit\naccording to\n",{"type":13,"tag":643,"props":644,"children":646},"a",{"href":645},"/man/VkPhysicalDeviceExternalFormatResolvePropertiesANDROID",[647],{"type":18,"value":648},"VkPhysicalDeviceExternalFormatResolvePropertiesANDROID",{"type":18,"value":535},{"type":13,"tag":34,"props":651,"children":653},{"className":652},[],[654],{"type":18,"value":655},"externalFormatResolveChromaOffsetX",{"type":18,"value":84},{"type":13,"tag":643,"props":658,"children":659},{"href":645},[660],{"type":18,"value":648},{"type":18,"value":535},{"type":13,"tag":34,"props":663,"children":665},{"className":664},[],[666],{"type":18,"value":667},"externalFormatResolveChromaOffsetY",{"type":18,"value":669},",\nand the chroma sample rate of the resolved image.",{"type":13,"tag":14,"props":671,"children":672},{},[673,675,680],{"type":18,"value":674},"If no resolve mode is otherwise specified, ",{"type":13,"tag":34,"props":676,"children":678},{"className":677},[],[679],{"type":18,"value":580},{"type":18,"value":681},"\nis used.",{"type":13,"tag":14,"props":683,"children":684},{},[685,687,692],{"type":18,"value":686},"If ",{"type":13,"tag":34,"props":688,"children":690},{"className":689},[],[691],{"type":18,"value":580},{"type":18,"value":693}," is used, and the source format is a\nfloating-point or normalized type, the sample values for each pixel are\nresolved with implementation-defined numerical precision.",{"type":13,"tag":14,"props":695,"children":696},{},[697,699,705,707,712,714,720,722,728,730,734],{"type":18,"value":698},"If the ",{"type":13,"tag":643,"props":700,"children":702},{"href":701},"/chapters/formats#formats-numericformat",[703],{"type":18,"value":704},"numeric format",{"type":18,"value":706}," of the resolve attachment\nuses sRGB encoding, the implementation ",{"type":13,"tag":708,"props":709,"children":711},"normative",{"type":710},"should",[],{"type":18,"value":713}," convert samples from\nnonlinear to linear before averaging samples as described in the ",{"type":13,"tag":34,"props":715,"children":717},{"className":716},[],[718],{"type":18,"value":719},"sRGB EOTF",{"type":18,"value":721}," section of the ",{"type":13,"tag":643,"props":723,"children":725},{"href":724},"/chapters/introduction#data-format",[726],{"type":18,"value":727},"Khronos Data Format Specification",{"type":18,"value":729},".\nIn this case, the implementation ",{"type":13,"tag":708,"props":731,"children":733},{"type":732},"must",[],{"type":18,"value":735}," convert the linear averaged value to\nnonlinear before writing the resolved result to resolve attachment.",{"type":13,"tag":737,"props":738,"children":739},"note",{},[740],{"type":13,"tag":14,"props":741,"children":742},{},[743,745,749,750,754,756,761,763,786],{"type":18,"value":744},"No range compression or Y′C",{"type":13,"tag":617,"props":746,"children":747},{},[748],{"type":18,"value":621},{"type":18,"value":29},{"type":13,"tag":617,"props":751,"children":752},{},[753],{"type":18,"value":627},{"type":18,"value":755}," model conversion is performed by\n",{"type":13,"tag":34,"props":757,"children":759},{"className":758},[],[760],{"type":18,"value":613},{"type":18,"value":762},"; applications have\nto do these conversions themselves.\nValue outputs are expected to match those that would be read through a\n",{"type":13,"tag":643,"props":764,"children":766},{"href":765},"/chapters/textures#textures-sampler-YCbCr-conversion-modelconversion",[767,769,773,774,778,780],{"type":18,"value":768},"Y′C",{"type":13,"tag":617,"props":770,"children":771},{},[772],{"type":18,"value":621},{"type":18,"value":29},{"type":13,"tag":617,"props":775,"children":776},{},[777],{"type":18,"value":627},{"type":18,"value":779}," sampler using\n",{"type":13,"tag":34,"props":781,"children":783},{"className":782},[],[784],{"type":18,"value":785},"VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY",{"type":18,"value":787},".\nThe color space that the values should be in is defined by the platform and\nis not exposed via Vulkan.",{"type":13,"tag":789,"props":790,"children":791},"style",{},[792],{"type":18,"value":793},"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":31,"searchDepth":62,"depth":62,"links":795},[],"markdown",1744876571007]