Package org.lwjgl.vulkan
Class AMDAntiLag
java.lang.Object
org.lwjgl.vulkan.AMDAntiLag
This extension automatically paces the CPU to make sure it does not get too far ahead of the GPU, reducing the latency between inputs received and updates on the screen. Additionally, Anti-Lag+ offers applications the ability to inform the driver when input processing begins, in order to align the timing of display updates, enabling even lower latency between receiving input and displaying on the screen.
- Name String
VK_AMD_anti_lag- Extension Type
- Device extension
- Registered Extension Number
- 477
- Revision
- 1
- Contact
- Stu Smith
- Extension Proposal
- VK_AMD_anti_lag
Other Extension Metadata
- Last Modified Date
- 2024-06-06
- IP Status
- No known IP claims.
- Contributors
- Tobias Hector, AMD
- Stuart Smith, AMD
- Arkadiusz Sarwa, AMD
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intVkAntiLagModeAMD - Set the status of the anti-lag featurestatic final intVkAntiLagModeAMD - Set the status of the anti-lag featurestatic final intVkAntiLagModeAMD - Set the status of the anti-lag featurestatic final intVkAntiLagStageAMD - Report the application stagestatic final intVkAntiLagStageAMD - Report the application stagestatic final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnvkAntiLagUpdateAMD(org.lwjgl.vulkan.VkDevice device, long pData) Unsafe version of:AntiLagUpdateAMDstatic voidvkAntiLagUpdateAMD(org.lwjgl.vulkan.VkDevice device, VkAntiLagDataAMD pData) Provide information to reduce latency.
-
Field Details
-
VK_AMD_ANTI_LAG_SPEC_VERSION
public static final int VK_AMD_ANTI_LAG_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_AMD_ANTI_LAG_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ANTI_LAG_FEATURES_AMD
public static final int VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ANTI_LAG_FEATURES_AMDExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_ANTI_LAG_DATA_AMD
public static final int VK_STRUCTURE_TYPE_ANTI_LAG_DATA_AMDExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_ANTI_LAG_PRESENTATION_INFO_AMD
public static final int VK_STRUCTURE_TYPE_ANTI_LAG_PRESENTATION_INFO_AMDExtendsVkStructureType.Enum values:
- See Also:
-
VK_ANTI_LAG_MODE_DRIVER_CONTROL_AMD
public static final int VK_ANTI_LAG_MODE_DRIVER_CONTROL_AMDVkAntiLagModeAMD - Set the status of the anti-lag featureDescription
ANTI_LAG_MODE_DRIVER_CONTROL_AMDspecifies that anti-lag will be enabled or disabled depending on driver settings.ANTI_LAG_MODE_ON_AMDspecifies that anti-lag will be enabled.ANTI_LAG_MODE_OFF_AMDspecifies that anti-lag will be disabled.
See Also
- See Also:
-
VK_ANTI_LAG_MODE_ON_AMD
public static final int VK_ANTI_LAG_MODE_ON_AMDVkAntiLagModeAMD - Set the status of the anti-lag featureDescription
ANTI_LAG_MODE_DRIVER_CONTROL_AMDspecifies that anti-lag will be enabled or disabled depending on driver settings.ANTI_LAG_MODE_ON_AMDspecifies that anti-lag will be enabled.ANTI_LAG_MODE_OFF_AMDspecifies that anti-lag will be disabled.
See Also
- See Also:
-
VK_ANTI_LAG_MODE_OFF_AMD
public static final int VK_ANTI_LAG_MODE_OFF_AMDVkAntiLagModeAMD - Set the status of the anti-lag featureDescription
ANTI_LAG_MODE_DRIVER_CONTROL_AMDspecifies that anti-lag will be enabled or disabled depending on driver settings.ANTI_LAG_MODE_ON_AMDspecifies that anti-lag will be enabled.ANTI_LAG_MODE_OFF_AMDspecifies that anti-lag will be disabled.
See Also
- See Also:
-
VK_ANTI_LAG_STAGE_INPUT_AMD
public static final int VK_ANTI_LAG_STAGE_INPUT_AMDVkAntiLagStageAMD - Report the application stageDescription
ANTI_LAG_STAGE_INPUT_AMDspecifies the stage before processing input.ANTI_LAG_STAGE_PRESENT_AMDspecifies the stage beforeQueuePresentKHR.
See Also
- See Also:
-
VK_ANTI_LAG_STAGE_PRESENT_AMD
public static final int VK_ANTI_LAG_STAGE_PRESENT_AMDVkAntiLagStageAMD - Report the application stageDescription
ANTI_LAG_STAGE_INPUT_AMDspecifies the stage before processing input.ANTI_LAG_STAGE_PRESENT_AMDspecifies the stage beforeQueuePresentKHR.
See Also
- See Also:
-
-
Method Details
-
nvkAntiLagUpdateAMD
public static void nvkAntiLagUpdateAMD(org.lwjgl.vulkan.VkDevice device, long pData) Unsafe version of:AntiLagUpdateAMD -
vkAntiLagUpdateAMD
Provide information to reduce latency.C Specification
To lower latency, call:
void vkAntiLagUpdateAMD( VkDevice device, const VkAntiLagDataAMD* pData);Description
This command should be executed immediately before the application processes user input. If
pDatais notNULLandVkAntiLagDataAMD::presentationInfois notNULL, this command should be executed again beforeQueuePresentKHR, withpPresentationInfoset to matching values.Valid Usage
- The
antiLagfeature must be enabled
Valid Usage (Implicit)
devicemust be a validVkDevicehandlepDatamust be a valid pointer to a validVkAntiLagDataAMDstructure
See Also
- Parameters:
device- the logical devicepData- a pointer to aVkAntiLagDataAMDstructure containing latency reduction parameters.
- The
-