[{"data":1,"prerenderedAt":743},["ShallowReactive",2],{"rUMaefhfCJ":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":742,"_id":4},"VkResolveModeFlagBits","Bitmask indicating supported depth and stencil resolve modes","VK_VERSION_1_2","enums",[],{"type":10,"children":11,"toc":740},"root",[12,20,459,464,545,670,682,734],{"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}," indicates 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}," indicates 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}," indicates 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}," indicates 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}," indicates 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}," indicates 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},"chromaOffsetX",{"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},"chromaOffsetY",{"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":683,"props":684,"children":685},"note",{},[686],{"type":13,"tag":14,"props":687,"children":688},{},[689,691,695,696,700,702,707,709,732],{"type":18,"value":690},"No range compression or Y′C",{"type":13,"tag":617,"props":692,"children":693},{},[694],{"type":18,"value":621},{"type":18,"value":29},{"type":13,"tag":617,"props":697,"children":698},{},[699],{"type":18,"value":627},{"type":18,"value":701}," model conversion is performed by\n",{"type":13,"tag":34,"props":703,"children":705},{"className":704},[],[706],{"type":18,"value":613},{"type":18,"value":708},"; 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":710,"children":712},{"href":711},"/chapters/textures#textures-sampler-YCbCr-conversion-modelconversion",[713,715,719,720,724,726],{"type":18,"value":714},"Y′C",{"type":13,"tag":617,"props":716,"children":717},{},[718],{"type":18,"value":621},{"type":18,"value":29},{"type":13,"tag":617,"props":721,"children":722},{},[723],{"type":18,"value":627},{"type":18,"value":725}," sampler using\n",{"type":13,"tag":34,"props":727,"children":729},{"className":728},[],[730],{"type":18,"value":731},"VK_SAMPLER_YCBCR_MODEL_CONVERSION_RGB_IDENTITY",{"type":18,"value":733},".\nThe color space that the values should be in is defined by the platform and\nis not exposed via Vulkan.",{"type":13,"tag":735,"props":736,"children":737},"style",{},[738],{"type":18,"value":739},"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":741},[],"markdown",1725732583817]