[{"data":1,"prerenderedAt":676},["ShallowReactive",2],{"IU1LfMYdbi":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":675,"_id":4},"VkLineRasterizationMode","Line rasterization modes","VK_VERSION_1_4","enums",[],{"type":10,"children":11,"toc":673},"root",[12,38,397,402,482,486,559,667],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27,29,36],{"type":18,"value":19},"text","Possible values of\n",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/man/VkPipelineRasterizationLineStateCreateInfo",[25],{"type":18,"value":26},"VkPipelineRasterizationLineStateCreateInfo",{"type":18,"value":28},"::",{"type":13,"tag":30,"props":31,"children":33},"code",{"className":32},[],[34],{"type":18,"value":35},"lineRasterizationMode",{"type":18,"value":37},",\nspecifying the line rasterization mode, are:",{"type":13,"tag":39,"props":40,"children":41},"code-group",{},[42,177],{"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 VkLineRasterizationMode {\n VK_LINE_RASTERIZATION_MODE_DEFAULT = 0,\n VK_LINE_RASTERIZATION_MODE_RECTANGULAR = 1,\n VK_LINE_RASTERIZATION_MODE_BRESENHAM = 2,\n VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH = 3,\n} VkLineRasterizationMode;\n","C","c","",[51],{"type":13,"tag":30,"props":52,"children":53},{"__ignoreMap":49},[54,77,102,124,146,168],{"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}," VkLineRasterizationMode {\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_LINE_RASTERIZATION_MODE_DEFAULT ",{"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_LINE_RASTERIZATION_MODE_RECTANGULAR ",{"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_LINE_RASTERIZATION_MODE_BRESENHAM ",{"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,155,159,164],{"type":13,"tag":55,"props":151,"children":152},{"style":73},[153],{"type":18,"value":154}," VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH ",{"type":13,"tag":55,"props":156,"children":157},{"style":62},[158],{"type":18,"value":90},{"type":13,"tag":55,"props":160,"children":161},{"style":93},[162],{"type":18,"value":163}," 3",{"type":13,"tag":55,"props":165,"children":166},{"style":73},[167],{"type":18,"value":101},{"type":13,"tag":55,"props":169,"children":171},{"class":57,"line":170},6,[172],{"type":13,"tag":55,"props":173,"children":174},{"style":73},[175],{"type":18,"value":176},"} VkLineRasterizationMode;\n",{"type":13,"tag":43,"props":178,"children":183},{"className":179,"code":180,"filename":181,"language":182,"meta":49,"style":49},"language-rs shiki shiki-themes github-light-default github-dark-default","pub struct LineRasterizationMode(u32);\nimpl LineRasterizationMode {\n pub const DEFAULT: Self = 0;\n pub const RECTANGULAR: Self = 1;\n pub const BRESENHAM: Self = 2;\n pub const RECTANGULAR_SMOOTH: Self = 3;\n}\n","Rust","rs",[184],{"type":13,"tag":30,"props":185,"children":186},{"__ignoreMap":49},[187,221,238,280,316,352,388],{"type":13,"tag":55,"props":188,"children":189},{"class":57,"line":58},[190,195,200,206,211,216],{"type":13,"tag":55,"props":191,"children":192},{"style":62},[193],{"type":18,"value":194},"pub",{"type":13,"tag":55,"props":196,"children":197},{"style":62},[198],{"type":18,"value":199}," struct",{"type":13,"tag":55,"props":201,"children":203},{"style":202},"--shiki-default:#953800;--shiki-dark:#FFA657",[204],{"type":18,"value":205}," LineRasterizationMode",{"type":13,"tag":55,"props":207,"children":208},{"style":73},[209],{"type":18,"value":210},"(",{"type":13,"tag":55,"props":212,"children":213},{"style":202},[214],{"type":18,"value":215},"u32",{"type":13,"tag":55,"props":217,"children":218},{"style":73},[219],{"type":18,"value":220},");\n",{"type":13,"tag":55,"props":222,"children":223},{"class":57,"line":79},[224,229,233],{"type":13,"tag":55,"props":225,"children":226},{"style":62},[227],{"type":18,"value":228},"impl",{"type":13,"tag":55,"props":230,"children":231},{"style":202},[232],{"type":18,"value":205},{"type":13,"tag":55,"props":234,"children":235},{"style":73},[236],{"type":18,"value":237}," {\n",{"type":13,"tag":55,"props":239,"children":240},{"class":57,"line":104},[241,246,251,256,261,266,271,275],{"type":13,"tag":55,"props":242,"children":243},{"style":62},[244],{"type":18,"value":245}," pub",{"type":13,"tag":55,"props":247,"children":248},{"style":62},[249],{"type":18,"value":250}," const",{"type":13,"tag":55,"props":252,"children":253},{"style":93},[254],{"type":18,"value":255}," DEFAULT",{"type":13,"tag":55,"props":257,"children":258},{"style":62},[259],{"type":18,"value":260},":",{"type":13,"tag":55,"props":262,"children":263},{"style":93},[264],{"type":18,"value":265}," Self",{"type":13,"tag":55,"props":267,"children":268},{"style":62},[269],{"type":18,"value":270}," =",{"type":13,"tag":55,"props":272,"children":273},{"style":93},[274],{"type":18,"value":96},{"type":13,"tag":55,"props":276,"children":277},{"style":73},[278],{"type":18,"value":279},";\n",{"type":13,"tag":55,"props":281,"children":282},{"class":57,"line":126},[283,287,291,296,300,304,308,312],{"type":13,"tag":55,"props":284,"children":285},{"style":62},[286],{"type":18,"value":245},{"type":13,"tag":55,"props":288,"children":289},{"style":62},[290],{"type":18,"value":250},{"type":13,"tag":55,"props":292,"children":293},{"style":93},[294],{"type":18,"value":295}," RECTANGULAR",{"type":13,"tag":55,"props":297,"children":298},{"style":62},[299],{"type":18,"value":260},{"type":13,"tag":55,"props":301,"children":302},{"style":93},[303],{"type":18,"value":265},{"type":13,"tag":55,"props":305,"children":306},{"style":62},[307],{"type":18,"value":270},{"type":13,"tag":55,"props":309,"children":310},{"style":93},[311],{"type":18,"value":119},{"type":13,"tag":55,"props":313,"children":314},{"style":73},[315],{"type":18,"value":279},{"type":13,"tag":55,"props":317,"children":318},{"class":57,"line":148},[319,323,327,332,336,340,344,348],{"type":13,"tag":55,"props":320,"children":321},{"style":62},[322],{"type":18,"value":245},{"type":13,"tag":55,"props":324,"children":325},{"style":62},[326],{"type":18,"value":250},{"type":13,"tag":55,"props":328,"children":329},{"style":93},[330],{"type":18,"value":331}," BRESENHAM",{"type":13,"tag":55,"props":333,"children":334},{"style":62},[335],{"type":18,"value":260},{"type":13,"tag":55,"props":337,"children":338},{"style":93},[339],{"type":18,"value":265},{"type":13,"tag":55,"props":341,"children":342},{"style":62},[343],{"type":18,"value":270},{"type":13,"tag":55,"props":345,"children":346},{"style":93},[347],{"type":18,"value":141},{"type":13,"tag":55,"props":349,"children":350},{"style":73},[351],{"type":18,"value":279},{"type":13,"tag":55,"props":353,"children":354},{"class":57,"line":170},[355,359,363,368,372,376,380,384],{"type":13,"tag":55,"props":356,"children":357},{"style":62},[358],{"type":18,"value":245},{"type":13,"tag":55,"props":360,"children":361},{"style":62},[362],{"type":18,"value":250},{"type":13,"tag":55,"props":364,"children":365},{"style":93},[366],{"type":18,"value":367}," RECTANGULAR_SMOOTH",{"type":13,"tag":55,"props":369,"children":370},{"style":62},[371],{"type":18,"value":260},{"type":13,"tag":55,"props":373,"children":374},{"style":93},[375],{"type":18,"value":265},{"type":13,"tag":55,"props":377,"children":378},{"style":62},[379],{"type":18,"value":270},{"type":13,"tag":55,"props":381,"children":382},{"style":93},[383],{"type":18,"value":163},{"type":13,"tag":55,"props":385,"children":386},{"style":73},[387],{"type":18,"value":279},{"type":13,"tag":55,"props":389,"children":391},{"class":57,"line":390},7,[392],{"type":13,"tag":55,"props":393,"children":394},{"style":73},[395],{"type":18,"value":396},"}\n",{"type":13,"tag":14,"props":398,"children":399},{},[400],{"type":18,"value":401},"or the equivalent",{"type":13,"tag":39,"props":403,"children":404},{},[405,431],{"type":13,"tag":43,"props":406,"children":408},{"className":45,"code":407,"filename":47,"language":48,"meta":49,"style":49},"#define VkLineRasterizationModeKHR VkLineRasterizationMode\n",[409],{"type":13,"tag":30,"props":410,"children":411},{"__ignoreMap":49},[412],{"type":13,"tag":55,"props":413,"children":414},{"class":57,"line":58},[415,420,426],{"type":13,"tag":55,"props":416,"children":417},{"style":62},[418],{"type":18,"value":419},"#define",{"type":13,"tag":55,"props":421,"children":423},{"style":422},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[424],{"type":18,"value":425}," VkLineRasterizationModeKHR",{"type":13,"tag":55,"props":427,"children":428},{"style":73},[429],{"type":18,"value":430}," VkLineRasterizationMode\n",{"type":13,"tag":43,"props":432,"children":434},{"className":179,"code":433,"filename":181,"language":182,"meta":49,"style":49},"const LineRasterizationModeKHR: _ = vk::LineRasterizationMode;\n",[435],{"type":13,"tag":30,"props":436,"children":437},{"__ignoreMap":49},[438],{"type":13,"tag":55,"props":439,"children":440},{"class":57,"line":58},[441,446,451,455,460,464,469,473,478],{"type":13,"tag":55,"props":442,"children":443},{"style":62},[444],{"type":18,"value":445},"const",{"type":13,"tag":55,"props":447,"children":448},{"style":93},[449],{"type":18,"value":450}," LineRasterizationModeKHR",{"type":13,"tag":55,"props":452,"children":453},{"style":62},[454],{"type":18,"value":260},{"type":13,"tag":55,"props":456,"children":457},{"style":73},[458],{"type":18,"value":459}," _ ",{"type":13,"tag":55,"props":461,"children":462},{"style":62},[463],{"type":18,"value":90},{"type":13,"tag":55,"props":465,"children":466},{"style":202},[467],{"type":18,"value":468}," vk",{"type":13,"tag":55,"props":470,"children":471},{"style":62},[472],{"type":18,"value":28},{"type":13,"tag":55,"props":474,"children":475},{"style":202},[476],{"type":18,"value":477},"LineRasterizationMode",{"type":13,"tag":55,"props":479,"children":480},{"style":73},[481],{"type":18,"value":279},{"type":13,"tag":14,"props":483,"children":484},{},[485],{"type":18,"value":401},{"type":13,"tag":39,"props":487,"children":488},{},[489,512],{"type":13,"tag":43,"props":490,"children":492},{"className":45,"code":491,"filename":47,"language":48,"meta":49,"style":49},"#define VkLineRasterizationModeEXT VkLineRasterizationMode\n",[493],{"type":13,"tag":30,"props":494,"children":495},{"__ignoreMap":49},[496],{"type":13,"tag":55,"props":497,"children":498},{"class":57,"line":58},[499,503,508],{"type":13,"tag":55,"props":500,"children":501},{"style":62},[502],{"type":18,"value":419},{"type":13,"tag":55,"props":504,"children":505},{"style":422},[506],{"type":18,"value":507}," VkLineRasterizationModeEXT",{"type":13,"tag":55,"props":509,"children":510},{"style":73},[511],{"type":18,"value":430},{"type":13,"tag":43,"props":513,"children":515},{"className":179,"code":514,"filename":181,"language":182,"meta":49,"style":49},"const LineRasterizationModeEXT: _ = vk::LineRasterizationMode;\n",[516],{"type":13,"tag":30,"props":517,"children":518},{"__ignoreMap":49},[519],{"type":13,"tag":55,"props":520,"children":521},{"class":57,"line":58},[522,526,531,535,539,543,547,551,555],{"type":13,"tag":55,"props":523,"children":524},{"style":62},[525],{"type":18,"value":445},{"type":13,"tag":55,"props":527,"children":528},{"style":93},[529],{"type":18,"value":530}," LineRasterizationModeEXT",{"type":13,"tag":55,"props":532,"children":533},{"style":62},[534],{"type":18,"value":260},{"type":13,"tag":55,"props":536,"children":537},{"style":73},[538],{"type":18,"value":459},{"type":13,"tag":55,"props":540,"children":541},{"style":62},[542],{"type":18,"value":90},{"type":13,"tag":55,"props":544,"children":545},{"style":202},[546],{"type":18,"value":468},{"type":13,"tag":55,"props":548,"children":549},{"style":62},[550],{"type":18,"value":28},{"type":13,"tag":55,"props":552,"children":553},{"style":202},[554],{"type":18,"value":477},{"type":13,"tag":55,"props":556,"children":557},{"style":73},[558],{"type":18,"value":279},{"type":13,"tag":560,"props":561,"children":562},"ul",{},[563,621,631,649],{"type":13,"tag":564,"props":565,"children":566},"li",{},[567,573,575,581,583,589,590,596,598,604,606,611,613,619],{"type":13,"tag":30,"props":568,"children":570},{"className":569},[],[571],{"type":18,"value":572},"VK_LINE_RASTERIZATION_MODE_DEFAULT",{"type":18,"value":574}," is equivalent to\n",{"type":13,"tag":30,"props":576,"children":578},{"className":577},[],[579],{"type":18,"value":580},"VK_LINE_RASTERIZATION_MODE_RECTANGULAR",{"type":18,"value":582}," if\n",{"type":13,"tag":21,"props":584,"children":586},{"href":585},"/man/VkPhysicalDeviceLimits",[587],{"type":18,"value":588},"VkPhysicalDeviceLimits",{"type":18,"value":28},{"type":13,"tag":30,"props":591,"children":593},{"className":592},[],[594],{"type":18,"value":595},"strictLines",{"type":18,"value":597}," is ",{"type":13,"tag":30,"props":599,"children":601},{"className":600},[],[602],{"type":18,"value":603},"VK_TRUE",{"type":18,"value":605},",\notherwise lines are drawn as non-",{"type":13,"tag":30,"props":607,"children":609},{"className":608},[],[610],{"type":18,"value":595},{"type":18,"value":612}," parallelograms.\nBoth of these modes are defined in ",{"type":13,"tag":21,"props":614,"children":616},{"href":615},"/chapters/primsrast#primsrast-lines-basic",[617],{"type":18,"value":618},"Basic Line\nSegment Rasterization",{"type":18,"value":620},".",{"type":13,"tag":564,"props":622,"children":623},{},[624,629],{"type":13,"tag":30,"props":625,"children":627},{"className":626},[],[628],{"type":18,"value":580},{"type":18,"value":630}," specifies lines drawn as if\nthey were rectangles extruded from the line",{"type":13,"tag":564,"props":632,"children":633},{},[634,640,642,648],{"type":13,"tag":30,"props":635,"children":637},{"className":636},[],[638],{"type":18,"value":639},"VK_LINE_RASTERIZATION_MODE_BRESENHAM",{"type":18,"value":641}," specifies lines drawn by\ndetermining which pixel diamonds the line intersects and exits, as\ndefined in ",{"type":13,"tag":21,"props":643,"children":645},{"href":644},"/chapters/primsrast#primsrast-lines-bresenham",[646],{"type":18,"value":647},"Bresenham Line Segment\nRasterization",{"type":18,"value":620},{"type":13,"tag":564,"props":650,"children":651},{},[652,658,660,666],{"type":13,"tag":30,"props":653,"children":655},{"className":654},[],[656],{"type":18,"value":657},"VK_LINE_RASTERIZATION_MODE_RECTANGULAR_SMOOTH",{"type":18,"value":659}," specifies lines\ndrawn if they were rectangles extruded from the line, with alpha\nfalloff, as defined in ",{"type":13,"tag":21,"props":661,"children":663},{"href":662},"/chapters/primsrast#primsrast-lines-smooth",[664],{"type":18,"value":665},"Smooth Lines",{"type":18,"value":620},{"type":13,"tag":668,"props":669,"children":670},"style",{},[671],{"type":18,"value":672},"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":674},[],"markdown",1744876554034]