[{"data":1,"prerenderedAt":1337},["ShallowReactive",2],{"Z9PtNpFboF":3},{"title":4,"description":5,"parent":6,"cmd_buf_level":7,"render_pass_scope":10,"video_coding_scope":10,"supported_queue_types":11,"tasks":18,"type":20,"xrefs":21,"body":22,"_type":1336,"_id":4},"vkCmdWriteTimestamp","Write a device timestamp into a query object","VK_VERSION_1_0",[8,9],"primary","secondary","both",[12,13,14,15,16,17],"transfer","graphics","compute","decode","encode","opticalflow",[19],"action","protos",[],{"type":23,"children":24,"toc":1334},"root",[25,33,292,347,359,387,398,422,480,496,515,534,553,564,1119,1282,1328],{"type":26,"tag":27,"props":28,"children":29},"element","p",{},[30],{"type":31,"value":32},"text","To request a timestamp and write the value to memory, call:",{"type":26,"tag":34,"props":35,"children":36},"code-group",{},[37,149],{"type":26,"tag":38,"props":39,"children":45},"pre",{"className":40,"code":41,"filename":42,"language":43,"meta":44,"style":44},"language-c shiki shiki-themes github-light-default github-dark-default","void vkCmdWriteTimestamp(\n VkCommandBuffer commandBuffer,\n VkPipelineStageFlagBits pipelineStage,\n VkQueryPool queryPool,\n uint32_t query);\n","C","c","",[46],{"type":26,"tag":47,"props":48,"children":49},"code",{"__ignoreMap":44},[50,74,94,112,130],{"type":26,"tag":51,"props":52,"children":55},"span",{"class":53,"line":54},"line",1,[56,62,68],{"type":26,"tag":51,"props":57,"children":59},{"style":58},"--shiki-default:#CF222E;--shiki-dark:#FF7B72",[60],{"type":31,"value":61},"void",{"type":26,"tag":51,"props":63,"children":65},{"style":64},"--shiki-default:#8250DF;--shiki-dark:#D2A8FF",[66],{"type":31,"value":67}," vkCmdWriteTimestamp",{"type":26,"tag":51,"props":69,"children":71},{"style":70},"--shiki-default:#1F2328;--shiki-dark:#E6EDF3",[72],{"type":31,"value":73},"(\n",{"type":26,"tag":51,"props":75,"children":77},{"class":53,"line":76},2,[78,83,89],{"type":26,"tag":51,"props":79,"children":80},{"style":70},[81],{"type":31,"value":82}," VkCommandBuffer ",{"type":26,"tag":51,"props":84,"children":86},{"style":85},"--shiki-default:#953800;--shiki-dark:#FFA657",[87],{"type":31,"value":88},"commandBuffer",{"type":26,"tag":51,"props":90,"children":91},{"style":70},[92],{"type":31,"value":93},",\n",{"type":26,"tag":51,"props":95,"children":97},{"class":53,"line":96},3,[98,103,108],{"type":26,"tag":51,"props":99,"children":100},{"style":70},[101],{"type":31,"value":102}," VkPipelineStageFlagBits ",{"type":26,"tag":51,"props":104,"children":105},{"style":85},[106],{"type":31,"value":107},"pipelineStage",{"type":26,"tag":51,"props":109,"children":110},{"style":70},[111],{"type":31,"value":93},{"type":26,"tag":51,"props":113,"children":115},{"class":53,"line":114},4,[116,121,126],{"type":26,"tag":51,"props":117,"children":118},{"style":70},[119],{"type":31,"value":120}," VkQueryPool ",{"type":26,"tag":51,"props":122,"children":123},{"style":85},[124],{"type":31,"value":125},"queryPool",{"type":26,"tag":51,"props":127,"children":128},{"style":70},[129],{"type":31,"value":93},{"type":26,"tag":51,"props":131,"children":133},{"class":53,"line":132},5,[134,139,144],{"type":26,"tag":51,"props":135,"children":136},{"style":58},[137],{"type":31,"value":138}," uint32_t",{"type":26,"tag":51,"props":140,"children":141},{"style":85},[142],{"type":31,"value":143}," query",{"type":26,"tag":51,"props":145,"children":146},{"style":70},[147],{"type":31,"value":148},");\n",{"type":26,"tag":38,"props":150,"children":155},{"className":151,"code":152,"filename":153,"language":154,"meta":44,"style":44},"language-rs shiki shiki-themes github-light-default github-dark-default","pub fn cmd_write_timestamp(\n command_buffer: vk::CommandBuffer,\n pipeline_stage: PipelineStageFlags,\n query_pool: vk::QueryPool,\n query: u32,\n);\n","Rust","rs",[156],{"type":26,"tag":47,"props":157,"children":158},{"__ignoreMap":44},[159,181,213,234,263,284],{"type":26,"tag":51,"props":160,"children":161},{"class":53,"line":54},[162,167,172,177],{"type":26,"tag":51,"props":163,"children":164},{"style":58},[165],{"type":31,"value":166},"pub",{"type":26,"tag":51,"props":168,"children":169},{"style":58},[170],{"type":31,"value":171}," fn",{"type":26,"tag":51,"props":173,"children":174},{"style":64},[175],{"type":31,"value":176}," cmd_write_timestamp",{"type":26,"tag":51,"props":178,"children":179},{"style":70},[180],{"type":31,"value":73},{"type":26,"tag":51,"props":182,"children":183},{"class":53,"line":76},[184,189,194,199,204,209],{"type":26,"tag":51,"props":185,"children":186},{"style":70},[187],{"type":31,"value":188}," command_buffer",{"type":26,"tag":51,"props":190,"children":191},{"style":58},[192],{"type":31,"value":193},":",{"type":26,"tag":51,"props":195,"children":196},{"style":85},[197],{"type":31,"value":198}," vk",{"type":26,"tag":51,"props":200,"children":201},{"style":58},[202],{"type":31,"value":203},"::",{"type":26,"tag":51,"props":205,"children":206},{"style":85},[207],{"type":31,"value":208},"CommandBuffer",{"type":26,"tag":51,"props":210,"children":211},{"style":70},[212],{"type":31,"value":93},{"type":26,"tag":51,"props":214,"children":215},{"class":53,"line":96},[216,221,225,230],{"type":26,"tag":51,"props":217,"children":218},{"style":70},[219],{"type":31,"value":220}," pipeline_stage",{"type":26,"tag":51,"props":222,"children":223},{"style":58},[224],{"type":31,"value":193},{"type":26,"tag":51,"props":226,"children":227},{"style":85},[228],{"type":31,"value":229}," PipelineStageFlags",{"type":26,"tag":51,"props":231,"children":232},{"style":70},[233],{"type":31,"value":93},{"type":26,"tag":51,"props":235,"children":236},{"class":53,"line":114},[237,242,246,250,254,259],{"type":26,"tag":51,"props":238,"children":239},{"style":70},[240],{"type":31,"value":241}," query_pool",{"type":26,"tag":51,"props":243,"children":244},{"style":58},[245],{"type":31,"value":193},{"type":26,"tag":51,"props":247,"children":248},{"style":85},[249],{"type":31,"value":198},{"type":26,"tag":51,"props":251,"children":252},{"style":58},[253],{"type":31,"value":203},{"type":26,"tag":51,"props":255,"children":256},{"style":85},[257],{"type":31,"value":258},"QueryPool",{"type":26,"tag":51,"props":260,"children":261},{"style":70},[262],{"type":31,"value":93},{"type":26,"tag":51,"props":264,"children":265},{"class":53,"line":132},[266,271,275,280],{"type":26,"tag":51,"props":267,"children":268},{"style":70},[269],{"type":31,"value":270}," query",{"type":26,"tag":51,"props":272,"children":273},{"style":58},[274],{"type":31,"value":193},{"type":26,"tag":51,"props":276,"children":277},{"style":85},[278],{"type":31,"value":279}," u32",{"type":26,"tag":51,"props":281,"children":282},{"style":70},[283],{"type":31,"value":93},{"type":26,"tag":51,"props":285,"children":287},{"class":53,"line":286},6,[288],{"type":26,"tag":51,"props":289,"children":290},{"style":70},[291],{"type":31,"value":148},{"type":26,"tag":293,"props":294,"children":295},"ul",{},[296,307,326,336],{"type":26,"tag":297,"props":298,"children":299},"li",{},[300,305],{"type":26,"tag":47,"props":301,"children":303},{"className":302},[],[304],{"type":31,"value":88},{"type":31,"value":306}," is the command buffer into which the command will be\nrecorded.",{"type":26,"tag":297,"props":308,"children":309},{},[310,315,317,324],{"type":26,"tag":47,"props":311,"children":313},{"className":312},[],[314],{"type":31,"value":107},{"type":31,"value":316}," is a ",{"type":26,"tag":318,"props":319,"children":321},"a",{"href":320},"/man/VkPipelineStageFlagBits",[322],{"type":31,"value":323},"VkPipelineStageFlagBits",{"type":31,"value":325}," value, specifying\na stage of the pipeline.",{"type":26,"tag":297,"props":327,"children":328},{},[329,334],{"type":26,"tag":47,"props":330,"children":332},{"className":331},[],[333],{"type":31,"value":125},{"type":31,"value":335}," is the query pool that will manage the timestamp.",{"type":26,"tag":297,"props":337,"children":338},{},[339,345],{"type":26,"tag":47,"props":340,"children":342},{"className":341},[],[343],{"type":31,"value":344},"query",{"type":31,"value":346}," is the query within the query pool that will contain the\ntimestamp.",{"type":26,"tag":27,"props":348,"children":349},{},[350,352,357],{"type":31,"value":351},"When ",{"type":26,"tag":47,"props":353,"children":355},{"className":354},[],[356],{"type":31,"value":4},{"type":31,"value":358}," is submitted to a queue, it defines an\nexecution dependency on commands that were submitted before it, and writes a\ntimestamp to a query pool.",{"type":26,"tag":27,"props":360,"children":361},{},[362,364,370,372,378,380,385],{"type":31,"value":363},"The first ",{"type":26,"tag":318,"props":365,"children":367},{"href":366},"/chapters/synchronization#synchronization-dependencies-scopes",[368],{"type":31,"value":369},"synchronization scope",{"type":31,"value":371},"\nincludes all commands that occur earlier in\n",{"type":26,"tag":318,"props":373,"children":375},{"href":374},"/chapters/synchronization#synchronization-submission-order",[376],{"type":31,"value":377},"submission order",{"type":31,"value":379},".\nThe synchronization scope is limited to operations on the pipeline stage\nspecified by ",{"type":26,"tag":47,"props":381,"children":383},{"className":382},[],[384],{"type":31,"value":107},{"type":31,"value":386},".",{"type":26,"tag":27,"props":388,"children":389},{},[390,392,396],{"type":31,"value":391},"The second ",{"type":26,"tag":318,"props":393,"children":394},{"href":366},[395],{"type":31,"value":369},{"type":31,"value":397},"\nincludes only the timestamp write operation.",{"type":26,"tag":399,"props":400,"children":401},"note",{},[402],{"type":26,"tag":27,"props":403,"children":404},{},[405,407,413,415,421],{"type":31,"value":406},"Implementations may write the timestamp at any stage that is\n",{"type":26,"tag":318,"props":408,"children":410},{"href":409},"/chapters/synchronization#synchronization-pipeline-stages-order",[411],{"type":31,"value":412},"logically later",{"type":31,"value":414}," than ",{"type":26,"tag":47,"props":416,"children":418},{"className":417},[],[419],{"type":31,"value":420},"stage",{"type":31,"value":386},{"type":26,"tag":27,"props":423,"children":424},{},[425,427,433,435,440,442,448,450,456,458,462,464,467,469,472,474],{"type":31,"value":426},"Any timestamp write that ",{"type":26,"tag":318,"props":428,"children":430},{"href":429},"/chapters/synchronization#synchronization-dependencies-execution",[431],{"type":31,"value":432},"happens-after",{"type":31,"value":434}," another timestamp write in the same submission ",{"type":26,"tag":436,"props":437,"children":439},"normative",{"type":438},"must",[],{"type":31,"value":441}," not\nhave a lower value unless its value overflows the maximum supported integer\nbit width of the query.\nIf\n",{"type":26,"tag":318,"props":443,"children":445},{"href":444},"/extensions/VK_KHR_calibrated_timestamps",[446],{"type":31,"value":447},"VK_KHR_calibrated_timestamps",{"type":31,"value":449},"\nor\n",{"type":26,"tag":318,"props":451,"children":453},{"href":452},"/extensions/VK_EXT_calibrated_timestamps",[454],{"type":31,"value":455},"VK_EXT_calibrated_timestamps",{"type":31,"value":457},"\nis enabled, this extends to timestamp writes across all submissions on the\nsame logical device: any timestamp write that\n",{"type":26,"tag":318,"props":459,"children":460},{"href":429},[461],{"type":31,"value":432},{"type":31,"value":463}," another ",{"type":26,"tag":436,"props":465,"children":466},{"type":438},[],{"type":31,"value":468}," not\nhave a lower value unless its value overflows the maximum supported integer\nbit width of the query.\nTimestamps written by this command ",{"type":26,"tag":436,"props":470,"children":471},{"type":438},[],{"type":31,"value":473}," be in the\n",{"type":26,"tag":47,"props":475,"children":477},{"className":476},[],[478],{"type":31,"value":479},"VK_TIME_DOMAIN_DEVICE_KHR",{"type":26,"tag":27,"props":481,"children":482},{},[483,489,491,494],{"type":26,"tag":318,"props":484,"children":486},{"href":485},"/man/VkTimeDomainKHR#VkTimeDomainKHR",[487],{"type":31,"value":488},"time domain",{"type":31,"value":490},".\nIf an overflow occurs, the timestamp value ",{"type":26,"tag":436,"props":492,"children":493},{"type":438},[],{"type":31,"value":495}," wrap back to zero.",{"type":26,"tag":399,"props":497,"children":498},{},[499],{"type":26,"tag":27,"props":500,"children":501},{},[502,504,508,509,513],{"type":31,"value":503},"Comparisons between timestamps should be done between timestamps where they\nare guaranteed to not decrease.\nFor example, subtracting an older timestamp from a newer one to determine\nthe execution time of a sequence of commands is only a reliable measurement\nif the two timestamp writes were performed in the same\nsubmission, or if the writes were performed on the same logical device and\n",{"type":26,"tag":318,"props":505,"children":506},{"href":444},[507],{"type":31,"value":447},{"type":31,"value":449},{"type":26,"tag":318,"props":510,"children":511},{"href":452},[512],{"type":31,"value":455},{"type":31,"value":514},"\nis enabled.",{"type":26,"tag":27,"props":516,"children":517},{},[518,520,525,527,532],{"type":31,"value":519},"If ",{"type":26,"tag":47,"props":521,"children":523},{"className":522},[],[524],{"type":31,"value":4},{"type":31,"value":526}," is called while executing a render pass\ninstance that has multiview enabled, the timestamp uses N consecutive\nquery indices in the query pool (starting at ",{"type":26,"tag":47,"props":528,"children":530},{"className":529},[],[531],{"type":31,"value":344},{"type":31,"value":533},") where N is\nthe number of bits set in the view mask of the subpass the command is\nexecuted in.\nThe resulting query values are determined by an implementation-dependent\nchoice of one of the following behaviors:",{"type":26,"tag":293,"props":535,"children":536},{},[537,542],{"type":26,"tag":297,"props":538,"children":539},{},[540],{"type":31,"value":541},"The first query is a timestamp value and (if more than one bit is set in\nthe view mask) zero is written to the remaining queries.\nIf two timestamps are written in the same subpass, the sum of the\nexecution time of all views between those commands is the difference\nbetween the first query written by each command.",{"type":26,"tag":297,"props":543,"children":544},{},[545,547,551],{"type":31,"value":546},"All N queries are timestamp values.\nIf two timestamps are written in the same subpass, the sum of the\nexecution time of all views between those commands is the sum of the\ndifference between corresponding queries written by each command.\nThe difference between corresponding queries ",{"type":26,"tag":436,"props":548,"children":550},{"type":549},"may",[],{"type":31,"value":552}," be the execution time\nof a single view.",{"type":26,"tag":27,"props":554,"children":555},{},[556,558,562],{"type":31,"value":557},"In either case, the application ",{"type":26,"tag":436,"props":559,"children":561},{"type":560},"can",[],{"type":31,"value":563}," sum the differences between all N\nqueries to determine the total execution time.",{"type":26,"tag":565,"props":566,"children":568},"validity-group",{"name":567},"Valid Usage",[569,604,642,686,722,757,792,828,863,910,946,992,1024,1044,1067,1087],{"type":26,"tag":570,"props":571,"children":573},"validity-field",{"name":572},"VUID-vkCmdWriteTimestamp-pipelineStage-04074",[574],{"type":26,"tag":27,"props":575,"children":576},{},[577,582,584,587,589,595,597,602],{"type":26,"tag":47,"props":578,"children":580},{"className":579},[],[581],{"type":31,"value":107},{"type":31,"value":583}," ",{"type":26,"tag":436,"props":585,"children":586},{"type":438},[],{"type":31,"value":588}," be a\n",{"type":26,"tag":318,"props":590,"children":592},{"href":591},"/chapters/synchronization#synchronization-pipeline-stages-supported",[593],{"type":31,"value":594},"valid stage",{"type":31,"value":596}," for the queue\nfamily that was used to create the command pool that ",{"type":26,"tag":47,"props":598,"children":600},{"className":599},[],[601],{"type":31,"value":88},{"type":31,"value":603},"\nwas allocated from",{"type":26,"tag":570,"props":605,"children":607},{"name":606},"VUID-vkCmdWriteTimestamp-pipelineStage-04075",[608],{"type":26,"tag":27,"props":609,"children":610},{},[611,613,623,625,630,631,634,636],{"type":31,"value":612},"If the ",{"type":26,"tag":318,"props":614,"children":616},{"href":615},"/man/VkPhysicalDeviceFeatures#features-geometryShader",[617],{"type":26,"tag":47,"props":618,"children":620},{"className":619},[],[621],{"type":31,"value":622},"geometryShader",{"type":31,"value":624}," feature is not\nenabled, ",{"type":26,"tag":47,"props":626,"children":628},{"className":627},[],[629],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":632,"children":633},{"type":438},[],{"type":31,"value":635}," not be\n",{"type":26,"tag":47,"props":637,"children":639},{"className":638},[],[640],{"type":31,"value":641},"VK_PIPELINE_STAGE_GEOMETRY_SHADER_BIT",{"type":26,"tag":570,"props":643,"children":645},{"name":644},"VUID-vkCmdWriteTimestamp-pipelineStage-04076",[646],{"type":26,"tag":27,"props":647,"children":648},{},[649,650,660,662,667,668,671,672,678,680],{"type":31,"value":612},{"type":26,"tag":318,"props":651,"children":653},{"href":652},"/man/VkPhysicalDeviceFeatures#features-tessellationShader",[654],{"type":26,"tag":47,"props":655,"children":657},{"className":656},[],[658],{"type":31,"value":659},"tessellationShader",{"type":31,"value":661}," feature\nis not enabled, ",{"type":26,"tag":47,"props":663,"children":665},{"className":664},[],[666],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":669,"children":670},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":673,"children":675},{"className":674},[],[676],{"type":31,"value":677},"VK_PIPELINE_STAGE_TESSELLATION_CONTROL_SHADER_BIT",{"type":31,"value":679}," or\n",{"type":26,"tag":47,"props":681,"children":683},{"className":682},[],[684],{"type":31,"value":685},"VK_PIPELINE_STAGE_TESSELLATION_EVALUATION_SHADER_BIT",{"type":26,"tag":570,"props":687,"children":689},{"name":688},"VUID-vkCmdWriteTimestamp-pipelineStage-04077",[690],{"type":26,"tag":27,"props":691,"children":692},{},[693,694,704,706,711,712,715,716],{"type":31,"value":612},{"type":26,"tag":318,"props":695,"children":697},{"href":696},"/man/VkPhysicalDeviceConditionalRenderingFeaturesEXT#features-conditionalRendering",[698],{"type":26,"tag":47,"props":699,"children":701},{"className":700},[],[702],{"type":31,"value":703},"conditionalRendering",{"type":31,"value":705},"\nfeature is not enabled, ",{"type":26,"tag":47,"props":707,"children":709},{"className":708},[],[710],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":713,"children":714},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":717,"children":719},{"className":718},[],[720],{"type":31,"value":721},"VK_PIPELINE_STAGE_CONDITIONAL_RENDERING_BIT_EXT",{"type":26,"tag":570,"props":723,"children":725},{"name":724},"VUID-vkCmdWriteTimestamp-pipelineStage-04078",[726],{"type":26,"tag":27,"props":727,"children":728},{},[729,730,740,741,746,747,750,751],{"type":31,"value":612},{"type":26,"tag":318,"props":731,"children":733},{"href":732},"/man/VkPhysicalDeviceFragmentDensityMapFeaturesEXT#features-fragmentDensityMap",[734],{"type":26,"tag":47,"props":735,"children":737},{"className":736},[],[738],{"type":31,"value":739},"fragmentDensityMap",{"type":31,"value":661},{"type":26,"tag":47,"props":742,"children":744},{"className":743},[],[745],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":748,"children":749},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":752,"children":754},{"className":753},[],[755],{"type":31,"value":756},"VK_PIPELINE_STAGE_FRAGMENT_DENSITY_PROCESS_BIT_EXT",{"type":26,"tag":570,"props":758,"children":760},{"name":759},"VUID-vkCmdWriteTimestamp-pipelineStage-04079",[761],{"type":26,"tag":27,"props":762,"children":763},{},[764,765,775,776,781,782,785,786],{"type":31,"value":612},{"type":26,"tag":318,"props":766,"children":768},{"href":767},"/man/VkPhysicalDeviceTransformFeedbackFeaturesEXT#features-transformFeedback",[769],{"type":26,"tag":47,"props":770,"children":772},{"className":771},[],[773],{"type":31,"value":774},"transformFeedback",{"type":31,"value":661},{"type":26,"tag":47,"props":777,"children":779},{"className":778},[],[780],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":783,"children":784},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":787,"children":789},{"className":788},[],[790],{"type":31,"value":791},"VK_PIPELINE_STAGE_TRANSFORM_FEEDBACK_BIT_EXT",{"type":26,"tag":570,"props":793,"children":795},{"name":794},"VUID-vkCmdWriteTimestamp-pipelineStage-04080",[796],{"type":26,"tag":27,"props":797,"children":798},{},[799,800,810,812,817,818,821,822],{"type":31,"value":612},{"type":26,"tag":318,"props":801,"children":803},{"href":802},"/man/VkPhysicalDeviceMeshShaderFeaturesEXT#features-meshShader",[804],{"type":26,"tag":47,"props":805,"children":807},{"className":806},[],[808],{"type":31,"value":809},"meshShader",{"type":31,"value":811}," feature is not enabled,\n",{"type":26,"tag":47,"props":813,"children":815},{"className":814},[],[816],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":819,"children":820},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":823,"children":825},{"className":824},[],[826],{"type":31,"value":827},"VK_PIPELINE_STAGE_MESH_SHADER_BIT_EXT",{"type":26,"tag":570,"props":829,"children":831},{"name":830},"VUID-vkCmdWriteTimestamp-pipelineStage-07077",[832],{"type":26,"tag":27,"props":833,"children":834},{},[835,836,846,847,852,853,856,857],{"type":31,"value":612},{"type":26,"tag":318,"props":837,"children":839},{"href":838},"/man/VkPhysicalDeviceMeshShaderFeaturesEXT#features-taskShader",[840],{"type":26,"tag":47,"props":841,"children":843},{"className":842},[],[844],{"type":31,"value":845},"taskShader",{"type":31,"value":811},{"type":26,"tag":47,"props":848,"children":850},{"className":849},[],[851],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":854,"children":855},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":858,"children":860},{"className":859},[],[861],{"type":31,"value":862},"VK_PIPELINE_STAGE_TASK_SHADER_BIT_EXT",{"type":26,"tag":570,"props":864,"children":866},{"name":865},"VUID-vkCmdWriteTimestamp-shadingRateImage-07314",[867],{"type":26,"tag":27,"props":868,"children":869},{},[870,872,882,883,893,895,900,903,904],{"type":31,"value":871},"If neither the ",{"type":26,"tag":318,"props":873,"children":875},{"href":874},"/man/VkPhysicalDeviceShadingRateImageFeaturesNV#features-shadingRateImage",[876],{"type":26,"tag":47,"props":877,"children":879},{"className":878},[],[880],{"type":31,"value":881},"shadingRateImage",{"type":31,"value":679},{"type":26,"tag":318,"props":884,"children":886},{"href":885},"/man/VkPhysicalDeviceFragmentShadingRateFeaturesKHR#features-attachmentFragmentShadingRate",[887],{"type":26,"tag":47,"props":888,"children":890},{"className":889},[],[891],{"type":31,"value":892},"attachmentFragmentShadingRate",{"type":31,"value":894}," are enabled, ",{"type":26,"tag":47,"props":896,"children":898},{"className":897},[],[899],{"type":31,"value":107},{"type":26,"tag":436,"props":901,"children":902},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":905,"children":907},{"className":906},[],[908],{"type":31,"value":909},"VK_PIPELINE_STAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR",{"type":26,"tag":570,"props":911,"children":913},{"name":912},"VUID-vkCmdWriteTimestamp-synchronization2-06489",[914],{"type":26,"tag":27,"props":915,"children":916},{},[917,918,928,930,935,936,939,940],{"type":31,"value":612},{"type":26,"tag":318,"props":919,"children":921},{"href":920},"/man/VkPhysicalDeviceSynchronization2Features#features-synchronization2",[922],{"type":26,"tag":47,"props":923,"children":925},{"className":924},[],[926],{"type":31,"value":927},"synchronization2",{"type":31,"value":929}," feature is\nnot enabled, ",{"type":26,"tag":47,"props":931,"children":933},{"className":932},[],[934],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":937,"children":938},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":941,"children":943},{"className":942},[],[944],{"type":31,"value":945},"VK_PIPELINE_STAGE_NONE",{"type":26,"tag":570,"props":947,"children":949},{"name":948},"VUID-vkCmdWriteTimestamp-rayTracingPipeline-07943",[950],{"type":26,"tag":27,"props":951,"children":952},{},[953,954,960,962,974,976,981,982,985,986],{"type":31,"value":871},{"type":26,"tag":318,"props":955,"children":957},{"href":956},"/extensions/VK_NV_ray_tracing",[958],{"type":31,"value":959},"VK_NV_ray_tracing",{"type":31,"value":961}," extension or\n",{"type":26,"tag":318,"props":963,"children":965},{"href":964},"/man/VkPhysicalDeviceRayTracingPipelineFeaturesKHR#features-rayTracingPipeline",[966,972],{"type":26,"tag":47,"props":967,"children":969},{"className":968},[],[970],{"type":31,"value":971},"rayTracingPipeline",{"type":31,"value":973}," feature",{"type":31,"value":975}," are\nenabled, ",{"type":26,"tag":47,"props":977,"children":979},{"className":978},[],[980],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":983,"children":984},{"type":438},[],{"type":31,"value":635},{"type":26,"tag":47,"props":987,"children":989},{"className":988},[],[990],{"type":31,"value":991},"VK_PIPELINE_STAGE_RAY_TRACING_SHADER_BIT_KHR",{"type":26,"tag":570,"props":993,"children":995},{"name":994},"VUID-vkCmdWriteTimestamp-queryPool-01416",[996],{"type":26,"tag":27,"props":997,"children":998},{},[999,1004,1005,1008,1010,1016,1018],{"type":26,"tag":47,"props":1000,"children":1002},{"className":1001},[],[1003],{"type":31,"value":125},{"type":31,"value":583},{"type":26,"tag":436,"props":1006,"children":1007},{"type":438},[],{"type":31,"value":1009}," have been created with a ",{"type":26,"tag":47,"props":1011,"children":1013},{"className":1012},[],[1014],{"type":31,"value":1015},"queryType",{"type":31,"value":1017}," of\n",{"type":26,"tag":47,"props":1019,"children":1021},{"className":1020},[],[1022],{"type":31,"value":1023},"VK_QUERY_TYPE_TIMESTAMP",{"type":26,"tag":570,"props":1025,"children":1027},{"name":1026},"VUID-vkCmdWriteTimestamp-timestampValidBits-00829",[1028],{"type":26,"tag":27,"props":1029,"children":1030},{},[1031,1033,1036,1038],{"type":31,"value":1032},"The command pool’s queue family ",{"type":26,"tag":436,"props":1034,"children":1035},{"type":438},[],{"type":31,"value":1037}," support a non-zero\n",{"type":26,"tag":47,"props":1039,"children":1041},{"className":1040},[],[1042],{"type":31,"value":1043},"timestampValidBits",{"type":26,"tag":570,"props":1045,"children":1047},{"name":1046},"VUID-vkCmdWriteTimestamp-query-04904",[1048],{"type":26,"tag":27,"props":1049,"children":1050},{},[1051,1056,1057,1060,1062],{"type":26,"tag":47,"props":1052,"children":1054},{"className":1053},[],[1055],{"type":31,"value":344},{"type":31,"value":583},{"type":26,"tag":436,"props":1058,"children":1059},{"type":438},[],{"type":31,"value":1061}," be less than the number of queries in ",{"type":26,"tag":47,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":31,"value":125},{"type":26,"tag":570,"props":1068,"children":1070},{"name":1069},"VUID-vkCmdWriteTimestamp-None-00830",[1071],{"type":26,"tag":27,"props":1072,"children":1073},{},[1074,1076,1079,1081],{"type":31,"value":1075},"All queries used by the command ",{"type":26,"tag":436,"props":1077,"children":1078},{"type":438},[],{"type":31,"value":1080}," be ",{"type":26,"tag":1082,"props":1083,"children":1084},"em",{},[1085],{"type":31,"value":1086},"unavailable",{"type":26,"tag":570,"props":1088,"children":1090},{"name":1089},"VUID-vkCmdWriteTimestamp-query-00831",[1091],{"type":26,"tag":27,"props":1092,"children":1093},{},[1094,1095,1100,1102,1107,1109,1112,1114],{"type":31,"value":519},{"type":26,"tag":47,"props":1096,"children":1098},{"className":1097},[],[1099],{"type":31,"value":4},{"type":31,"value":1101}," is called within a render pass instance,\nthe sum of ",{"type":26,"tag":47,"props":1103,"children":1105},{"className":1104},[],[1106],{"type":31,"value":344},{"type":31,"value":1108}," and the number of bits set in the current\nsubpass’s view mask ",{"type":26,"tag":436,"props":1110,"children":1111},{"type":438},[],{"type":31,"value":1113}," be less than or equal to the number of queries\nin ",{"type":26,"tag":47,"props":1115,"children":1117},{"className":1116},[],[1118],{"type":31,"value":125},{"type":26,"tag":565,"props":1120,"children":1122},{"name":1121},"Valid Usage (Implicit)",[1123,1149,1172,1196,1220,1249],{"type":26,"tag":570,"props":1124,"children":1126},{"name":1125},"VUID-vkCmdWriteTimestamp-commandBuffer-parameter",[1127],{"type":26,"tag":27,"props":1128,"children":1129},{},[1130,1135,1136,1139,1141,1147],{"type":26,"tag":47,"props":1131,"children":1133},{"className":1132},[],[1134],{"type":31,"value":88},{"type":31,"value":583},{"type":26,"tag":436,"props":1137,"children":1138},{"type":438},[],{"type":31,"value":1140}," be a valid ",{"type":26,"tag":318,"props":1142,"children":1144},{"href":1143},"/man/VkCommandBuffer",[1145],{"type":31,"value":1146},"VkCommandBuffer",{"type":31,"value":1148}," handle",{"type":26,"tag":570,"props":1150,"children":1152},{"name":1151},"VUID-vkCmdWriteTimestamp-pipelineStage-parameter",[1153],{"type":26,"tag":27,"props":1154,"children":1155},{},[1156,1161,1162,1165,1166,1170],{"type":26,"tag":47,"props":1157,"children":1159},{"className":1158},[],[1160],{"type":31,"value":107},{"type":31,"value":583},{"type":26,"tag":436,"props":1163,"children":1164},{"type":438},[],{"type":31,"value":1140},{"type":26,"tag":318,"props":1167,"children":1168},{"href":320},[1169],{"type":31,"value":323},{"type":31,"value":1171}," value",{"type":26,"tag":570,"props":1173,"children":1175},{"name":1174},"VUID-vkCmdWriteTimestamp-queryPool-parameter",[1176],{"type":26,"tag":27,"props":1177,"children":1178},{},[1179,1184,1185,1188,1189,1195],{"type":26,"tag":47,"props":1180,"children":1182},{"className":1181},[],[1183],{"type":31,"value":125},{"type":31,"value":583},{"type":26,"tag":436,"props":1186,"children":1187},{"type":438},[],{"type":31,"value":1140},{"type":26,"tag":318,"props":1190,"children":1192},{"href":1191},"/man/VkQueryPool",[1193],{"type":31,"value":1194},"VkQueryPool",{"type":31,"value":1148},{"type":26,"tag":570,"props":1197,"children":1199},{"name":1198},"VUID-vkCmdWriteTimestamp-commandBuffer-recording",[1200],{"type":26,"tag":27,"props":1201,"children":1202},{},[1203,1208,1209,1212,1214],{"type":26,"tag":47,"props":1204,"children":1206},{"className":1205},[],[1207],{"type":31,"value":88},{"type":31,"value":583},{"type":26,"tag":436,"props":1210,"children":1211},{"type":438},[],{"type":31,"value":1213}," be in the ",{"type":26,"tag":318,"props":1215,"children":1217},{"href":1216},"/chapters/commandbuffers#commandbuffers-lifecycle",[1218],{"type":31,"value":1219},"recording state",{"type":26,"tag":570,"props":1221,"children":1223},{"name":1222},"VUID-vkCmdWriteTimestamp-commandBuffer-cmdpool",[1224],{"type":26,"tag":27,"props":1225,"children":1226},{},[1227,1229,1235,1237,1242,1244,1247],{"type":31,"value":1228},"The ",{"type":26,"tag":47,"props":1230,"children":1232},{"className":1231},[],[1233],{"type":31,"value":1234},"VkCommandPool",{"type":31,"value":1236}," that ",{"type":26,"tag":47,"props":1238,"children":1240},{"className":1239},[],[1241],{"type":31,"value":88},{"type":31,"value":1243}," was allocated from ",{"type":26,"tag":436,"props":1245,"children":1246},{"type":438},[],{"type":31,"value":1248}," support transfer, graphics, compute, decode, encode, or optical flow operations",{"type":26,"tag":570,"props":1250,"children":1252},{"name":1251},"VUID-vkCmdWriteTimestamp-commonparent",[1253],{"type":26,"tag":27,"props":1254,"children":1255},{},[1256,1258,1263,1265,1270,1271,1274,1276],{"type":31,"value":1257},"Both of ",{"type":26,"tag":47,"props":1259,"children":1261},{"className":1260},[],[1262],{"type":31,"value":88},{"type":31,"value":1264},", and ",{"type":26,"tag":47,"props":1266,"children":1268},{"className":1267},[],[1269],{"type":31,"value":125},{"type":31,"value":583},{"type":26,"tag":436,"props":1272,"children":1273},{"type":438},[],{"type":31,"value":1275}," have been created, allocated, or retrieved from the same ",{"type":26,"tag":318,"props":1277,"children":1279},{"href":1278},"/man/VkDevice",[1280],{"type":31,"value":1281},"VkDevice",{"type":26,"tag":1283,"props":1284,"children":1286},"validity-box",{"name":1285},"Host Synchronization",[1287],{"type":26,"tag":293,"props":1288,"children":1289},{},[1290,1306],{"type":26,"tag":297,"props":1291,"children":1292},{},[1293,1295,1300,1301,1304],{"type":31,"value":1294},"Host access to ",{"type":26,"tag":47,"props":1296,"children":1298},{"className":1297},[],[1299],{"type":31,"value":88},{"type":31,"value":583},{"type":26,"tag":436,"props":1302,"children":1303},{"type":438},[],{"type":31,"value":1305}," be externally synchronized",{"type":26,"tag":297,"props":1307,"children":1308},{},[1309,1311,1316,1317,1322,1323,1326],{"type":31,"value":1310},"Host access to the ",{"type":26,"tag":47,"props":1312,"children":1314},{"className":1313},[],[1315],{"type":31,"value":1234},{"type":31,"value":1236},{"type":26,"tag":47,"props":1318,"children":1320},{"className":1319},[],[1321],{"type":31,"value":88},{"type":31,"value":1243},{"type":26,"tag":436,"props":1324,"children":1325},{"type":438},[],{"type":31,"value":1327}," be externally synchronized\n::",{"type":26,"tag":1329,"props":1330,"children":1331},"style",{},[1332],{"type":31,"value":1333},"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":44,"searchDepth":76,"depth":76,"links":1335},[],"markdown",1729612508001]