[{"data":1,"prerenderedAt":535},["ShallowReactive",2],{"CxxzqTRr9w":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":534,"_id":4},"VkPolygonMode","Control polygon rasterization mode","VK_VERSION_1_0","enums",[],{"type":10,"children":11,"toc":532},"root",[12,38,339,432,437,488,526],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36],{"type":18,"value":19},"text","Possible values of the\n",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkPipelineRasterizationStateCreateInfo",[25],{"type":18,"value":26},"VkPipelineRasterizationStateCreateInfo",{"type":18,"value":28},"::",{"type":13,"tag":30,"props":31,"children":33},"code",{"className":32},[],[34],{"type":18,"value":35},"polygonMode",{"type":18,"value":37}," property of\nthe currently active pipeline, specifying the method of rasterization for\npolygons, are:",{"type":13,"tag":39,"props":40,"children":41},"code-group",{},[42,155],{"type":13,"tag":43,"props":44,"children":50},"pre",{"className":45,"code":46,"filename":47,"language":48,"meta":49,"style":49},"language-c shiki shiki-themes github-light-default github-dark-default","typedef enum VkPolygonMode {\n VK_POLYGON_MODE_FILL = 0,\n VK_POLYGON_MODE_LINE = 1,\n VK_POLYGON_MODE_POINT = 2,\n} VkPolygonMode;\n","C","c","",[51],{"type":13,"tag":30,"props":52,"children":53},{"__ignoreMap":49},[54,77,102,124,146],{"type":13,"tag":55,"props":56,"children":59},"span",{"class":57,"line":58},"line",1,[60,66,71],{"type":13,"tag":55,"props":61,"children":63},{"style":62},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[64],{"type":18,"value":65},"typedef",{"type":13,"tag":55,"props":67,"children":68},{"style":62},[69],{"type":18,"value":70}," enum",{"type":13,"tag":55,"props":72,"children":74},{"style":73},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[75],{"type":18,"value":76}," VkPolygonMode {\n",{"type":13,"tag":55,"props":78,"children":80},{"class":57,"line":79},2,[81,86,91,97],{"type":13,"tag":55,"props":82,"children":83},{"style":73},[84],{"type":18,"value":85}," VK_POLYGON_MODE_FILL ",{"type":13,"tag":55,"props":87,"children":88},{"style":62},[89],{"type":18,"value":90},"=",{"type":13,"tag":55,"props":92,"children":94},{"style":93},"--shiki-default:#0550AE;--shiki-dark:#79C0FF",[95],{"type":18,"value":96}," 0",{"type":13,"tag":55,"props":98,"children":99},{"style":73},[100],{"type":18,"value":101},",\n",{"type":13,"tag":55,"props":103,"children":105},{"class":57,"line":104},3,[106,111,115,120],{"type":13,"tag":55,"props":107,"children":108},{"style":73},[109],{"type":18,"value":110}," VK_POLYGON_MODE_LINE ",{"type":13,"tag":55,"props":112,"children":113},{"style":62},[114],{"type":18,"value":90},{"type":13,"tag":55,"props":116,"children":117},{"style":93},[118],{"type":18,"value":119}," 1",{"type":13,"tag":55,"props":121,"children":122},{"style":73},[123],{"type":18,"value":101},{"type":13,"tag":55,"props":125,"children":127},{"class":57,"line":126},4,[128,133,137,142],{"type":13,"tag":55,"props":129,"children":130},{"style":73},[131],{"type":18,"value":132}," VK_POLYGON_MODE_POINT ",{"type":13,"tag":55,"props":134,"children":135},{"style":62},[136],{"type":18,"value":90},{"type":13,"tag":55,"props":138,"children":139},{"style":93},[140],{"type":18,"value":141}," 2",{"type":13,"tag":55,"props":143,"children":144},{"style":73},[145],{"type":18,"value":101},{"type":13,"tag":55,"props":147,"children":149},{"class":57,"line":148},5,[150],{"type":13,"tag":55,"props":151,"children":152},{"style":73},[153],{"type":18,"value":154},"} VkPolygonMode;\n",{"type":13,"tag":43,"props":156,"children":161},{"className":157,"code":158,"filename":159,"language":160,"meta":49,"style":49},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct PolygonMode(u32);\nimpl PolygonMode {\n pub const FILL: Self = 0;\n pub const LINE: Self = 1;\n pub const POINT: Self = 2;\n}\n","Rust","rs",[162],{"type":13,"tag":30,"props":163,"children":164},{"__ignoreMap":49},[165,199,216,258,294,330],{"type":13,"tag":55,"props":166,"children":167},{"class":57,"line":58},[168,173,178,184,189,194],{"type":13,"tag":55,"props":169,"children":170},{"style":62},[171],{"type":18,"value":172},"pub",{"type":13,"tag":55,"props":174,"children":175},{"style":62},[176],{"type":18,"value":177}," struct",{"type":13,"tag":55,"props":179,"children":181},{"style":180},"--shiki-default:#953800;--shiki-dark:#FFA657",[182],{"type":18,"value":183}," PolygonMode",{"type":13,"tag":55,"props":185,"children":186},{"style":73},[187],{"type":18,"value":188},"(",{"type":13,"tag":55,"props":190,"children":191},{"style":180},[192],{"type":18,"value":193},"u32",{"type":13,"tag":55,"props":195,"children":196},{"style":73},[197],{"type":18,"value":198},");\n",{"type":13,"tag":55,"props":200,"children":201},{"class":57,"line":79},[202,207,211],{"type":13,"tag":55,"props":203,"children":204},{"style":62},[205],{"type":18,"value":206},"impl",{"type":13,"tag":55,"props":208,"children":209},{"style":180},[210],{"type":18,"value":183},{"type":13,"tag":55,"props":212,"children":213},{"style":73},[214],{"type":18,"value":215}," {\n",{"type":13,"tag":55,"props":217,"children":218},{"class":57,"line":104},[219,224,229,234,239,244,249,253],{"type":13,"tag":55,"props":220,"children":221},{"style":62},[222],{"type":18,"value":223}," pub",{"type":13,"tag":55,"props":225,"children":226},{"style":62},[227],{"type":18,"value":228}," const",{"type":13,"tag":55,"props":230,"children":231},{"style":93},[232],{"type":18,"value":233}," FILL",{"type":13,"tag":55,"props":235,"children":236},{"style":62},[237],{"type":18,"value":238},":",{"type":13,"tag":55,"props":240,"children":241},{"style":93},[242],{"type":18,"value":243}," Self",{"type":13,"tag":55,"props":245,"children":246},{"style":62},[247],{"type":18,"value":248}," =",{"type":13,"tag":55,"props":250,"children":251},{"style":93},[252],{"type":18,"value":96},{"type":13,"tag":55,"props":254,"children":255},{"style":73},[256],{"type":18,"value":257},";\n",{"type":13,"tag":55,"props":259,"children":260},{"class":57,"line":126},[261,265,269,274,278,282,286,290],{"type":13,"tag":55,"props":262,"children":263},{"style":62},[264],{"type":18,"value":223},{"type":13,"tag":55,"props":266,"children":267},{"style":62},[268],{"type":18,"value":228},{"type":13,"tag":55,"props":270,"children":271},{"style":93},[272],{"type":18,"value":273}," LINE",{"type":13,"tag":55,"props":275,"children":276},{"style":62},[277],{"type":18,"value":238},{"type":13,"tag":55,"props":279,"children":280},{"style":93},[281],{"type":18,"value":243},{"type":13,"tag":55,"props":283,"children":284},{"style":62},[285],{"type":18,"value":248},{"type":13,"tag":55,"props":287,"children":288},{"style":93},[289],{"type":18,"value":119},{"type":13,"tag":55,"props":291,"children":292},{"style":73},[293],{"type":18,"value":257},{"type":13,"tag":55,"props":295,"children":296},{"class":57,"line":148},[297,301,305,310,314,318,322,326],{"type":13,"tag":55,"props":298,"children":299},{"style":62},[300],{"type":18,"value":223},{"type":13,"tag":55,"props":302,"children":303},{"style":62},[304],{"type":18,"value":228},{"type":13,"tag":55,"props":306,"children":307},{"style":93},[308],{"type":18,"value":309}," POINT",{"type":13,"tag":55,"props":311,"children":312},{"style":62},[313],{"type":18,"value":238},{"type":13,"tag":55,"props":315,"children":316},{"style":93},[317],{"type":18,"value":243},{"type":13,"tag":55,"props":319,"children":320},{"style":62},[321],{"type":18,"value":248},{"type":13,"tag":55,"props":323,"children":324},{"style":93},[325],{"type":18,"value":141},{"type":13,"tag":55,"props":327,"children":328},{"style":73},[329],{"type":18,"value":257},{"type":13,"tag":55,"props":331,"children":333},{"class":57,"line":332},6,[334],{"type":13,"tag":55,"props":335,"children":336},{"style":73},[337],{"type":18,"value":338},"}\n",{"type":13,"tag":340,"props":341,"children":342},"ul",{},[343,355,366,377],{"type":13,"tag":344,"props":345,"children":346},"li",{},[347,353],{"type":13,"tag":30,"props":348,"children":350},{"className":349},[],[351],{"type":18,"value":352},"VK_POLYGON_MODE_POINT",{"type":18,"value":354}," specifies that polygon vertices are drawn as\npoints.",{"type":13,"tag":344,"props":356,"children":357},{},[358,364],{"type":13,"tag":30,"props":359,"children":361},{"className":360},[],[362],{"type":18,"value":363},"VK_POLYGON_MODE_LINE",{"type":18,"value":365}," specifies that polygon edges are drawn as\nline segments.",{"type":13,"tag":344,"props":367,"children":368},{},[369,375],{"type":13,"tag":30,"props":370,"children":372},{"className":371},[],[373],{"type":18,"value":374},"VK_POLYGON_MODE_FILL",{"type":18,"value":376}," specifies that polygons are rendered using\nthe polygon rasterization rules in this section.",{"type":13,"tag":344,"props":378,"children":379},{},[380,386,388,393,395,399,401,405,407,412,414,418,420,423,425,430],{"type":13,"tag":30,"props":381,"children":383},{"className":382},[],[384],{"type":18,"value":385},"VK_POLYGON_MODE_FILL_RECTANGLE_NV",{"type":18,"value":387}," specifies that polygons are\nrendered using polygon rasterization rules, modified to consider a\nsample within the primitive if the sample location is inside the\naxis-aligned bounding box of the triangle after projection.\nNote that the barycentric weights used in attribute interpolation ",{"type":13,"tag":389,"props":390,"children":392},"normative",{"type":391},"can",[],{"type":18,"value":394},"\nextend outside the range [0,1] when these primitives are shaded.\nSpecial treatment is given to a sample position on the boundary edge of\nthe bounding box.\nIn such a case, if two rectangles lie on either side of a common edge\n(with identical endpoints) on which a sample position lies, then exactly\none of the triangles ",{"type":13,"tag":389,"props":396,"children":398},{"type":397},"must",[],{"type":18,"value":400}," produce a fragment that covers that sample\nduring rasterization.",{"type":13,"tag":402,"props":403,"children":404},"br",{},[],{"type":18,"value":406},"Polygons rendered in ",{"type":13,"tag":30,"props":408,"children":410},{"className":409},[],[411],{"type":18,"value":385},{"type":18,"value":413}," mode ",{"type":13,"tag":389,"props":415,"children":417},{"type":416},"may",[],{"type":18,"value":419}," be\nclipped by the frustum or by user clip planes.\nIf clipping is applied, the triangle is culled rather than clipped.",{"type":13,"tag":402,"props":421,"children":422},{},[],{"type":18,"value":424},"Area calculation and facingness are determined for\n",{"type":13,"tag":30,"props":426,"children":428},{"className":427},[],[429],{"type":18,"value":385},{"type":18,"value":431}," mode using the triangle’s vertices.",{"type":13,"tag":14,"props":433,"children":434},{},[435],{"type":18,"value":436},"These modes affect only the final rasterization of polygons: in particular,\na polygon’s vertices are shaded and the polygon is clipped and possibly\nculled before these modes are applied.",{"type":13,"tag":14,"props":438,"children":439},{},[440,442,448,449,455,457,463,465,471,473,479,481,486],{"type":18,"value":441},"If\n",{"type":13,"tag":30,"props":443,"children":445},{"className":444},[],[446],{"type":18,"value":447},"VkPhysicalDeviceMaintenance5PropertiesKHR",{"type":18,"value":28},{"type":13,"tag":30,"props":450,"children":452},{"className":451},[],[453],{"type":18,"value":454},"polygonModePointSize",{"type":18,"value":456},"\nis set to ",{"type":13,"tag":30,"props":458,"children":460},{"className":459},[],[461],{"type":18,"value":462},"VK_TRUE",{"type":18,"value":464},", the point size of the final rasterization of\npolygons is taken from ",{"type":13,"tag":30,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":470},"PointSize",{"type":18,"value":472}," when ",{"type":13,"tag":21,"props":474,"children":476},{"href":475},"/chapters/primsrast#primsrast-polygonmode",[477],{"type":18,"value":478},"polygon\nmode",{"type":18,"value":480}," is ",{"type":13,"tag":30,"props":482,"children":484},{"className":483},[],[485],{"type":18,"value":352},{"type":18,"value":487},".",{"type":13,"tag":14,"props":489,"children":490},{},[491,493,498,499,504,505,511,513,518,520,525],{"type":18,"value":492},"Otherwise, if\n",{"type":13,"tag":30,"props":494,"children":496},{"className":495},[],[497],{"type":18,"value":447},{"type":18,"value":28},{"type":13,"tag":30,"props":500,"children":502},{"className":501},[],[503],{"type":18,"value":454},{"type":18,"value":456},{"type":13,"tag":30,"props":506,"children":508},{"className":507},[],[509],{"type":18,"value":510},"VK_FALSE",{"type":18,"value":512},", the point size of the final rasterization of\npolygons is 1.0 when ",{"type":13,"tag":21,"props":514,"children":515},{"href":475},[516],{"type":18,"value":517},"polygon mode",{"type":18,"value":519}," is\n",{"type":13,"tag":30,"props":521,"children":523},{"className":522},[],[524],{"type":18,"value":352},{"type":18,"value":487},{"type":13,"tag":527,"props":528,"children":529},"style",{},[530],{"type":18,"value":531},"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":49,"searchDepth":79,"depth":79,"links":533},[],"markdown",1725732580339]