Skip to content

Commit

Permalink
[spirv] Add half as allowed (RW)Buffer element type (microsoft#1678)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiagainst authored and ehsannas committed Dec 13, 2018
1 parent 5699bb3 commit c52113b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/clang/lib/SPIRV/LowerTypeVisitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,7 @@ LowerTypeVisitor::translateSampledTypeToImageFormat(QualType sampledType,
: elemCount == 2 ? spv::ImageFormat::Rg32ui
: spv::ImageFormat::Rgba32ui;
case BuiltinType::Float:
case BuiltinType::HalfFloat:
return elemCount == 1 ? spv::ImageFormat::R32f
: elemCount == 2 ? spv::ImageFormat::Rg32f
: spv::ImageFormat::Rgba32f;
Expand Down

0 comments on commit c52113b

Please sign in to comment.