Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Kristian Arntzen <post@arntzen-software.no>2020-06-04 12:35:21 +0300
committerHans-Kristian Arntzen <post@arntzen-software.no>2020-06-04 13:33:56 +0300
commit2d5200650a39a159efa50bdb98d557344165f257 (patch)
treee957e81a5bbd6e650fd907ecca66c776f0f182d8 /spirv_hlsl.hpp
parentd385bf096f5dabbc4cdaeb6872b0f64be1a63ad0 (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.hpp5
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_)