Skip to content

Commit 30f8bdd

Browse files
committed
review: use defined FLT_MAX
1 parent b5ffce4 commit 30f8bdd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Frontend/HLSL/HLSLRootSignature.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ struct StaticSampler {
163163
float MipLODBias = 0.f;
164164
uint32_t MaxAnisotropy = 16;
165165
float MinLOD = 0.f;
166-
float MaxLOD = 3.402823466e+38f; // FLT_MAX
166+
float MaxLOD = std::numeric_limits<float>::max();
167167
};
168168

169169
/// Models RootElement : RootFlags | RootConstants | RootParam

0 commit comments

Comments
 (0)