mirror of
https://github.com/status-im/Vulkan-Docs.git
synced 2025-02-25 12:35:11 +00:00
* Update release number to 93. Public Issues: * Add spec language for ename:VK_INDEX_TYPE_NONE_NV and fix up slink:VkAccelerationStructureTypeNV (public issue 848). * Add missing suffix in description of slink:VkSubpassDescription2KHR parameters (public pull request 851). * Fix miscellaneous typos (public pull request 855). * Add driver ID for Pastel (public pull request 856). * Add missing include directive for slink:VkMemoryWin32HandlePropertiesKHR implicit valid usage statements (public pull request 857). Internal Issues: * Restrict the storage classes permitted for SPIR-V atomics to what is actually supported, in the <<spirvenv-module-validation, Validation Rules within a Module>> section (internal issue 1123). * Add a missing Valid Usage statement to slink:VkRenderPassCreateInfo for the case pname:stencilLoadOp == ename:VK_LOAD_OP_CLEAR, pname:layout == ename:VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL (internal issue 1408). * Modify optimize-pdf script and Makefile to retain non-optimized original PDF on errors (internal issue 1435). * Add <<spirvenv-module-validation, SPIR-V validation rules>> stating that only the listed code:BuiltIn decorations are permitted, and only when relevante features and extensions are enabled (internal issue 1449). * Remove some duplicated Valid Usage IDs created via cut & paste error (internal issue 1455). * Build HTML output for extension reference pages (internal issue 1461). ** Improve genRef.py handling of aliases defined inside other refpages. ** Emit aliases in pygenerator.py. ** Add XML noautovalidity flag for VkRenderPassCreateFlags until there are some corresponding FlagBits defined. ** Corrected types= attribute on some refpage blocks to 'flags' ** Added refpage blocks for some missing types detected by CI tests. * Fixed many Valid Usage statement issues in slink:VkRenderPassCreateInfo, slink:VkSubpassDescription, slink:VkSubpassDescription2KHR, slink:VkSubpassDependency2KHR, flink:vkCmdBeginRenderPass, flink:vkCmdBeginRenderPass2KHR, and slink:VkRenderPassBeginInfo discovered while adding `VK_KHR_create_renderpass2` to the validation layers. New Extensions: * `VK_EXT_scalar_block_layout` * `VK_EXT_separate_stencil_usage`
105 lines
2.7 KiB
Plaintext
105 lines
2.7 KiB
Plaintext
include::meta/VK_AMD_texture_gather_bias_lod.txt[]
|
|
|
|
*Last Modified Date*::
|
|
2017-03-21
|
|
*IP Status*::
|
|
No known IP claims.
|
|
*Interactions and External Dependencies*::
|
|
- Requires the
|
|
https://www.khronos.org/registry/spir-v/extensions/AMD/SPV_AMD_texture_gather_bias_lod.html[+SPV_AMD_texture_gather_bias_lod+]
|
|
SPIR-V extension.
|
|
*Contributors*::
|
|
- Dominik Witczak, AMD
|
|
- Daniel Rakos, AMD
|
|
- Graham Sellers, AMD
|
|
- Matthaeus G. Chajdas, AMD
|
|
- Qun Lin, AMD
|
|
- Rex Xu, AMD
|
|
- Timothy Lottes, AMD
|
|
|
|
This extension adds two related features.
|
|
|
|
Firstly, support for the following SPIR-V extension in Vulkan is added:
|
|
|
|
* +SPV_AMD_texture_gather_bias_lod+
|
|
|
|
Secondly, the extension allows the application to query which formats can be
|
|
used together with the new function prototypes introduced by the SPIR-V
|
|
extension.
|
|
|
|
=== New Object Types
|
|
|
|
None.
|
|
|
|
=== New Enum Constants
|
|
|
|
* Extending elink:VkStructureType:
|
|
** ename:VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD
|
|
|
|
=== New Enums
|
|
|
|
None.
|
|
|
|
=== New SPIR-V Capabilities
|
|
|
|
* <<spirvenv-capabilities-table-imagegatherbiaslodamd,code:ImageGatherBiasLodAMD>>
|
|
|
|
=== New Structures
|
|
|
|
* slink:VkTextureLODGatherFormatPropertiesAMD
|
|
|
|
=== New Functions
|
|
|
|
None.
|
|
|
|
=== Examples
|
|
|
|
[source,c++]
|
|
--------------------------------------
|
|
|
|
struct VkTextureLODGatherFormatPropertiesAMD
|
|
{
|
|
VkStructureType sType;
|
|
const void* pNext;
|
|
VkBool32 supportsTextureGatherLODBiasAMD;
|
|
};
|
|
|
|
// ----------------------------------------------------------------------------------------
|
|
// How to detect if an image format can be used with the new function prototypes.
|
|
VkPhysicalDeviceImageFormatInfo2 formatInfo;
|
|
VkImageFormatProperties2 formatProps;
|
|
VkTextureLODGatherFormatPropertiesAMD textureLODGatherSupport;
|
|
|
|
textureLODGatherSupport.sType = VK_STRUCTURE_TYPE_TEXTURE_LOD_GATHER_FORMAT_PROPERTIES_AMD;
|
|
textureLODGatherSupport.pNext = nullptr;
|
|
|
|
formatInfo.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_IMAGE_FORMAT_INFO_2;
|
|
formatInfo.pNext = nullptr;
|
|
formatInfo.format = ...;
|
|
formatInfo.type = ...;
|
|
formatInfo.tiling = ...;
|
|
formatInfo.usage = ...;
|
|
formatInfo.flags = ...;
|
|
|
|
formatProps.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2;
|
|
formatProps.pNext = &textureLODGatherSupport;
|
|
|
|
vkGetPhysicalDeviceImageFormatProperties2(physical_device, &formatInfo, &formatProps);
|
|
|
|
if (textureLODGatherSupport.supportsTextureGatherLODBiasAMD == VK_TRUE)
|
|
{
|
|
// physical device supports SPV_AMD_texture_gather_bias_lod for the specified
|
|
// format configuration.
|
|
}
|
|
else
|
|
{
|
|
// physical device does not support SPV_AMD_texture_gather_bias_lod for the
|
|
// specified format configuration.
|
|
}
|
|
--------------------------------------
|
|
|
|
=== Version History
|
|
|
|
* Revision 1, 2017-03-21 (Dominik Witczak)
|
|
- Initial draft
|