Skip to content

Commit 2da60ee

Browse files
committed
vulkan fix
1 parent 6381ce1 commit 2da60ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/vulkan/vk-device.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,8 @@ Result DeviceImpl::initialize(const DeviceDesc& desc)
11141114
// SM 6.4
11151115
Feature::SM_6_4,
11161116
Feature::FragmentShadingRate,
1117-
Feature::SamplerFeedback,
1117+
// TODO: Check VK_NV_shader_image_footprint?
1118+
// Feature::SamplerFeedback,
11181119
// SM 6.3
11191120
Feature::SM_6_3,
11201121
Feature::RayTracing,
@@ -1134,7 +1135,7 @@ Result DeviceImpl::initialize(const DeviceDesc& desc)
11341135
for (int i = SLANG_COUNT_OF(featureTable) - 1; i >= 0; --i)
11351136
{
11361137
Feature feature = featureTable[i];
1137-
if (i >= int(Feature::SM_6_0) && i <= int(Feature::SM_6_7))
1138+
if (int(feature) >= int(Feature::SM_6_0) && int(feature) <= int(Feature::SM_6_9))
11381139
{
11391140
addFeature(feature);
11401141
}

0 commit comments

Comments
 (0)