Skip to content

Commit

Permalink
Added conversion quality, and BC7 conversion support
Browse files Browse the repository at this point in the history
  • Loading branch information
vk2gpu committed Jan 15, 2018
1 parent 4f1071b commit 682a301
Show file tree
Hide file tree
Showing 6 changed files with 514 additions and 28 deletions.
5 changes: 3 additions & 2 deletions src/graphics/converters/converter_texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ namespace
{
if(metaData.isInitialized_ == false)
{
metaData.format_ = GPU::Format::BC3_UNORM;
metaData.format_ = GPU::Format::BC7_UNORM;
metaData.generateMipLevels_ = true;
}

Expand Down Expand Up @@ -118,7 +118,8 @@ namespace
if(formatInfo.blockW_ > 1 || formatInfo.blockH_ > 1)
{
Image::Image encodedImage;
if(Image::Convert(encodedImage, image, metaData.format_))
// TODO: Use better than VERY_LOW in tools.
if(Image::Convert(encodedImage, image, metaData.format_, Image::ConvertQuality::VERY_LOW))
image = std::move(encodedImage);
}
}
Expand Down
Loading

0 comments on commit 682a301

Please sign in to comment.