[{"data":1,"prerenderedAt":491},["ShallowReactive",2],{"587YGZJ8xe":3},{"title":4,"description":5,"parent":6,"type":7,"xrefs":8,"body":9,"_type":490,"_id":4},"vkCmdSetFrontFace","Set front face orientation dynamically for a command buffer","VK_VERSION_1_3","protos",[],{"type":10,"children":11,"toc":488},"root",[12,29,210,243,293,315,436,482],{"type":13,"tag":14,"props":15,"children":16},"element","p",{},[17,20,27],{"type":18,"value":19},"text","To ",{"type":13,"tag":21,"props":22,"children":24},"a",{"href":23},"/chapters/pipelines#pipelines-dynamic-state",[25],{"type":18,"value":26},"dynamically set",{"type":18,"value":28}," the front face orientation,\ncall:",{"type":13,"tag":30,"props":31,"children":32},"code-group",{},[33,109],{"type":13,"tag":34,"props":35,"children":41},"pre",{"className":36,"code":37,"filename":38,"language":39,"meta":40,"style":40},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdSetFrontFaceEXT(\n VkCommandBuffer commandBuffer,\n VkFrontFace frontFace);\n","C","c","",[42],{"type":13,"tag":43,"props":44,"children":45},"code",{"__ignoreMap":40},[46,70,90],{"type":13,"tag":47,"props":48,"children":51},"span",{"class":49,"line":50},"line",1,[52,58,64],{"type":13,"tag":47,"props":53,"children":55},{"style":54},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[56],{"type":18,"value":57},"void",{"type":13,"tag":47,"props":59,"children":61},{"style":60},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[62],{"type":18,"value":63}," vkCmdSetFrontFaceEXT",{"type":13,"tag":47,"props":65,"children":67},{"style":66},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[68],{"type":18,"value":69},"(\n",{"type":13,"tag":47,"props":71,"children":73},{"class":49,"line":72},2,[74,79,85],{"type":13,"tag":47,"props":75,"children":76},{"style":66},[77],{"type":18,"value":78}," VkCommandBuffer ",{"type":13,"tag":47,"props":80,"children":82},{"style":81},"--shiki-default:#953800;--shiki-dark:#FFA657",[83],{"type":18,"value":84},"commandBuffer",{"type":13,"tag":47,"props":86,"children":87},{"style":66},[88],{"type":18,"value":89},",\n",{"type":13,"tag":47,"props":91,"children":93},{"class":49,"line":92},3,[94,99,104],{"type":13,"tag":47,"props":95,"children":96},{"style":66},[97],{"type":18,"value":98}," VkFrontFace ",{"type":13,"tag":47,"props":100,"children":101},{"style":81},[102],{"type":18,"value":103},"frontFace",{"type":13,"tag":47,"props":105,"children":106},{"style":66},[107],{"type":18,"value":108},");\n",{"type":13,"tag":34,"props":110,"children":115},{"className":111,"code":112,"filename":113,"language":114,"meta":40,"style":40},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_set_front_face_ext(\n command_buffer: vk::CommandBuffer,\n front_face: vk::FrontFace,\n);\n","Rust","rs",[116],{"type":13,"tag":43,"props":117,"children":118},{"__ignoreMap":40},[119,141,173,202],{"type":13,"tag":47,"props":120,"children":121},{"class":49,"line":50},[122,127,132,137],{"type":13,"tag":47,"props":123,"children":124},{"style":54},[125],{"type":18,"value":126},"pub",{"type":13,"tag":47,"props":128,"children":129},{"style":54},[130],{"type":18,"value":131}," fn",{"type":13,"tag":47,"props":133,"children":134},{"style":60},[135],{"type":18,"value":136}," cmd_set_front_face_ext",{"type":13,"tag":47,"props":138,"children":139},{"style":66},[140],{"type":18,"value":69},{"type":13,"tag":47,"props":142,"children":143},{"class":49,"line":72},[144,149,154,159,164,169],{"type":13,"tag":47,"props":145,"children":146},{"style":66},[147],{"type":18,"value":148}," command_buffer",{"type":13,"tag":47,"props":150,"children":151},{"style":54},[152],{"type":18,"value":153},":",{"type":13,"tag":47,"props":155,"children":156},{"style":81},[157],{"type":18,"value":158}," vk",{"type":13,"tag":47,"props":160,"children":161},{"style":54},[162],{"type":18,"value":163},"::",{"type":13,"tag":47,"props":165,"children":166},{"style":81},[167],{"type":18,"value":168},"CommandBuffer",{"type":13,"tag":47,"props":170,"children":171},{"style":66},[172],{"type":18,"value":89},{"type":13,"tag":47,"props":174,"children":175},{"class":49,"line":92},[176,181,185,189,193,198],{"type":13,"tag":47,"props":177,"children":178},{"style":66},[179],{"type":18,"value":180}," front_face",{"type":13,"tag":47,"props":182,"children":183},{"style":54},[184],{"type":18,"value":153},{"type":13,"tag":47,"props":186,"children":187},{"style":81},[188],{"type":18,"value":158},{"type":13,"tag":47,"props":190,"children":191},{"style":54},[192],{"type":18,"value":163},{"type":13,"tag":47,"props":194,"children":195},{"style":81},[196],{"type":18,"value":197},"FrontFace",{"type":13,"tag":47,"props":199,"children":200},{"style":66},[201],{"type":18,"value":89},{"type":13,"tag":47,"props":203,"children":205},{"class":49,"line":204},4,[206],{"type":13,"tag":47,"props":207,"children":208},{"style":66},[209],{"type":18,"value":108},{"type":13,"tag":211,"props":212,"children":213},"ul",{},[214,225],{"type":13,"tag":215,"props":216,"children":217},"li",{},[218,223],{"type":13,"tag":43,"props":219,"children":221},{"className":220},[],[222],{"type":18,"value":84},{"type":18,"value":224}," is the command buffer into which the command will be\nrecorded.",{"type":13,"tag":215,"props":226,"children":227},{},[228,233,235,241],{"type":13,"tag":43,"props":229,"children":231},{"className":230},[],[232],{"type":18,"value":103},{"type":18,"value":234}," is a ",{"type":13,"tag":21,"props":236,"children":238},{"href":237},"/man/VkFrontFace",[239],{"type":18,"value":240},"VkFrontFace",{"type":18,"value":242}," value specifying the front-facing\ntriangle orientation to be used for culling.",{"type":13,"tag":14,"props":244,"children":245},{},[246,248,254,256,262,264,270,271,277,279,285,286,291],{"type":18,"value":247},"This command sets the front face orientation for subsequent drawing commands\nwhen drawing using ",{"type":13,"tag":21,"props":249,"children":251},{"href":250},"/chapters/shaders#shaders-objects",[252],{"type":18,"value":253},"shader objects",{"type":18,"value":255},", or\nwhen the graphics pipeline is created with ",{"type":13,"tag":43,"props":257,"children":259},{"className":258},[],[260],{"type":18,"value":261},"VK_DYNAMIC_STATE_FRONT_FACE",{"type":18,"value":263},"\nset in ",{"type":13,"tag":21,"props":265,"children":267},{"href":266},"/man/VkPipelineDynamicStateCreateInfo",[268],{"type":18,"value":269},"VkPipelineDynamicStateCreateInfo",{"type":18,"value":163},{"type":13,"tag":43,"props":272,"children":274},{"className":273},[],[275],{"type":18,"value":276},"pDynamicStates",{"type":18,"value":278},".\nOtherwise, this state is specified by the\n",{"type":13,"tag":21,"props":280,"children":282},{"href":281},"/man/VkPipelineRasterizationStateCreateInfo",[283],{"type":18,"value":284},"VkPipelineRasterizationStateCreateInfo",{"type":18,"value":163},{"type":13,"tag":43,"props":287,"children":289},{"className":288},[],[290],{"type":18,"value":103},{"type":18,"value":292}," value used to\ncreate the currently active pipeline.",{"type":13,"tag":294,"props":295,"children":297},"validity-group",{"name":296},"Valid Usage",[298],{"type":13,"tag":299,"props":300,"children":302},"validity-field",{"name":301},"VUID-vkCmdSetFrontFace-None-08971",[303],{"type":13,"tag":14,"props":304,"children":305},{},[306,308,313],{"type":18,"value":307},"At least one of the following ",{"type":13,"tag":309,"props":310,"children":312},"normative",{"type":311},"must",[],{"type":18,"value":314}," be true:",{"type":13,"tag":294,"props":316,"children":318},{"name":317},"Valid Usage (Implicit)",[319,346,369,393,422],{"type":13,"tag":299,"props":320,"children":322},{"name":321},"VUID-vkCmdSetFrontFace-commandBuffer-parameter",[323],{"type":13,"tag":14,"props":324,"children":325},{},[326,331,333,336,338,344],{"type":13,"tag":43,"props":327,"children":329},{"className":328},[],[330],{"type":18,"value":84},{"type":18,"value":332}," ",{"type":13,"tag":309,"props":334,"children":335},{"type":311},[],{"type":18,"value":337}," be a valid ",{"type":13,"tag":21,"props":339,"children":341},{"href":340},"/man/VkCommandBuffer",[342],{"type":18,"value":343},"VkCommandBuffer",{"type":18,"value":345}," handle",{"type":13,"tag":299,"props":347,"children":349},{"name":348},"VUID-vkCmdSetFrontFace-frontFace-parameter",[350],{"type":13,"tag":14,"props":351,"children":352},{},[353,358,359,362,363,367],{"type":13,"tag":43,"props":354,"children":356},{"className":355},[],[357],{"type":18,"value":103},{"type":18,"value":332},{"type":13,"tag":309,"props":360,"children":361},{"type":311},[],{"type":18,"value":337},{"type":13,"tag":21,"props":364,"children":365},{"href":237},[366],{"type":18,"value":240},{"type":18,"value":368}," value",{"type":13,"tag":299,"props":370,"children":372},{"name":371},"VUID-vkCmdSetFrontFace-commandBuffer-recording",[373],{"type":13,"tag":14,"props":374,"children":375},{},[376,381,382,385,387],{"type":13,"tag":43,"props":377,"children":379},{"className":378},[],[380],{"type":18,"value":84},{"type":18,"value":332},{"type":13,"tag":309,"props":383,"children":384},{"type":311},[],{"type":18,"value":386}," be in the ",{"type":13,"tag":21,"props":388,"children":390},{"href":389},"/chapters/commandbuffers#commandbuffers-lifecycle",[391],{"type":18,"value":392},"recording state",{"type":13,"tag":299,"props":394,"children":396},{"name":395},"VUID-vkCmdSetFrontFace-commandBuffer-cmdpool",[397],{"type":13,"tag":14,"props":398,"children":399},{},[400,402,408,410,415,417,420],{"type":18,"value":401},"The ",{"type":13,"tag":43,"props":403,"children":405},{"className":404},[],[406],{"type":18,"value":407},"VkCommandPool",{"type":18,"value":409}," that ",{"type":13,"tag":43,"props":411,"children":413},{"className":412},[],[414],{"type":18,"value":84},{"type":18,"value":416}," was allocated from ",{"type":13,"tag":309,"props":418,"children":419},{"type":311},[],{"type":18,"value":421}," support graphics operations",{"type":13,"tag":299,"props":423,"children":425},{"name":424},"VUID-vkCmdSetFrontFace-videocoding",[426],{"type":13,"tag":14,"props":427,"children":428},{},[429,431,434],{"type":18,"value":430},"This command ",{"type":13,"tag":309,"props":432,"children":433},{"type":311},[],{"type":18,"value":435}," only be called outside of a video coding scope",{"type":13,"tag":437,"props":438,"children":440},"validity-box",{"name":439},"Host Synchronization",[441],{"type":13,"tag":211,"props":442,"children":443},{},[444,460],{"type":13,"tag":215,"props":445,"children":446},{},[447,449,454,455,458],{"type":18,"value":448},"Host access to ",{"type":13,"tag":43,"props":450,"children":452},{"className":451},[],[453],{"type":18,"value":84},{"type":18,"value":332},{"type":13,"tag":309,"props":456,"children":457},{"type":311},[],{"type":18,"value":459}," be externally synchronized",{"type":13,"tag":215,"props":461,"children":462},{},[463,465,470,471,476,477,480],{"type":18,"value":464},"Host access to the ",{"type":13,"tag":43,"props":466,"children":468},{"className":467},[],[469],{"type":18,"value":407},{"type":18,"value":409},{"type":13,"tag":43,"props":472,"children":474},{"className":473},[],[475],{"type":18,"value":84},{"type":18,"value":416},{"type":13,"tag":309,"props":478,"children":479},{"type":311},[],{"type":18,"value":481}," be externally synchronized\n::",{"type":13,"tag":483,"props":484,"children":485},"style",{},[486],{"type":18,"value":487},"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":40,"searchDepth":72,"depth":72,"links":489},[],"markdown",1725732609236]