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>2019-01-11 14:52:50 +0300
committerGitHub <noreply@github.com>2019-01-11 14:52:50 +0300
commit81cb8b54a3139dd98a74b6eaea91927986569234 (patch)
treea7f1650f03f0d48f6d2cf6580ca6064c023416ca /spirv_hlsl.hpp
parent4394249b86a42ef14d9828c2203bdbcbaa352334 (diff)
parenta2a44d944e659703ceab825735fa4d2fcb3bb0df (diff)
Merge pull request #816 from KhronosGroup/fix-794
HLSL: Support BaseVertex/BaseInstance offsets.
Diffstat (limited to 'spirv_hlsl.hpp')
-rw-r--r--spirv_hlsl.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/spirv_hlsl.hpp b/spirv_hlsl.hpp
index 8b777de3..d06229cd 100644
--- a/spirv_hlsl.hpp
+++ b/spirv_hlsl.hpp
@@ -54,6 +54,12 @@ public:
// Allows the PointCoord builtin, returns float2(0.5, 0.5), as PointCoord is not supported in HLSL.
bool point_coord_compat = false;
+
+ // If true, the backend will assume that VertexIndex and InstanceIndex will need to apply
+ // a base offset, and you will need to fill in a cbuffer with offsets.
+ // Set to false if you know you will never use base instance or base vertex
+ // functionality as it might remove an internal cbuffer.
+ bool support_nonzero_base_vertex_base_instance = false;
};
explicit CompilerHLSL(std::vector<uint32_t> spirv_)