Contact
See Issues list in the Khronos SPIRV-Registry repository: https://github.com/KhronosGroup/SPIRV-Registry
Notice
Copyright (c) 2017 The Khronos Group Inc. Copyright terms at http://www.khronos.org/registry/speccopyright.html
Dependencies
This extension is written against Revision 1 of the version 1.1 of the SPIR-V Specification.
The extension is written against Revision 1 of the OpenGL extension AMD_shader_image_load_store_lod.
Overview
This extension is written to provide the functionality of the AMD_shader_image_load_store_lod, OpenGL Shading Language Specification extension, for SPIR-V.
This extension enhances Lod image operand to also support OpImageRead, OpImageWrite and OpImageSparseRead image instructions.
Extension Name
To enable SPV_AMD_shader_image_load_store_lod extension in SPIR-V, use
OpExtension "SPV_AMD_shader_image_load_store_lod"
Summary
This extension:
-
adds a new CapabilityImageReadWriteLodAMD capability.
-
expands definition of Lod image operand, as described in the overview.
Modifications to the SPIR-V Specification, Version 1.1
Modify Section 3.31, Capability
Append the following Capability to the table:
| Capability | Implicitly Declares | Enabled by Extension |
|---|---|---|
CapabilityImageReadWriteLodAMD Expands Lod image operand definition to support image read/write/sparse read operations. |
CapabilityShader |
SPV_AMD_shader_image_load_store_lod |
Modify Section 3.14, Image Operands