[{"data":1,"prerenderedAt":716},["ShallowReactive",2],{"PSxpEp6NFd":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":715,"_id":4},"VkImageViewSlicedCreateInfoEXT","Specify the subset of 3D slices of an image view","VK_EXT_image_sliced_view_of_3d","structs",[],{"type":10,"children":11,"toc":713},"root",[12,52,64,304,368,407,426,461,509,680,707],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,25,27,33,35,41,43,50],{"type":18,"value":19},"text","The range of 3D slices for the created image view ",{"type":13,"tag":21,"props":22,"children":24},"normative",{"type":23},"can",[],{"type":18,"value":26}," be restricted to a\nsubset of the parent image’s Z range by adding a\n",{"type":13,"tag":28,"props":29,"children":31},"code",{"className":30},[],[32],{"type":18,"value":4},{"type":18,"value":34}," structure to the ",{"type":13,"tag":28,"props":36,"children":38},{"className":37},[],[39],{"type":18,"value":40},"pNext",{"type":18,"value":42}," chain of\n",{"type":13,"tag":44,"props":45,"children":47},"a",{"href":46},"/man/VkImageViewCreateInfo",[48],{"type":18,"value":49},"VkImageViewCreateInfo",{"type":18,"value":51},".",{"type":13,"tag":14,"props":53,"children":54},{},[55,57,62],{"type":18,"value":56},"The ",{"type":13,"tag":28,"props":58,"children":60},{"className":59},[],[61],{"type":18,"value":4},{"type":18,"value":63}," structure is defined as:",{"type":13,"tag":65,"props":66,"children":67},"code-group",{},[68,167],{"type":13,"tag":69,"props":70,"children":76},"pre",{"className":71,"code":72,"filename":73,"language":74,"meta":75,"style":75},"language-c shiki shiki-themes github-light-default github-dark-default","typedef struct VkImageViewSlicedCreateInfoEXT {\n VkStructureType sType;\n const void* pNext;\n uint32_t sliceOffset;\n uint32_t sliceCount;\n} VkImageViewSlicedCreateInfoEXT;\n","C","c","",[77],{"type":13,"tag":28,"props":78,"children":79},{"__ignoreMap":75},[80,103,112,131,145,158],{"type":13,"tag":81,"props":82,"children":85},"span",{"class":83,"line":84},"line",1,[86,92,97],{"type":13,"tag":81,"props":87,"children":89},{"style":88},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[90],{"type":18,"value":91},"typedef",{"type":13,"tag":81,"props":93,"children":94},{"style":88},[95],{"type":18,"value":96}," struct",{"type":13,"tag":81,"props":98,"children":100},{"style":99},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[101],{"type":18,"value":102}," VkImageViewSlicedCreateInfoEXT {\n",{"type":13,"tag":81,"props":104,"children":106},{"class":83,"line":105},2,[107],{"type":13,"tag":81,"props":108,"children":109},{"style":99},[110],{"type":18,"value":111}," VkStructureType sType;\n",{"type":13,"tag":81,"props":113,"children":115},{"class":83,"line":114},3,[116,121,126],{"type":13,"tag":81,"props":117,"children":118},{"style":88},[119],{"type":18,"value":120}," const",{"type":13,"tag":81,"props":122,"children":123},{"style":88},[124],{"type":18,"value":125}," void*",{"type":13,"tag":81,"props":127,"children":128},{"style":99},[129],{"type":18,"value":130}," pNext;\n",{"type":13,"tag":81,"props":132,"children":134},{"class":83,"line":133},4,[135,140],{"type":13,"tag":81,"props":136,"children":137},{"style":88},[138],{"type":18,"value":139}," uint32_t",{"type":13,"tag":81,"props":141,"children":142},{"style":99},[143],{"type":18,"value":144}," sliceOffset;\n",{"type":13,"tag":81,"props":146,"children":148},{"class":83,"line":147},5,[149,153],{"type":13,"tag":81,"props":150,"children":151},{"style":88},[152],{"type":18,"value":139},{"type":13,"tag":81,"props":154,"children":155},{"style":99},[156],{"type":18,"value":157}," sliceCount;\n",{"type":13,"tag":81,"props":159,"children":161},{"class":83,"line":160},6,[162],{"type":13,"tag":81,"props":163,"children":164},{"style":99},[165],{"type":18,"value":166},"} VkImageViewSlicedCreateInfoEXT;\n",{"type":13,"tag":69,"props":168,"children":173},{"className":169,"code":170,"filename":171,"language":172,"meta":75,"style":75},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct ImageViewSlicedCreateInfoEXT {\n s_type: vk::StructureType,\n p_next: *const c_void,\n slice_offset: u32,\n slice_count: u32,\n}\n","Rust","rs",[174],{"type":13,"tag":28,"props":175,"children":176},{"__ignoreMap":75},[177,200,233,255,276,296],{"type":13,"tag":81,"props":178,"children":179},{"class":83,"line":84},[180,185,189,195],{"type":13,"tag":81,"props":181,"children":182},{"style":88},[183],{"type":18,"value":184},"pub",{"type":13,"tag":81,"props":186,"children":187},{"style":88},[188],{"type":18,"value":96},{"type":13,"tag":81,"props":190,"children":192},{"style":191},"--shiki-default:#953800;--shiki-dark:#FFA657",[193],{"type":18,"value":194}," ImageViewSlicedCreateInfoEXT",{"type":13,"tag":81,"props":196,"children":197},{"style":99},[198],{"type":18,"value":199}," {\n",{"type":13,"tag":81,"props":201,"children":202},{"class":83,"line":105},[203,208,213,218,223,228],{"type":13,"tag":81,"props":204,"children":205},{"style":99},[206],{"type":18,"value":207}," s_type",{"type":13,"tag":81,"props":209,"children":210},{"style":88},[211],{"type":18,"value":212},":",{"type":13,"tag":81,"props":214,"children":215},{"style":191},[216],{"type":18,"value":217}," vk",{"type":13,"tag":81,"props":219,"children":220},{"style":88},[221],{"type":18,"value":222},"::",{"type":13,"tag":81,"props":224,"children":225},{"style":191},[226],{"type":18,"value":227},"StructureType",{"type":13,"tag":81,"props":229,"children":230},{"style":99},[231],{"type":18,"value":232},",\n",{"type":13,"tag":81,"props":234,"children":235},{"class":83,"line":114},[236,241,245,250],{"type":13,"tag":81,"props":237,"children":238},{"style":99},[239],{"type":18,"value":240}," p_next",{"type":13,"tag":81,"props":242,"children":243},{"style":88},[244],{"type":18,"value":212},{"type":13,"tag":81,"props":246,"children":247},{"style":88},[248],{"type":18,"value":249}," *const",{"type":13,"tag":81,"props":251,"children":252},{"style":99},[253],{"type":18,"value":254}," c_void,\n",{"type":13,"tag":81,"props":256,"children":257},{"class":83,"line":133},[258,263,267,272],{"type":13,"tag":81,"props":259,"children":260},{"style":99},[261],{"type":18,"value":262}," slice_offset",{"type":13,"tag":81,"props":264,"children":265},{"style":88},[266],{"type":18,"value":212},{"type":13,"tag":81,"props":268,"children":269},{"style":191},[270],{"type":18,"value":271}," u32",{"type":13,"tag":81,"props":273,"children":274},{"style":99},[275],{"type":18,"value":232},{"type":13,"tag":81,"props":277,"children":278},{"class":83,"line":147},[279,284,288,292],{"type":13,"tag":81,"props":280,"children":281},{"style":99},[282],{"type":18,"value":283}," slice_count",{"type":13,"tag":81,"props":285,"children":286},{"style":88},[287],{"type":18,"value":212},{"type":13,"tag":81,"props":289,"children":290},{"style":191},[291],{"type":18,"value":271},{"type":13,"tag":81,"props":293,"children":294},{"style":99},[295],{"type":18,"value":232},{"type":13,"tag":81,"props":297,"children":298},{"class":83,"line":160},[299],{"type":13,"tag":81,"props":300,"children":301},{"style":99},[302],{"type":18,"value":303},"}\n",{"type":13,"tag":305,"props":306,"children":307},"ul",{},[308,328,346,357],{"type":13,"tag":309,"props":310,"children":311},"li",{},[312,318,320,326],{"type":13,"tag":28,"props":313,"children":315},{"className":314},[],[316],{"type":18,"value":317},"sType",{"type":18,"value":319}," is a ",{"type":13,"tag":44,"props":321,"children":323},{"href":322},"/man/VkStructureType",[324],{"type":18,"value":325},"VkStructureType",{"type":18,"value":327}," value identifying this structure.",{"type":13,"tag":309,"props":329,"children":330},{},[331,336,338,344],{"type":13,"tag":28,"props":332,"children":334},{"className":333},[],[335],{"type":18,"value":40},{"type":18,"value":337}," is ",{"type":13,"tag":28,"props":339,"children":341},{"className":340},[],[342],{"type":18,"value":343},"NULL",{"type":18,"value":345}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":309,"props":347,"children":348},{},[349,355],{"type":13,"tag":28,"props":350,"children":352},{"className":351},[],[353],{"type":18,"value":354},"sliceOffset",{"type":18,"value":356}," is the Z-offset for the first 3D slice accessible to\nthe image view.",{"type":13,"tag":309,"props":358,"children":359},{},[360,366],{"type":13,"tag":28,"props":361,"children":363},{"className":362},[],[364],{"type":18,"value":365},"sliceCount",{"type":18,"value":367}," is the number of 3D slices accessible to the image\nview.",{"type":13,"tag":14,"props":369,"children":370},{},[371,373,377,379,384,386,391,393,398,400,405],{"type":18,"value":372},"When this structure is chained to ",{"type":13,"tag":44,"props":374,"children":375},{"href":46},[376],{"type":18,"value":49},{"type":18,"value":378}," the\n",{"type":13,"tag":28,"props":380,"children":382},{"className":381},[],[383],{"type":18,"value":354},{"type":18,"value":385}," field is treated as a Z-offset for the sliced view and\n",{"type":13,"tag":28,"props":387,"children":389},{"className":388},[],[390],{"type":18,"value":365},{"type":18,"value":392}," specifies the range.\nShader accesses using a Z coordinate of 0 will access the depth slice\ncorresponding to ",{"type":13,"tag":28,"props":394,"children":396},{"className":395},[],[397],{"type":18,"value":354},{"type":18,"value":399}," in the image, and in a shader, the\nmaximum in-bounds Z coordinate for the view is ",{"type":13,"tag":28,"props":401,"children":403},{"className":402},[],[404],{"type":18,"value":365},{"type":18,"value":406}," - 1.",{"type":13,"tag":14,"props":408,"children":409},{},[410,412,416,418,424],{"type":18,"value":411},"A sliced 3D view ",{"type":13,"tag":21,"props":413,"children":415},{"type":414},"must",[],{"type":18,"value":417}," only be used with a single mip level.\nThe slice coordinates are integer coordinates within the\n",{"type":13,"tag":28,"props":419,"children":421},{"className":420},[],[422],{"type":18,"value":423},"subresourceRange.baseMipLevel",{"type":18,"value":425}," used to create the image view.",{"type":13,"tag":14,"props":427,"children":428},{},[429,431,437,439,445,447,452,454,460],{"type":18,"value":430},"The effective view depth is equal to ",{"type":13,"tag":28,"props":432,"children":434},{"className":433},[],[435],{"type":18,"value":436},"extent.depth",{"type":18,"value":438}," used to create the\n",{"type":13,"tag":28,"props":440,"children":442},{"className":441},[],[443],{"type":18,"value":444},"image",{"type":18,"value":446}," for this view adjusted by ",{"type":13,"tag":28,"props":448,"children":450},{"className":449},[],[451],{"type":18,"value":423},{"type":18,"value":453}," as\nspecified in ",{"type":13,"tag":44,"props":455,"children":457},{"href":456},"/chapters/resources#resources-image-mip-level-sizing",[458],{"type":18,"value":459},"Image Mip Level Sizing",{"type":18,"value":51},{"type":13,"tag":14,"props":462,"children":463},{},[464,466,471,473,479,481,486,488,493,495,500,502,508],{"type":18,"value":465},"Shader access to this image view is only affected by\n",{"type":13,"tag":28,"props":467,"children":469},{"className":468},[],[470],{"type":18,"value":4},{"type":18,"value":472}," if it uses a descriptor of type\n",{"type":13,"tag":28,"props":474,"children":476},{"className":475},[],[477],{"type":18,"value":478},"VK_DESCRIPTOR_TYPE_STORAGE_IMAGE",{"type":18,"value":480},".\nFor access using any other descriptor type, the contents of\n",{"type":13,"tag":28,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":4},{"type":18,"value":487}," are ignored; instead, ",{"type":13,"tag":28,"props":489,"children":491},{"className":490},[],[492],{"type":18,"value":354},{"type":18,"value":494},"\nis treated as being equal to 0, and ",{"type":13,"tag":28,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":365},{"type":18,"value":501}," is treated as being\nequal to ",{"type":13,"tag":28,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":507},"VK_REMAINING_3D_SLICES_EXT",{"type":18,"value":51},{"type":13,"tag":510,"props":511,"children":513},"validity-group",{"name":512},"Valid Usage",[514,538,588,620,645,659],{"type":13,"tag":515,"props":516,"children":518},"validity-field",{"name":517},"VUID-VkImageViewSlicedCreateInfoEXT-sliceOffset-07867",[519],{"type":13,"tag":14,"props":520,"children":521},{},[522,527,529,532,534],{"type":13,"tag":28,"props":523,"children":525},{"className":524},[],[526],{"type":18,"value":354},{"type":18,"value":528}," ",{"type":13,"tag":21,"props":530,"children":531},{"type":414},[],{"type":18,"value":533}," be less than the effective view depth as\nspecified in ",{"type":13,"tag":44,"props":535,"children":536},{"href":456},[537],{"type":18,"value":459},{"type":13,"tag":515,"props":539,"children":541},{"name":540},"VUID-VkImageViewSlicedCreateInfoEXT-sliceCount-07868",[542],{"type":13,"tag":14,"props":543,"children":544},{},[545,547,552,554,559,561,564,566,571,573,578,579,582,584],{"type":18,"value":546},"If ",{"type":13,"tag":28,"props":548,"children":550},{"className":549},[],[551],{"type":18,"value":365},{"type":18,"value":553}," is not ",{"type":13,"tag":28,"props":555,"children":557},{"className":556},[],[558],{"type":18,"value":507},{"type":18,"value":560},", it ",{"type":13,"tag":21,"props":562,"children":563},{"type":414},[],{"type":18,"value":565}," be\nnon-zero and ",{"type":13,"tag":28,"props":567,"children":569},{"className":568},[],[570],{"type":18,"value":354},{"type":18,"value":572}," + ",{"type":13,"tag":28,"props":574,"children":576},{"className":575},[],[577],{"type":18,"value":365},{"type":18,"value":528},{"type":13,"tag":21,"props":580,"children":581},{"type":414},[],{"type":18,"value":583}," be\nless than or equal to the effective view depth as specified in\n",{"type":13,"tag":44,"props":585,"children":586},{"href":456},[587],{"type":18,"value":459},{"type":13,"tag":515,"props":589,"children":591},{"name":590},"VUID-VkImageViewSlicedCreateInfoEXT-image-07869",[592],{"type":13,"tag":14,"props":593,"children":594},{},[595,600,601,604,606,612,614],{"type":13,"tag":28,"props":596,"children":598},{"className":597},[],[599],{"type":18,"value":444},{"type":18,"value":528},{"type":13,"tag":21,"props":602,"children":603},{"type":414},[],{"type":18,"value":605}," have been created with ",{"type":13,"tag":28,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":611},"imageType",{"type":18,"value":613}," equal to\n",{"type":13,"tag":28,"props":615,"children":617},{"className":616},[],[618],{"type":18,"value":619},"VK_IMAGE_TYPE_3D",{"type":13,"tag":515,"props":621,"children":623},{"name":622},"VUID-VkImageViewSlicedCreateInfoEXT-viewType-07909",[624],{"type":13,"tag":14,"props":625,"children":626},{},[627,633,634,637,639],{"type":13,"tag":28,"props":628,"children":630},{"className":629},[],[631],{"type":18,"value":632},"viewType",{"type":18,"value":528},{"type":13,"tag":21,"props":635,"children":636},{"type":414},[],{"type":18,"value":638}," be ",{"type":13,"tag":28,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":644},"VK_IMAGE_VIEW_TYPE_3D",{"type":13,"tag":515,"props":646,"children":648},{"name":647},"VUID-VkImageViewSlicedCreateInfoEXT-None-07870",[649],{"type":13,"tag":14,"props":650,"children":651},{},[652,654,657],{"type":18,"value":653},"The image view ",{"type":13,"tag":21,"props":655,"children":656},{"type":414},[],{"type":18,"value":658}," reference exactly 1 mip level",{"type":13,"tag":515,"props":660,"children":662},{"name":661},"VUID-VkImageViewSlicedCreateInfoEXT-None-07871",[663],{"type":13,"tag":14,"props":664,"children":665},{},[666,667,673,675,678],{"type":18,"value":56},{"type":13,"tag":44,"props":668,"children":670},{"href":669},"/man/VkPhysicalDeviceImageSlicedViewOf3DFeaturesEXT#features-imageSlicedViewOf3D",[671],{"type":18,"value":672},"imageSlicedViewOf3D",{"type":18,"value":674}," feature ",{"type":13,"tag":21,"props":676,"children":677},{"type":414},[],{"type":18,"value":679},"\nbe enabled on the device",{"type":13,"tag":510,"props":681,"children":683},{"name":682},"Valid Usage (Implicit)",[684],{"type":13,"tag":515,"props":685,"children":687},{"name":686},"VUID-VkImageViewSlicedCreateInfoEXT-sType-sType",[688],{"type":13,"tag":14,"props":689,"children":690},{},[691,696,697,700,701],{"type":13,"tag":28,"props":692,"children":694},{"className":693},[],[695],{"type":18,"value":317},{"type":18,"value":528},{"type":13,"tag":21,"props":698,"children":699},{"type":414},[],{"type":18,"value":638},{"type":13,"tag":28,"props":702,"children":704},{"className":703},[],[705],{"type":18,"value":706},"VK_STRUCTURE_TYPE_IMAGE_VIEW_SLICED_CREATE_INFO_EXT",{"type":13,"tag":708,"props":709,"children":710},"style",{},[711],{"type":18,"value":712},"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":75,"searchDepth":105,"depth":105,"links":714},[],"markdown",1729612453626]