diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-06-13 12:55:11 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-06-13 11:12:01 +0000 |
commit | 6a4af39f7490ec419a357f95092bfbfef42f0f91 (patch) | |
tree | c38099e4fa922d80166adaf140f9fac0ba935daf | |
parent | b6cb09f04e3653fdbef681d68fee3472aff1168e (diff) |
Set point_size_compat for HLSL
Shaders setting gl_PointSize should still translate without errors.
With D3D the value is ignored and points will be of size 1.
Change-Id: Ieb7fb7b1062a04e30d7318beaa519ae961c44a86
Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
-rw-r--r-- | src/shadertools/qspirvshader.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shadertools/qspirvshader.cpp b/src/shadertools/qspirvshader.cpp index 4222e38..e81a2f9 100644 --- a/src/shadertools/qspirvshader.cpp +++ b/src/shadertools/qspirvshader.cpp @@ -483,6 +483,7 @@ QByteArray QSpirvShader::translateToHLSL(int version) const spirv_cross::CompilerHLSL::Options options; options.shader_model = version; + options.point_size_compat = true; d->hlslGen->set_hlsl_options(options); const std::string hlsl = d->hlslGen->compile(); |