summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-hlsl.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2021-09-13 00:27:13 -0700
committerGitHub <noreply@github.com>2021-09-13 00:27:13 -0700
commit579df478de078f0a22f72f499c13ce442b4cd290 (patch)
tree11307366f454449e101c31b30492010aeb9ad7ed /source/slang/slang-emit-hlsl.cpp
parent27ce5eb0de9f792f3e433bcb239c07d79371cf45 (diff)
Bug fix in 16bit type emit, vk validation error fix. (#1936)
+ Implement bit_cast between float16 and uint16 in GLSL. + Enable pack-any-value-16bit test on vk. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-hlsl.cpp')
-rw-r--r--source/slang/slang-emit-hlsl.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/source/slang/slang-emit-hlsl.cpp b/source/slang/slang-emit-hlsl.cpp
index 2fda8ab99..dc58b7507 100644
--- a/source/slang/slang-emit-hlsl.cpp
+++ b/source/slang/slang-emit-hlsl.cpp
@@ -766,23 +766,11 @@ void HLSLSourceEmitter::emitSimpleTypeImpl(IRType* type)
case kIROp_UInt64Type:
case kIROp_FloatType:
case kIROp_DoubleType:
- {
- m_writer->emit(getDefaultBuiltinTypeName(type->getOp()));
- return;
- }
case kIROp_Int16Type:
- {
- m_writer->emit("min16int");
- return;
- }
case kIROp_UInt16Type:
{
- m_writer->emit("min16uint");
- return;
- }
case kIROp_HalfType:
- {
- m_writer->emit("min16float");
+ m_writer->emit(getDefaultBuiltinTypeName(type->getOp()));
return;
}
case kIROp_StructType: