diff options
author | John Kessenich <cepheus@frii.com> | 2016-07-07 13:20:00 -0600 |
---|---|---|
committer | John Kessenich <cepheus@frii.com> | 2016-07-07 17:40:35 -0600 |
commit | 2d0cc786f3f830e898df863ce5092945f31e62f8 (patch) | |
tree | 55aa2c51698f077e70dfdb81df150f8fdf08331c /SPIRV | |
parent | 5e69ec683d90aed5c6cedbf4e8da9c9f81a7aab9 (diff) | |
download | glslang-2d0cc786f3f830e898df863ce5092945f31e62f8.tar.gz |
SPV: Turn on atomic-storage functionality for SPIR-V.
This is used by OpenGL, but not Vulkan.
Includes:
- atomicCounter, atomicIncrement, atomicCounterDecrement
- atomic_uint layout-offset checking
- AtomicStorage capability
Diffstat (limited to 'SPIRV')
-rwxr-xr-x | SPIRV/GlslangToSpv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SPIRV/GlslangToSpv.cpp b/SPIRV/GlslangToSpv.cpp index de87763a..e9495475 100755 --- a/SPIRV/GlslangToSpv.cpp +++ b/SPIRV/GlslangToSpv.cpp @@ -1832,7 +1832,7 @@ spv::Id TGlslangToSpvTraverser::convertGlslangToSpvType(const glslang::TType& ty spvType = builder.makeUintType(64); break; case glslang::EbtAtomicUint: - logger->tbdFunctionality("Is atomic_uint an opaque handle in the uniform storage class, or an addresses in the atomic storage class?"); + builder.addCapability(spv::CapabilityAtomicStorage); spvType = builder.makeUintType(32); break; case glslang::EbtSampler: |