[{"data":1,"prerenderedAt":758},["ShallowReactive",2],{"KckqhqisYt":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":757,"_id":4},"VkPhysicalDeviceShaderFloat16Int8Features","Structure describing features supported by VK_KHR_shader_float16_int8","VK_VERSION_1_2","structs",[],{"type":10,"children":11,"toc":755},"root",[12,28,282,287,352,413,418,657,718,749],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,26],{"type":18,"value":19},"text","The ",{"type":13,"tag":21,"props":22,"children":24},"code",{"className":23},[],[25],{"type":18,"value":4},{"type":18,"value":27}," structure is defined as:",{"type":13,"tag":29,"props":30,"children":31},"code-group",{},[32,117],{"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 struct VkPhysicalDeviceShaderFloat16Int8Features {\n VkStructureType sType;\n void* pNext;\n VkBool32 shaderFloat16;\n VkBool32 shaderInt8;\n} VkPhysicalDeviceShaderFloat16Int8Features;\n","C","c","",[41],{"type":13,"tag":21,"props":42,"children":43},{"__ignoreMap":39},[44,67,76,90,99,108],{"type":13,"tag":45,"props":46,"children":49},"span",{"class":47,"line":48},"line",1,[50,56,61],{"type":13,"tag":45,"props":51,"children":53},{"style":52},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[54],{"type":18,"value":55},"typedef",{"type":13,"tag":45,"props":57,"children":58},{"style":52},[59],{"type":18,"value":60}," struct",{"type":13,"tag":45,"props":62,"children":64},{"style":63},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[65],{"type":18,"value":66}," VkPhysicalDeviceShaderFloat16Int8Features {\n",{"type":13,"tag":45,"props":68,"children":70},{"class":47,"line":69},2,[71],{"type":13,"tag":45,"props":72,"children":73},{"style":63},[74],{"type":18,"value":75}," VkStructureType sType;\n",{"type":13,"tag":45,"props":77,"children":79},{"class":47,"line":78},3,[80,85],{"type":13,"tag":45,"props":81,"children":82},{"style":52},[83],{"type":18,"value":84}," void*",{"type":13,"tag":45,"props":86,"children":87},{"style":63},[88],{"type":18,"value":89}," pNext;\n",{"type":13,"tag":45,"props":91,"children":93},{"class":47,"line":92},4,[94],{"type":13,"tag":45,"props":95,"children":96},{"style":63},[97],{"type":18,"value":98}," VkBool32 shaderFloat16;\n",{"type":13,"tag":45,"props":100,"children":102},{"class":47,"line":101},5,[103],{"type":13,"tag":45,"props":104,"children":105},{"style":63},[106],{"type":18,"value":107}," VkBool32 shaderInt8;\n",{"type":13,"tag":45,"props":109,"children":111},{"class":47,"line":110},6,[112],{"type":13,"tag":45,"props":113,"children":114},{"style":63},[115],{"type":18,"value":116},"} VkPhysicalDeviceShaderFloat16Int8Features;\n",{"type":13,"tag":33,"props":118,"children":123},{"className":119,"code":120,"filename":121,"language":122,"meta":39,"style":39},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PhysicalDeviceShaderFloat16Int8Features {\n s_type: vk::StructureType,\n p_next: *mut c_void,\n shader_float16: vk::Bool32, // 16-bit floats (halfs) in shaders\n shader_int8: vk::Bool32, // 8-bit integers in shaders\n}\n","Rust","rs",[124],{"type":13,"tag":21,"props":125,"children":126},{"__ignoreMap":39},[127,150,183,205,241,274],{"type":13,"tag":45,"props":128,"children":129},{"class":47,"line":48},[130,135,139,145],{"type":13,"tag":45,"props":131,"children":132},{"style":52},[133],{"type":18,"value":134},"pub",{"type":13,"tag":45,"props":136,"children":137},{"style":52},[138],{"type":18,"value":60},{"type":13,"tag":45,"props":140,"children":142},{"style":141},"--shiki-default:#953800;--shiki-dark:#FFA657",[143],{"type":18,"value":144}," PhysicalDeviceShaderFloat16Int8Features",{"type":13,"tag":45,"props":146,"children":147},{"style":63},[148],{"type":18,"value":149}," {\n",{"type":13,"tag":45,"props":151,"children":152},{"class":47,"line":69},[153,158,163,168,173,178],{"type":13,"tag":45,"props":154,"children":155},{"style":63},[156],{"type":18,"value":157}," s_type",{"type":13,"tag":45,"props":159,"children":160},{"style":52},[161],{"type":18,"value":162},":",{"type":13,"tag":45,"props":164,"children":165},{"style":141},[166],{"type":18,"value":167}," vk",{"type":13,"tag":45,"props":169,"children":170},{"style":52},[171],{"type":18,"value":172},"::",{"type":13,"tag":45,"props":174,"children":175},{"style":141},[176],{"type":18,"value":177},"StructureType",{"type":13,"tag":45,"props":179,"children":180},{"style":63},[181],{"type":18,"value":182},",\n",{"type":13,"tag":45,"props":184,"children":185},{"class":47,"line":78},[186,191,195,200],{"type":13,"tag":45,"props":187,"children":188},{"style":63},[189],{"type":18,"value":190}," p_next",{"type":13,"tag":45,"props":192,"children":193},{"style":52},[194],{"type":18,"value":162},{"type":13,"tag":45,"props":196,"children":197},{"style":52},[198],{"type":18,"value":199}," *mut",{"type":13,"tag":45,"props":201,"children":202},{"style":63},[203],{"type":18,"value":204}," c_void,\n",{"type":13,"tag":45,"props":206,"children":207},{"class":47,"line":92},[208,213,217,221,225,230,235],{"type":13,"tag":45,"props":209,"children":210},{"style":63},[211],{"type":18,"value":212}," shader_float16",{"type":13,"tag":45,"props":214,"children":215},{"style":52},[216],{"type":18,"value":162},{"type":13,"tag":45,"props":218,"children":219},{"style":141},[220],{"type":18,"value":167},{"type":13,"tag":45,"props":222,"children":223},{"style":52},[224],{"type":18,"value":172},{"type":13,"tag":45,"props":226,"children":227},{"style":141},[228],{"type":18,"value":229},"Bool32",{"type":13,"tag":45,"props":231,"children":232},{"style":63},[233],{"type":18,"value":234},", ",{"type":13,"tag":45,"props":236,"children":238},{"style":237},"--shiki-default:#6E7781;--shiki-dark:#8B949E",[239],{"type":18,"value":240},"// 16-bit floats (halfs) in shaders\n",{"type":13,"tag":45,"props":242,"children":243},{"class":47,"line":101},[244,249,253,257,261,265,269],{"type":13,"tag":45,"props":245,"children":246},{"style":63},[247],{"type":18,"value":248}," shader_int8",{"type":13,"tag":45,"props":250,"children":251},{"style":52},[252],{"type":18,"value":162},{"type":13,"tag":45,"props":254,"children":255},{"style":141},[256],{"type":18,"value":167},{"type":13,"tag":45,"props":258,"children":259},{"style":52},[260],{"type":18,"value":172},{"type":13,"tag":45,"props":262,"children":263},{"style":141},[264],{"type":18,"value":229},{"type":13,"tag":45,"props":266,"children":267},{"style":63},[268],{"type":18,"value":234},{"type":13,"tag":45,"props":270,"children":271},{"style":237},[272],{"type":18,"value":273},"// 8-bit integers in shaders\n",{"type":13,"tag":45,"props":275,"children":276},{"class":47,"line":110},[277],{"type":13,"tag":45,"props":278,"children":279},{"style":63},[280],{"type":18,"value":281},"}\n",{"type":13,"tag":14,"props":283,"children":284},{},[285],{"type":18,"value":286},"or the equivalent",{"type":13,"tag":29,"props":288,"children":289},{},[290,309],{"type":13,"tag":33,"props":291,"children":293},{"className":35,"code":292,"filename":37,"language":38,"meta":39,"style":39},"typedef VkPhysicalDeviceShaderFloat16Int8Features VkPhysicalDeviceShaderFloat16Int8FeaturesKHR;\n",[294],{"type":13,"tag":21,"props":295,"children":296},{"__ignoreMap":39},[297],{"type":13,"tag":45,"props":298,"children":299},{"class":47,"line":48},[300,304],{"type":13,"tag":45,"props":301,"children":302},{"style":52},[303],{"type":18,"value":55},{"type":13,"tag":45,"props":305,"children":306},{"style":63},[307],{"type":18,"value":308}," VkPhysicalDeviceShaderFloat16Int8Features VkPhysicalDeviceShaderFloat16Int8FeaturesKHR;\n",{"type":13,"tag":33,"props":310,"children":312},{"className":119,"code":311,"filename":121,"language":122,"meta":39,"style":39},"type PhysicalDeviceShaderFloat16Int8FeaturesKHR = vk::PhysicalDeviceShaderFloat16Int8Features;\n",[313],{"type":13,"tag":21,"props":314,"children":315},{"__ignoreMap":39},[316],{"type":13,"tag":45,"props":317,"children":318},{"class":47,"line":48},[319,324,329,334,338,342,347],{"type":13,"tag":45,"props":320,"children":321},{"style":52},[322],{"type":18,"value":323},"type",{"type":13,"tag":45,"props":325,"children":326},{"style":141},[327],{"type":18,"value":328}," PhysicalDeviceShaderFloat16Int8FeaturesKHR",{"type":13,"tag":45,"props":330,"children":331},{"style":52},[332],{"type":18,"value":333}," =",{"type":13,"tag":45,"props":335,"children":336},{"style":141},[337],{"type":18,"value":167},{"type":13,"tag":45,"props":339,"children":340},{"style":52},[341],{"type":18,"value":172},{"type":13,"tag":45,"props":343,"children":344},{"style":141},[345],{"type":18,"value":346},"PhysicalDeviceShaderFloat16Int8Features",{"type":13,"tag":45,"props":348,"children":349},{"style":63},[350],{"type":18,"value":351},";\n",{"type":13,"tag":29,"props":353,"children":354},{},[355,374],{"type":13,"tag":33,"props":356,"children":358},{"className":35,"code":357,"filename":37,"language":38,"meta":39,"style":39},"typedef VkPhysicalDeviceShaderFloat16Int8Features VkPhysicalDeviceFloat16Int8FeaturesKHR;\n",[359],{"type":13,"tag":21,"props":360,"children":361},{"__ignoreMap":39},[362],{"type":13,"tag":45,"props":363,"children":364},{"class":47,"line":48},[365,369],{"type":13,"tag":45,"props":366,"children":367},{"style":52},[368],{"type":18,"value":55},{"type":13,"tag":45,"props":370,"children":371},{"style":63},[372],{"type":18,"value":373}," VkPhysicalDeviceShaderFloat16Int8Features VkPhysicalDeviceFloat16Int8FeaturesKHR;\n",{"type":13,"tag":33,"props":375,"children":377},{"className":119,"code":376,"filename":121,"language":122,"meta":39,"style":39},"type PhysicalDeviceFloat16Int8FeaturesKHR = vk::PhysicalDeviceShaderFloat16Int8Features;\n",[378],{"type":13,"tag":21,"props":379,"children":380},{"__ignoreMap":39},[381],{"type":13,"tag":45,"props":382,"children":383},{"class":47,"line":48},[384,388,393,397,401,405,409],{"type":13,"tag":45,"props":385,"children":386},{"style":52},[387],{"type":18,"value":323},{"type":13,"tag":45,"props":389,"children":390},{"style":141},[391],{"type":18,"value":392}," PhysicalDeviceFloat16Int8FeaturesKHR",{"type":13,"tag":45,"props":394,"children":395},{"style":52},[396],{"type":18,"value":333},{"type":13,"tag":45,"props":398,"children":399},{"style":141},[400],{"type":18,"value":167},{"type":13,"tag":45,"props":402,"children":403},{"style":52},[404],{"type":18,"value":172},{"type":13,"tag":45,"props":406,"children":407},{"style":141},[408],{"type":18,"value":346},{"type":13,"tag":45,"props":410,"children":411},{"style":63},[412],{"type":18,"value":351},{"type":13,"tag":14,"props":414,"children":415},{},[416],{"type":18,"value":417},"This structure describes the following features:",{"type":13,"tag":419,"props":420,"children":421},"ul",{},[422,443,462,569],{"type":13,"tag":423,"props":424,"children":425},"li",{},[426,432,434,441],{"type":13,"tag":21,"props":427,"children":429},{"className":428},[],[430],{"type":18,"value":431},"sType",{"type":18,"value":433}," is a ",{"type":13,"tag":435,"props":436,"children":438},"a",{"href":437},"/man/VkStructureType",[439],{"type":18,"value":440},"VkStructureType",{"type":18,"value":442}," value identifying this structure.",{"type":13,"tag":423,"props":444,"children":445},{},[446,452,454,460],{"type":13,"tag":21,"props":447,"children":449},{"className":448},[],[450],{"type":18,"value":451},"pNext",{"type":18,"value":453}," is ",{"type":13,"tag":21,"props":455,"children":457},{"className":456},[],[458],{"type":18,"value":459},"NULL",{"type":18,"value":461}," or a pointer to a structure extending this\nstructure.",{"type":13,"tag":423,"props":463,"children":464},{},[465,470,472,478,480,485,487,493,495,500,502,508,509,515,517,523,525,531,532,538,539,545,546,552,553,559,561,567],{"type":13,"tag":466,"props":467,"children":469},"anchor",{"id":468},"features-shaderFloat16",[],{"type":18,"value":471}," ",{"type":13,"tag":21,"props":473,"children":475},{"className":474},[],[476],{"type":18,"value":477},"shaderFloat16",{"type":18,"value":479}," indicates\nwhether 16-bit floats (halfs) are supported in shader code.\nThis also indicates whether shader modules ",{"type":13,"tag":481,"props":482,"children":484},"normative",{"type":483},"can",[],{"type":18,"value":486}," declare the ",{"type":13,"tag":21,"props":488,"children":490},{"className":489},[],[491],{"type":18,"value":492},"Float16",{"type":18,"value":494},"\ncapability.\nHowever, this only enables a subset of the storage classes that SPIR-V\nallows for the ",{"type":13,"tag":21,"props":496,"children":498},{"className":497},[],[499],{"type":18,"value":492},{"type":18,"value":501}," SPIR-V capability: Declaring and using\n16-bit floats in the ",{"type":13,"tag":21,"props":503,"children":505},{"className":504},[],[506],{"type":18,"value":507},"Private",{"type":18,"value":182},{"type":13,"tag":21,"props":510,"children":512},{"className":511},[],[513],{"type":18,"value":514},"Workgroup",{"type":18,"value":516}," (for non-Block variables),\nand ",{"type":13,"tag":21,"props":518,"children":520},{"className":519},[],[521],{"type":18,"value":522},"Function",{"type":18,"value":524}," storage classes is enabled, while declaring them in\nthe interface storage classes (e.g., ",{"type":13,"tag":21,"props":526,"children":528},{"className":527},[],[529],{"type":18,"value":530},"UniformConstant",{"type":18,"value":234},{"type":13,"tag":21,"props":533,"children":535},{"className":534},[],[536],{"type":18,"value":537},"Uniform",{"type":18,"value":182},{"type":13,"tag":21,"props":540,"children":542},{"className":541},[],[543],{"type":18,"value":544},"StorageBuffer",{"type":18,"value":234},{"type":13,"tag":21,"props":547,"children":549},{"className":548},[],[550],{"type":18,"value":551},"Input",{"type":18,"value":234},{"type":13,"tag":21,"props":554,"children":556},{"className":555},[],[557],{"type":18,"value":558},"Output",{"type":18,"value":560},", and ",{"type":13,"tag":21,"props":562,"children":564},{"className":563},[],[565],{"type":18,"value":566},"PushConstant",{"type":18,"value":568},") is\nnot enabled.",{"type":13,"tag":423,"props":570,"children":571},{},[572,576,577,583,585,588,589,595,596,601,603,608,609,614,615,620,621,626,627,632,633,638,639,644,645,650,651,656],{"type":13,"tag":466,"props":573,"children":575},{"id":574},"features-shaderInt8",[],{"type":18,"value":471},{"type":13,"tag":21,"props":578,"children":580},{"className":579},[],[581],{"type":18,"value":582},"shaderInt8",{"type":18,"value":584}," indicates\nwhether 8-bit integers (signed and unsigned) are supported in shader\ncode.\nThis also indicates whether shader modules ",{"type":13,"tag":481,"props":586,"children":587},{"type":483},[],{"type":18,"value":486},{"type":13,"tag":21,"props":590,"children":592},{"className":591},[],[593],{"type":18,"value":594},"Int8",{"type":18,"value":494},{"type":13,"tag":21,"props":597,"children":599},{"className":598},[],[600],{"type":18,"value":594},{"type":18,"value":602}," SPIR-V capability: Declaring and using 8-bit\nintegers in the ",{"type":13,"tag":21,"props":604,"children":606},{"className":605},[],[607],{"type":18,"value":507},{"type":18,"value":182},{"type":13,"tag":21,"props":610,"children":612},{"className":611},[],[613],{"type":18,"value":514},{"type":18,"value":516},{"type":13,"tag":21,"props":616,"children":618},{"className":617},[],[619],{"type":18,"value":522},{"type":18,"value":524},{"type":13,"tag":21,"props":622,"children":624},{"className":623},[],[625],{"type":18,"value":530},{"type":18,"value":234},{"type":13,"tag":21,"props":628,"children":630},{"className":629},[],[631],{"type":18,"value":537},{"type":18,"value":182},{"type":13,"tag":21,"props":634,"children":636},{"className":635},[],[637],{"type":18,"value":544},{"type":18,"value":234},{"type":13,"tag":21,"props":640,"children":642},{"className":641},[],[643],{"type":18,"value":551},{"type":18,"value":234},{"type":13,"tag":21,"props":646,"children":648},{"className":647},[],[649],{"type":18,"value":558},{"type":18,"value":560},{"type":13,"tag":21,"props":652,"children":654},{"className":653},[],[655],{"type":18,"value":566},{"type":18,"value":568},{"type":13,"tag":14,"props":658,"children":659},{},[660,662,667,669,674,676,682,684,690,692,697,698,701,703,708,710,716],{"type":18,"value":661},"If the ",{"type":13,"tag":21,"props":663,"children":665},{"className":664},[],[666],{"type":18,"value":4},{"type":18,"value":668}," structure is included in the ",{"type":13,"tag":21,"props":670,"children":672},{"className":671},[],[673],{"type":18,"value":451},{"type":18,"value":675}," chain of the\n",{"type":13,"tag":435,"props":677,"children":679},{"href":678},"/man/VkPhysicalDeviceFeatures2",[680],{"type":18,"value":681},"VkPhysicalDeviceFeatures2",{"type":18,"value":683}," structure passed to\n",{"type":13,"tag":435,"props":685,"children":687},{"href":686},"/man/vkGetPhysicalDeviceFeatures2",[688],{"type":18,"value":689},"vkGetPhysicalDeviceFeatures2",{"type":18,"value":691},", it is filled in to indicate whether each\ncorresponding feature is supported.\n",{"type":13,"tag":21,"props":693,"children":695},{"className":694},[],[696],{"type":18,"value":4},{"type":18,"value":471},{"type":13,"tag":481,"props":699,"children":700},{"type":483},[],{"type":18,"value":702}," also be used in the ",{"type":13,"tag":21,"props":704,"children":706},{"className":705},[],[707],{"type":18,"value":451},{"type":18,"value":709}," chain of\n",{"type":13,"tag":435,"props":711,"children":713},{"href":712},"/man/VkDeviceCreateInfo",[714],{"type":18,"value":715},"VkDeviceCreateInfo",{"type":18,"value":717}," to selectively enable these features.",{"type":13,"tag":719,"props":720,"children":722},"validity-group",{"name":721},"Valid Usage (Implicit)",[723],{"type":13,"tag":724,"props":725,"children":727},"validity-field",{"name":726},"VUID-VkPhysicalDeviceShaderFloat16Int8Features-sType-sType",[728],{"type":13,"tag":14,"props":729,"children":730},{},[731,736,737,741,743],{"type":13,"tag":21,"props":732,"children":734},{"className":733},[],[735],{"type":18,"value":431},{"type":18,"value":471},{"type":13,"tag":481,"props":738,"children":740},{"type":739},"must",[],{"type":18,"value":742}," be ",{"type":13,"tag":21,"props":744,"children":746},{"className":745},[],[747],{"type":18,"value":748},"VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES",{"type":13,"tag":750,"props":751,"children":752},"style",{},[753],{"type":18,"value":754},"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":69,"depth":69,"links":756},[],"markdown",1725732574157]