Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion etna/include/etna/BlockingTransferHelper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class BlockingTransferHelper
OneShotCmdMgr& cmd_mgr, std::span<std::byte> dst, const Buffer& src, std::uint32_t offset);


// NOTE: uploads only mip 0 and layer 0 for now and doesn't support 3D images
// NOTE: for now doesn't support 3D images
void uploadImage(
OneShotCmdMgr& cmd_mgr,
Image& dst,
Expand Down
2 changes: 2 additions & 0 deletions etna/include/etna/Sampler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ class Sampler
std::string_view name;
float minLod = 0.0f;
float maxLod = VK_LOD_CLAMP_NONE;
bool compareEnable = false;
vk::CompareOp compareOp = vk::CompareOp::eLessOrEqual;
};

explicit Sampler(CreateInfo info);
Expand Down
3 changes: 2 additions & 1 deletion etna/source/Sampler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ Sampler::Sampler(CreateInfo info)
.addressModeW = info.addressMode,
.mipLodBias = 0.0f,
.maxAnisotropy = 1.0f,
.compareEnable = static_cast<vk::Bool32>(info.compareEnable),
.compareOp = info.compareOp,
.minLod = info.minLod,
.maxLod = info.maxLod,
.borderColor = vk::BorderColor::eFloatOpaqueWhite,
};
sampler = unwrap_vk_result(etna::get_context().getDevice().createSamplerUnique(createInfo));
etna::set_debug_name(sampler.get(), info.name.data());
Expand Down