diff options
author | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-06-04 12:35:21 +0300 |
---|---|---|
committer | Hans-Kristian Arntzen <post@arntzen-software.no> | 2020-06-04 13:33:56 +0300 |
commit | 2d5200650a39a159efa50bdb98d557344165f257 (patch) | |
tree | e957e81a5bbd6e650fd907ecca66c776f0f182d8 /spirv_hlsl.hpp | |
parent | d385bf096f5dabbc4cdaeb6872b0f64be1a63ad0 (diff) |
HLSL: Add native support for 16-bit types.
Adds support for templated load/store in SM 6.2 to deal with small
types.
Diffstat (limited to 'spirv_hlsl.hpp')
-rw-r--r-- | spirv_hlsl.hpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spirv_hlsl.hpp b/spirv_hlsl.hpp index 8ecef44e..946486dc 100644 --- a/spirv_hlsl.hpp +++ b/spirv_hlsl.hpp @@ -119,6 +119,11 @@ public: // For this to work with function call parameters, NonWritable must be considered to be part of the type system // so that NonWritable image arguments are also translated to Texture rather than RWTexture. bool nonwritable_uav_texture_as_srv = false; + + // Enables native 16-bit types. Needs SM 6.2. + // Uses half/int16_t/uint16_t instead of min16* types. + // Also adds support for 16-bit load-store from (RW)ByteAddressBuffer. + bool enable_16bit_types = false; }; explicit CompilerHLSL(std::vector<uint32_t> spirv_) |