shader: apply the LOD clamp of image_sample _cl variants

Co-authored-by: Senaxx <michelbeld@gmail.com>
This commit is contained in:
nmzikandSenaxx committed 2026-10-26 05:32:02 +01:00
1 parent b4209dde1b
commit 4ebae87a1b
5 files changed
+70 -3

No files matched your search

@@ -73,7 +73,7 @@ constexpr uint32_t ImageSampleAddressComponents(uint32_t flags, ImageDimension d
if ((flags & ImageSampleFlagBias) != 0) {
components++;
}
if ((flags & ImageSampleFlagLod) != 0) {
if ((flags & (ImageSampleFlagLod | ImageSampleFlagLodClamp)) != 0) {
components++;
}
if ((flags & ImageSampleFlagDerivative) != 0) {