Skip to content

Commit 10af071

Browse files
committed
review: use defined FLT_MAX
1 parent 194df3f commit 10af071

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
@@ -164,7 +164,7 @@ struct StaticSampler {
164164
float MipLODBias = 0.f;
165165
uint32_t MaxAnisotropy = 16;
166166
float MinLOD = 0.f;
167-
float MaxLOD = 3.402823466e+38f; // FLT_MAX
167+
float MaxLOD = std::numeric_limits<float>::max();
168168
};
169169

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

0 commit comments

Comments
 (0)