VK_KHR_shader_float_controls2(3)

# VK_KHR_shader_float_controls2(3) Manual Page

## Name

VK_KHR_shader_float_controls2 - device extension

Loading… please wait.

## Registered Extension Number

529

## Revision

1

## Ratification Status

Ratified

## Extension and Version Dependencies

Version 1.1
and
VK_KHR_shader_float_controls

## SPIR-V Dependencies

- SPV_KHR_float_controls2

## Contact

- Graeme Leese gnl21

## Extension Proposal

VK_KHR_shader_float_controls2

## Other Extension Metadata

Last Modified Date

  2023-05-16

Interactions and External Dependencies

  - This extension requires `SPV_KHR_float_controls2`.

Contributors

  - Graeme Leese, Broadcom

## Description

This extension enables use of the more expressive fast floating-point math flags in the SPV_KHR_float_controls2 extension. These flags give finer- grained control over which optimisations compilers may apply, potentially speeding up execution while retaining correct results.

The extension also adds control over the fast-math modes to the GLSL extended instruction set, making these operations more consistent with SPIR-V and allowing their use in situations where floating-point conformance is important.

## New Structures

- Extending VkPhysicalDeviceFeatures2, VkDeviceCreateInfo:

  - VkPhysicalDeviceShaderFloatControls2FeaturesKHR

## New Enum Constants

- `VK_KHR_SHADER_FLOAT_CONTROLS_2_EXTENSION_NAME`

- `VK_KHR_SHADER_FLOAT_CONTROLS_2_SPEC_VERSION`

- Extending VkStructureType:

  - `VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT_CONTROLS_2_FEATURES_KHR`

## Version History

- Revision 1, 2023-05-16 (Graeme Leese)

  - Initial draft

## See Also

VkPhysicalDeviceShaderFloatControls2FeaturesKHR

## Document Notes

For more information, see the Vulkan Specification

This page is a generated document. Fixes and changes should be made to the generator scripts, not directly.

## Copyright

Copyright 2014-2024 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0