Skip to content

Commit eeda781

Browse files
antiagainstehsannas
authored andcommitted
[spirv] Add half as allowed (RW)Buffer element type
Fixes microsoft#1672
1 parent ccd6027 commit eeda781

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/clang/lib/SPIRV/LowerTypeVisitor.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@ LowerTypeVisitor::translateSampledTypeToImageFormat(QualType sampledType,
645645
: elemCount == 2 ? spv::ImageFormat::Rg32ui
646646
: spv::ImageFormat::Rgba32ui;
647647
case BuiltinType::Float:
648+
case BuiltinType::HalfFloat:
648649
return elemCount == 1 ? spv::ImageFormat::R32f
649650
: elemCount == 2 ? spv::ImageFormat::Rg32f
650651
: spv::ImageFormat::Rgba32f;

0 commit comments

Comments
 (0)