mirror of
https://github.com/status-im/Vulkan-Docs.git
synced 2025-02-07 12:03:33 +00:00
5abf83f95d
* Update release number to 107. Public Issues: * Fix revision date for the `<<VK_AMD_gpu_shader_half_float>>` appendix (public issue 617). * Make <<synchronization-pipeline-barriers-subpass-self-dependencies, subpass self-dependencies>> less restrictive (public issue 777). * Fix the `<<VK_EXT_full_screen_exclusive>>` dependency on `<<VK_KHR_win32_surface>>` in `vk.xml` (public pull request 849). * Remove single-page (`apispec.html`) refpage sub-targets from the Makefile `allman` target and the build instructions. The target is still present in the Makefile, but we have not been actively maintaining the single-page document and do not promise it will work. The full Specification and the individual API reference pages are what we support and publish at present (public issue 949). Internal Issues: * De-duplicate common valid usage statements shared by multiple commands or structures by using asciidoctor includes and dynamically assigning part of the valid usage ID based on which command or structure they're being applied to (internal issue 779). * Add reference pages for constructs not part of the formal API, such as platform calling convention macros, and script changes supporting them This required suppressing some check_spec_links warning classes in order to pass CI, until a more sophisticated fix can be done (internal issue 888). * Change math notation for the elink:VkPrimitiveTopology descriptions to use short forms `v` and `p` instead of `vertex` and `primitive`, increasing legibility (internal issue 1611). * Rewrite generated file includes relative to a globally specified path, fixing some issues with refpage generation (internal issue 1630). * Update contributor list for `<<VK_EXT_calibrated_timestamps>>`. * Fix use of pathlin in `scripts/generator.py` so the script will work on Windows under Python 3.5 (internal merge request 3107). * Add missing conditionals around the <<descriptorsets-accelerationstructure, Acceleration Structure>> section (internal merge request 3108). * More script synchronization with OpenXR spec repository (internal merge request 3109). * Mark the `<<VK_AMD_gpu_shader_half_float>>` and `<<VK_AMD_gpu_shader_int16>>` extensions as deprecated in `vk.xml` and the corresponding extension appendices (internal merge request 3112). New Extensions: * `<<VK_EXT_headless_surface>>`
103 lines
4.4 KiB
Plaintext
103 lines
4.4 KiB
Plaintext
[[device-generated-commands]]
|
|
= Device-Generated Commands
|
|
|
|
This chapter discusses the generation of command buffer content on the
|
|
device.
|
|
These principle steps are to be taken to generate commands on the device:
|
|
|
|
* Make resource bindings accessible for the device via registering in a
|
|
sname:VkObjectTableNVX.
|
|
* Define via sname:VkIndirectCommandsLayoutNVX the sequence of commands
|
|
which should be generated.
|
|
* Fill one or more sname:VkBuffer with the appropriate content that gets
|
|
interpreted by sname:VkIndirectCommandsLayoutNVX.
|
|
* Reserve command space via flink:vkCmdReserveSpaceForCommandsNVX in a
|
|
secondary sname:VkCommandBuffer where the generated commands should be
|
|
recorded.
|
|
* Generate the actual commands via flink:vkCmdProcessCommandsNVX passing
|
|
all required data.
|
|
|
|
Execution of such generated commands can either be triggered directly with
|
|
the generation process, or by executing the secondary sname:VkCommandBuffer
|
|
that was chosen as optional target.
|
|
The latter allows re-using generated commands as well.
|
|
Similar to sname:VkDescriptorSet, special care should: be taken for the
|
|
lifetime of resources referenced in sname:VkObjectTableNVX, which may be
|
|
accessed at either generation or execution time.
|
|
|
|
flink:vkCmdProcessCommandsNVX executes in a separate logical pipeline from
|
|
either graphics or compute.
|
|
When generating commands into a secondary command buffer, the command
|
|
generation must: be explicitly synchronized against the secondary command
|
|
buffer's execution.
|
|
When not using a secondary command buffer, the command generation is
|
|
automatically synchronized against the command execution.
|
|
|
|
== Features and Limitations
|
|
|
|
[open,refpage='vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX',desc='Returns device-generated commands related properties of a physical device',type='protos']
|
|
--
|
|
|
|
To query the support of related features and limitations, call:
|
|
|
|
include::{generated}/api/protos/vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX.txt[]
|
|
|
|
* pname:physicalDevice is the handle to the physical device whose
|
|
properties will be queried.
|
|
* pname:pFeatures points to an instance of the
|
|
slink:VkDeviceGeneratedCommandsFeaturesNVX structure, that will be
|
|
filled with returned information.
|
|
* pname:pLimits points to an instance of the
|
|
slink:VkDeviceGeneratedCommandsLimitsNVX structure, that will be filled
|
|
with returned information.
|
|
|
|
include::{generated}/validity/protos/vkGetPhysicalDeviceGeneratedCommandsPropertiesNVX.txt[]
|
|
--
|
|
|
|
[open,refpage='VkDeviceGeneratedCommandsFeaturesNVX',desc='Structure specifying physical device support',type='structs']
|
|
--
|
|
|
|
The sname:VkDeviceGeneratedCommandsFeaturesNVX structure is defined as:
|
|
|
|
include::{generated}/api/structs/VkDeviceGeneratedCommandsFeaturesNVX.txt[]
|
|
|
|
* pname:sType is the type of this structure.
|
|
* pname:pNext is `NULL` or a pointer to an extension-specific structure.
|
|
* pname:computeBindingPointSupport specifies whether the
|
|
sname:VkObjectTableNVX supports entries with
|
|
ename:VK_OBJECT_ENTRY_USAGE_GRAPHICS_BIT_NVX bit set and
|
|
sname:VkIndirectCommandsLayoutNVX supports
|
|
ename:VK_PIPELINE_BIND_POINT_COMPUTE.
|
|
|
|
include::{generated}/validity/structs/VkDeviceGeneratedCommandsFeaturesNVX.txt[]
|
|
--
|
|
|
|
[open,refpage='VkDeviceGeneratedCommandsLimitsNVX',desc='Structure specifying physical device limits',type='structs']
|
|
--
|
|
|
|
The sname:VkDeviceGeneratedCommandsLimitsNVX structure is defined as:
|
|
|
|
include::{generated}/api/structs/VkDeviceGeneratedCommandsLimitsNVX.txt[]
|
|
|
|
* pname:sType is the type of this structure.
|
|
* pname:pNext is `NULL` or a pointer to an extension-specific structure.
|
|
* pname:maxIndirectCommandsLayoutTokenCount the maximum number of tokens
|
|
in sname:VkIndirectCommandsLayoutNVX.
|
|
* pname:maxObjectEntryCounts the maximum number of entries per resource
|
|
type in sname:VkObjectTableNVX.
|
|
* pname:minSequenceCountBufferOffsetAlignment the minimum alignment for
|
|
memory addresses optionally used in fname:vkCmdProcessCommandsNVX.
|
|
* pname:minSequenceIndexBufferOffsetAlignment the minimum alignment for
|
|
memory addresses optionally used in fname:vkCmdProcessCommandsNVX.
|
|
* pname:minCommandsTokenBufferOffsetAlignment the minimum alignment for
|
|
memory addresses optionally used in fname:vkCmdProcessCommandsNVX.
|
|
|
|
include::{generated}/validity/structs/VkDeviceGeneratedCommandsLimitsNVX.txt[]
|
|
--
|
|
|
|
include::objecttable.txt[]
|
|
|
|
include::indirectcommands.txt[]
|
|
|
|
include::generation.txt[]
|